|
GameApi 28
Library used by GameApi Builder tool
|
#include <GL/glew.h>#include <iostream>#include "Pieces.hh"#include "Map.hh"#include "Effect.hh"#include "Midplay.hh"#include <fstream>#include "Language.hh"#include "VolumeObjects.hh"#include "Tree.hh"#include "Widgets.hh"#include "Category.hh"#include "Coordinates.hh"#include "Shader.hh"#include "Triangle.hh"#include "Game.hh"#include "Editor.hh"#include "Equalizer.hh"#include "Web.hh"#include "Functions.hh"#include "ShaderExpr.hh"#include "Font.hh"#include "FontEditor.hh"#include "GameApi.hh"#include "KeyFrameEditor.hh"#include "Parser.hh"#include "GameApi_low.hh"#include "stb_image.h"#include "stb_image_write.h"
Classes | |
| class | Timer |
| struct | savecontext |
Macros | |
| #define | VIRTUAL_REALITY 1 |
| #define | SDL2_USED |
| #define | NO_SDL_GLEXT |
| #define | USE_GLEW 1 |
| #define | STB_IMAGE_IMPLEMENTATION |
| #define | STB_IMAGE_WRITE_IMPLEMENTATION |
| #define | STBI_NO_BMP |
| #define | STBI_NO_PSD |
| #define | STBI_NO_TGA |
| #define | STBI_NO_HDR |
| #define | STBI_NO_PIC |
| #define | STBI_NO_PNM |
Functions | |
| BufferRef | CopyFromSDLSurface (Low_SDL_Surface *surf) |
| GLTFModelInterface * | find_gltf (GameApi::Env &e, GameApi::TF tf) |
| void | initialize_low (int flags) |
| IMPORT void | check_vr_compositor_init () |
| IMPORT void | check_vr_overlay_init () |
| void * | thread_func_bitmap (void *data) |
| void | glDebugOutput (unsigned int source, unsigned int type, unsigned int id, unsigned int severity, int length, const char *message, const void *userParam) |
| void | initDebugCallback () |
| Low_SDL_Surface * | InitSDL2 (int scr_x, int scr_y, bool vblank, bool antialias, bool resize, bool vr_init) |
| Low_SDL_Surface * | InitSDL (int scr_x, int scr_y, bool vblank, bool antialias) |
| void | GameApiTest (GameApi::EveryApi &e) |
| void | GameApiTest2 (GameApi::EveryApi &e) |
| void | GameApiTest3 (GameApi::EveryApi &e) |
| void | Game (GameApi::EveryApi &e) |
| int | mainxxx (int argc, char *argv[]) |
| void | Execute2 (FrameAnim &f) |
| void | Execute2 (FrameAnim &f, EventSurface &surf) |
| void | Execute (FrameAnim &f, Low_SDL_Surface *screen) |
| void | InitFrameAnim (FrameAnim &f, Low_SDL_Surface *screen) |
| void | DisplayFrame (FrameAnim &f, Low_SDL_Surface *screen, float time) |
| void | CleanupFrameAnim (FrameAnim &f, Low_SDL_Surface *surf) |
| void | PreCalcExecute (Render &rend, FrameAnim &f, float duration, int numframes) |
| GameApi::ASyncVec * | g_convert (std::vector< unsigned char, GameApiAllocator< unsigned char > > *vec) |
| void | g_png_store_write_func (void *context, void *data, int size) |
| Bitmap< Color > * | find_bitmap2 (GameApi::Env &e, GameApi::BM bm) |
| BufferRef | LoadImageFromString (const std::vector< unsigned char > &buffer, bool &success) |
| BufferRef | LoadImage (std::string filename, bool &success) |
| void | save_write_func (void *context, void *data, int size) |
| void | save_write_func2 (void *context, void *data, int size) |
| void | SaveImage (std::vector< unsigned char > &res, BufferRef ref) |
| void | SaveImage (BufferRef ref, std::string filename) |
| Low_SDL_Surface * | init_sdl_surface_framebuffer (int scr_x, int scr_y) |
| Low_SDL_Surface * | init_iot_surface_framebuffer (int scr_x, int scr_y) |
| Low_SDL_Surface * | init_2nd_display (int scr_x, int scr_y) |
Variables | |
| IMPORT wl_display * | g_wl_display = 0 |
| IMPORT wl_surface * | g_wl_surface = 0 |
| IMPORT wl_shell_surface * | g_wl_shell_surface = 0 |
| bool | g_vr_enable |
| IMPORT Low_SDL_Window * | sdl_window |
| bool | exit2 = false |
| Low_SDL_GLContext | g_context |
| std::string | g_gpu_vendor |
| IMPORT int | g_display_width = 1200 |
| IMPORT int | g_display_height = 1024 |
| void *(* | g_thread_func_bitmap )(void *data) |
| Low_SDL_Window * | sdl_framebuffer_window = 0 |
| Low_SDL_Surface * | sdl_framebuffer = 0 |
| Low_SDL_Window * | sdl_display2_window = 0 |
| Low_SDL_Surface * | sdl_display2_framebuffer = 0 |
| Low_SDL_GLContext | context_display2 |
| IMPORT const char * | g_videodriver =0 |
| #define NO_SDL_GLEXT |
| #define SDL2_USED |
| #define STB_IMAGE_IMPLEMENTATION |
| #define STB_IMAGE_WRITE_IMPLEMENTATION |
| #define STBI_NO_BMP |
| #define STBI_NO_HDR |
| #define STBI_NO_PIC |
| #define STBI_NO_PNM |
| #define STBI_NO_PSD |
| #define STBI_NO_TGA |
| #define USE_GLEW 1 |
| #define VIRTUAL_REALITY 1 |
| IMPORT void check_vr_compositor_init | ( | ) |

