|
GameApi 28
Library used by GameApi Builder tool
|
#include <string>#include <sstream>#include <iostream>#include <vector>#include <chrono>#include <cstring>#include <fstream>#include <algorithm>#include "stb_image.h"
Classes | |
| struct | GameApi::Env |
| struct | GameApi::EveryApi |
| class | Point |
| struct | BufferRef |
| class | Splitter |
| class | QMLData |
| struct | FrameLoopEvent |
| class | SourceBitmap |
| class | FrameBuffer |
| struct | DrawLoopEnv |
| class | FrameBufferLoop |
| struct | PVec |
| class | QMLLoop |
| class | QMLRoot |
| class | QMLLoader |
| class | PrintQMLData |
| class | QMLCreateNode |
| class | UnknownElement |
| class | UnknownWithChildren |
| class | LowFrameBuffer |
| class | RefWrapper |
| class | ApplicationWindow |
| class | Rectangle2 |
| class | AbstractButton |
| class | Image |
| struct | Rect |
| class | StackView |
| struct | DBItem |
Namespaces | |
| namespace | GameApi |
Macros | |
| #define | STB_IMAGE_IMPLEMENTATION |
| #define | HAS_FILESYSTEM |
| #define | USE_VGA |
| #define | Depth_2bit |
| #define | tp_screen_width 640 |
| #define | tp_screen_height 480 |
Enumerations | |
| enum | FrameBufferFormat { F_Mono1 , F_Mono8 , F_RGB565 , F_RGB888 , F_RGBA8888 } |
| enum | DrawBufferFormat { D_Mono1 , D_RGBA8888 } |
Functions | |
| int | get_screen_width () |
| int | get_screen_height () |
| std::string | to_string (int val) |
| BufferRef | LoadImageFromString (std::vector< unsigned char > buffer, bool &success) |
| std::string | replace_path_separators (std::string s) |
| std::vector< unsigned char > | load_file (std::string qml_relative_path, bool bin) |
| BufferRef | decode_image_file (std::vector< unsigned char > vec) |
| BufferRef | scale_bitmap (BufferRef orig, int new_x, int new_y) |
| std::string | strip_spaces (std::string s) |
| void | ClearDepthBuffer (float *arr, int width, int height) |
| std::vector< std::string > | split_from_char (std::string s, char c) |
| std::string | focus_to_braces (std::string s) |
| std::string | remove_comment (std::string s) |
| std::pair< std::string, std::string > | split_attr (std::string attr, bool &success) |
| int | int_expr_parser (QMLLoop *loop, const PVec &vec, std::string value) |
| int | constants (std::string id) |
| bool | is_import (std::string line) |
| bool | is_component (std::string line) |
| bool | is_component_end (std::string line) |
| int | find_ch (std::string s, char ch) |
| bool | is_attribute (std::string line) |
| bool | is_property (std::string line) |
| bool | is_pragma (std::string line) |
| bool | is_comment_start (std::string line) |
| bool | is_comment_end (std::string line) |
| void | BufferRefToSourceBitmap (BufferRef &ref, SourceBitmap &target, DrawBufferFormat fmt) |
| QMLLoop * | create_qml_element (QMLLoop *parent, QMLData *root, QMLData *dt) |
| void | recursive_prepare (QMLData *mod) |
| void | splitter_iter2 (void *arg) |
| int | main () |
| Rect | remove_rect_from_rect (Rect orig, Rect cut, bool &success) |
| Rect | to_rect (int x, int y, int width, int height) |
| Rect | to_rect (std::pair< int, int > tl, std::pair< int, int > sz) |
| std::ostream & | operator<< (std::ostream &o, Rect r) |
| Rect | anchors_fill_parent (QMLLoop *current, bool &res_success) |
| std::string | parse_import (std::string line) |
| void | global_db (QMLLoop *loop, PVec vec, std::vector< QMLLoop * > child) |
| QMLLoop * | find_by_id (QMLLoop *context, std::string id, std::string key="id", int depth=0) |
| bool | is_number (std::string s) |
Variables | |
| std::string | qml_path |
| std::string | gameapi_homepageurl |
| Splitter * | splitter_current = 0 |
| std::vector< DBItem > | g_db |
| #define Depth_2bit |
| #define HAS_FILESYSTEM |
| #define STB_IMAGE_IMPLEMENTATION |
| #define tp_screen_height 480 |
| #define tp_screen_width 640 |
| #define USE_VGA |
| enum DrawBufferFormat |
| enum FrameBufferFormat |

| void BufferRefToSourceBitmap | ( | BufferRef & | ref, |
| SourceBitmap & | target, | ||
| DrawBufferFormat | fmt ) |
| void ClearDepthBuffer | ( | float * | arr, |
| int | width, | ||
| int | height ) |
| int constants | ( | std::string | id | ) |

| BufferRef decode_image_file | ( | std::vector< unsigned char > | vec | ) |


| int find_ch | ( | std::string | s, |
| char | ch ) |

| std::string focus_to_braces | ( | std::string | s | ) |

| int get_screen_height | ( | ) |

| int get_screen_width | ( | ) |


| bool is_attribute | ( | std::string | line | ) |

| bool is_comment_end | ( | std::string | line | ) |

| bool is_comment_start | ( | std::string | line | ) |

| bool is_component | ( | std::string | line | ) |

| bool is_component_end | ( | std::string | line | ) |

| bool is_import | ( | std::string | line | ) |

| bool is_number | ( | std::string | s | ) |

| bool is_pragma | ( | std::string | line | ) |

| bool is_property | ( | std::string | line | ) |

| std::vector< unsigned char > load_file | ( | std::string | qml_relative_path, |
| bool | bin ) |

| BufferRef LoadImageFromString | ( | std::vector< unsigned char > | buffer, |
| bool & | success ) |

| int main | ( | ) |
| std::ostream & operator<< | ( | std::ostream & | o, |
| Rect | r ) |
| std::string parse_import | ( | std::string | line | ) |

| void recursive_prepare | ( | QMLData * | mod | ) |
| std::string remove_comment | ( | std::string | s | ) |


| std::string replace_path_separators | ( | std::string | s | ) |


| std::pair< std::string, std::string > split_attr | ( | std::string | attr, |
| bool & | success ) |

| std::vector< std::string > split_from_char | ( | std::string | s, |
| char | c ) |

| void splitter_iter2 | ( | void * | arg | ) |

| std::string strip_spaces | ( | std::string | s | ) |

| Rect to_rect | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height ) |

| Rect to_rect | ( | std::pair< int, int > | tl, |
| std::pair< int, int > | sz ) |
| std::string to_string | ( | int | val | ) |

| std::vector<DBItem> g_db |
|
extern |
| std::string qml_path |
| Splitter* splitter_current = 0 |