|
GameApi 28
Library used by GameApi Builder tool
|
#include "GameApi_h.hh"#include "GameApi_low.hh"#include <iomanip>#include <fstream>#include "gif.h"
Enumerations | |
| enum | { E_Less = 1 , E_Greater , E_Empty , E_Number , E_X , E_Y , E_Plus , E_Minus , E_Mul , E_Div , E_Mod , E_Sin , E_Cos , E_Tan } |
Functions | |
| template<class T> | |
| void | ArrayDelete (T *ptr) |
| BufferRef | LoadImage (std::string filename, bool &success) |
| std::string | stripprefix (std::string s) |
| std::string | remove_load (std::string s) |
| std::vector< unsigned char > * | load_from_url (GameApi::Env &e, std::string url, bool nosize, int progress_num) |
| int | find_str (std::string val, std::string repl) |
| void | stackTrace () |
| IMPORT void | ProgressBar (int num, int val, int max, std::string label) |
| IMPORT void | InstallProgress (int num, std::string label, int max=15) |
| int | bitmap_find_data (std::string data) |
| std::string | MB (long num) |
| template<class T> | |
| Bitmap< T > * | subbitmap_t (Bitmap< T > *bm, int x, int y, int width, int height) |
| BitmapHandle * | subbitmap_h (BitmapHandle *handle, int x, int y, int width, int height) |
| template<class T> | |
| Bitmap< T > * | growbitmap_t (Bitmap< T > *bm, int l, int t, int r, int b, T tt) |
| BitmapHandle * | growbitmap_h (BitmapHandle *handle, int l, int t, int r, int b) |
| BitmapHandle * | modify_bitmap_h (BitmapHandle *orig, BitmapHandle *bm, int x, int y) |
| int | index_from_string (char c, std::string s) |
| float | perlin (float x, float y, float z) |
| bool | range_select_color_area (int r, int g, int b, int a, void *dt) |
| bool | Rectangle_func (int x, int y, void *data) |
| float | mymin (float x, float y) |
| void | SaveImage (BufferRef ref, std::string filename) |
| Ret | bitmapparser (unsigned char *buf) |
| bool | MedianCompare (int x, int y) |
| int | cmd_find_ch (std::string expr, char find_ch) |
| bool | cmd_is_number (std::string expr) |
| std::string | cmd_stripspaces (std::string expr) |
| bool | is_cmd_unary (std::string label, std::string expr) |
| void | ParseCmds (std::string expr, std::vector< int > &cmdbuf, std::vector< float > ¶mbuf) |
| float | executebufs (const std::vector< int > &cmdbuf, const std::vector< float > ¶mbuf, float X, float Y) |
| void | save_raw_bitmap (GameApi::Env &e, GameApi::BM bm, std::string filename) |
| GameApi::BM | load_raw_bitmap2 (GameApi::Env &e, std::string data) |
| GameApi::BM | load_raw_bitmap (GameApi::Env &e, std::string filename) |
| bool | is_transparent_tile (int val) |
| bool | is_not_wall (int val) |
| bool | vol_obj_property (Point p) |
| bool | vol_obj_property2 (Point p) |
Variables | |
| double | g_dpr |
| std::vector< const unsigned char * > | g_content |
| std::vector< const unsigned char * > | g_content_end |
| std::vector< const char * > | g_urls |
| std::map< std::string, std::vector< unsigned char > * > | load_url_buffers |
| IMPORT std::string | gameapi_homepageurl |
| std::vector< std::pair< std::string, int > > | bitmap_prepare_cache_data |
| unsigned int | color_array [] = { 0x00000000, 0xffffffff, 0xffff0000, 0xff00ff00, 0xff0000ff, 0xff00ffff, 0xffffff00, 0xffffffff } |
| std::vector< float > * | g_median_float |
| void * | g_vol_data |
| anonymous enum |
| int bitmap_find_data | ( | std::string | data | ) |
| Ret bitmapparser | ( | unsigned char * | buf | ) |

| int cmd_find_ch | ( | std::string | expr, |
| char | find_ch ) |

| bool cmd_is_number | ( | std::string | expr | ) |

| std::string cmd_stripspaces | ( | std::string | expr | ) |

| float executebufs | ( | const std::vector< int > & | cmdbuf, |
| const std::vector< float > & | parambuf, | ||
| float | X, | ||
| float | Y ) |

| int find_str | ( | std::string | val, |
| std::string | repl ) |
| BitmapHandle * growbitmap_h | ( | BitmapHandle * | handle, |
| int | l, | ||
| int | t, | ||
| int | r, | ||
| int | b ) |


| int index_from_string | ( | char | c, |
| std::string | s ) |

| IMPORT void InstallProgress | ( | int | num, |
| std::string | label, | ||
| int | max = 15 ) |
| bool is_cmd_unary | ( | std::string | label, |
| std::string | expr ) |

| bool is_not_wall | ( | int | val | ) |

| bool is_transparent_tile | ( | int | val | ) |

| std::vector< unsigned char > * load_from_url | ( | GameApi::Env & | e, |
| std::string | url, | ||
| bool | nosize, | ||
| int | progress_num ) |
| GameApi::BM load_raw_bitmap | ( | GameApi::Env & | e, |
| std::string | filename ) |
| GameApi::BM load_raw_bitmap2 | ( | GameApi::Env & | e, |
| std::string | data ) |

| BufferRef LoadImage | ( | std::string | filename, |
| bool & | success ) |
| std::string MB | ( | long | num | ) |
| bool MedianCompare | ( | int | x, |
| int | y ) |

| BitmapHandle * modify_bitmap_h | ( | BitmapHandle * | orig, |
| BitmapHandle * | bm, | ||
| int | x, | ||
| int | y ) |

| float mymin | ( | float | x, |
| float | y ) |

| void ParseCmds | ( | std::string | expr, |
| std::vector< int > & | cmdbuf, | ||
| std::vector< float > & | parambuf ) |

| float perlin | ( | float | x, |
| float | y, | ||
| float | z ) |

| IMPORT void ProgressBar | ( | int | num, |
| int | val, | ||
| int | max, | ||
| std::string | label ) |
std::cout << "ProgressBar: '" << num << " " << label << " " << val << " " << max << "'" << std::endl;
| bool range_select_color_area | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a, | ||
| void * | dt ) |

| bool Rectangle_func | ( | int | x, |
| int | y, | ||
| void * | data ) |

| std::string remove_load | ( | std::string | s | ) |

| void save_raw_bitmap | ( | GameApi::Env & | e, |
| GameApi::BM | bm, | ||
| std::string | filename ) |

| void SaveImage | ( | BufferRef | ref, |
| std::string | filename ) |

| void stackTrace | ( | ) |

| std::string stripprefix | ( | std::string | s | ) |

| BitmapHandle * subbitmap_h | ( | BitmapHandle * | handle, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height ) |

| Bitmap< T > * subbitmap_t | ( | Bitmap< T > * | bm, |
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height ) |

| bool vol_obj_property | ( | Point | p | ) |
| bool vol_obj_property2 | ( | Point | p | ) |
| std::vector<std::pair<std::string,int> > bitmap_prepare_cache_data |
| unsigned int color_array[] = { 0x00000000, 0xffffffff, 0xffff0000, 0xff00ff00, 0xff0000ff, 0xff00ffff, 0xffffff00, 0xffffffff } |
|
extern |
|
extern |
|
extern |
| std::vector<float>* g_median_float |
|
extern |
| void* g_vol_data |
|
extern |
|
extern |