| IMPORT void check_vr_overlay_init | ( | ) |

| void CleanupFrameAnim | ( | FrameAnim & | f, |
| Low_SDL_Surface * | surf ) |
| BufferRef CopyFromSDLSurface | ( | Low_SDL_Surface * | surf | ) |

| void DisplayFrame | ( | FrameAnim & | f, |
| Low_SDL_Surface * | screen, | ||
| float | time ) |

| void Execute | ( | FrameAnim & | f, |
| Low_SDL_Surface * | screen ) |

| void Execute2 | ( | FrameAnim & | f | ) |

| void Execute2 | ( | FrameAnim & | f, |
| EventSurface & | surf ) |
| Bitmap< Color > * find_bitmap2 | ( | GameApi::Env & | e, |
| GameApi::BM | bm ) |

| GLTFModelInterface * find_gltf | ( | GameApi::Env & | e, |
| GameApi::TF | tf ) |
| GameApi::ASyncVec * g_convert | ( | std::vector< unsigned char, GameApiAllocator< unsigned char > > * | vec | ) |
| void g_png_store_write_func | ( | void * | context, |
| void * | data, | ||
| int | size ) |

| void Game | ( | GameApi::EveryApi & | e | ) |
| void GameApiTest | ( | GameApi::EveryApi & | e | ) |
| void GameApiTest2 | ( | GameApi::EveryApi & | e | ) |
| void GameApiTest3 | ( | GameApi::EveryApi & | e | ) |
| void glDebugOutput | ( | unsigned int | source, |
| unsigned int | type, | ||
| unsigned int | id, | ||
| unsigned int | severity, | ||
| int | length, | ||
| const char * | message, | ||
| const void * | userParam ) |

| Low_SDL_Surface * init_2nd_display | ( | int | scr_x, |
| int | scr_y ) |

| Low_SDL_Surface * init_iot_surface_framebuffer | ( | int | scr_x, |
| int | scr_y ) |
| Low_SDL_Surface * init_sdl_surface_framebuffer | ( | int | scr_x, |
| int | scr_y ) |

| void initDebugCallback | ( | ) |
| void InitFrameAnim | ( | FrameAnim & | f, |
| Low_SDL_Surface * | screen ) |

| void initialize_low | ( | int | flags | ) |

| Low_SDL_Surface * InitSDL | ( | int | scr_x, |
| int | scr_y, | ||
| bool | vblank, | ||
| bool | antialias ) |

| Low_SDL_Surface * InitSDL2 | ( | int | scr_x, |
| int | scr_y, | ||
| bool | vblank, | ||
| bool | antialias, | ||
| bool | resize, | ||
| bool | vr_init ) |

| BufferRef LoadImage | ( | std::string | filename, |
| bool & | success ) |

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

| int mainxxx | ( | int | argc, |
| char * | argv[] ) |
| void save_write_func | ( | void * | context, |
| void * | data, | ||
| int | size ) |

| void save_write_func2 | ( | void * | context, |
| void * | data, | ||
| int | size ) |

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

| void SaveImage | ( | std::vector< unsigned char > & | res, |
| BufferRef | ref ) |
| void * thread_func_bitmap | ( | void * | data | ) |

| Low_SDL_GLContext context_display2 |
| bool exit2 = false |
| Low_SDL_GLContext g_context |
| IMPORT int g_display_height = 1024 |
| IMPORT int g_display_width = 1200 |
|
extern |
|
extern |
| IMPORT const char* g_videodriver =0 |
|
extern |
| IMPORT wl_display* g_wl_display = 0 |
| IMPORT wl_shell_surface* g_wl_shell_surface = 0 |
| IMPORT wl_surface* g_wl_surface = 0 |
| Low_SDL_Surface* sdl_display2_framebuffer = 0 |
| Low_SDL_Window* sdl_display2_window = 0 |
| Low_SDL_Surface* sdl_framebuffer = 0 |
| Low_SDL_Window* sdl_framebuffer_window = 0 |
|
extern |