GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi_main.cc File Reference
#include "GameApi_h.hh"
#include <chrono>
#include "editor/logo-connecting4.inc"
#include "editor/logo-preparing4.inc"
#include "editor/logo-downloading4.inc"
Include dependency graph for GameApi_main.cc:

Classes

class  ShaderCacheDisable
class  SeqML
class  SeqMLScore
class  CollisionGenKey
class  CollisionSeqML
class  TimedTmpSeqML
class  CollisionDetection
class  JoyPrinter
class  PrintStats
class  FirstExecuteFilterMainLoop
class  EnsureFrameRateMainLoop
class  FaceCollArray
class  ArrayMainLoop
class  FrameBufferArrayMainLoop
struct  LogoEnv
class  Bg
class  LogoStatus
class  LogoChange
class  SongML
class  MidiML
class  KeyboardToggle
class  DepthFunc
class  DepthMask
class  CullFace2
class  BlendFunc
struct  Store
class  RecordKeyPresses
class  PlaybackKeyPresses
class  DynamicMainLoop
class  JoystickToWasd
class  DisableZBuffer
class  SendKeyAtTime
class  ScreenSpace
class  SceneTransparency
class  Timing2
class  CurrentTimeTiming
class  TimingRepeat
class  TimingEvent
class  ConcurrentDownload
class  NoConcurrentDownload

Macros

#define NO_MV   1

Functions

void * setup_midi (const std::vector< unsigned char > &data, const std::vector< unsigned char > &patchset)
void play_midi (void *ptr)
GameApi::SP add_space (GameApi::Env &e, SpaceImpl i)
float get_execute_array_delta_time (GameApi::EveryApi &ev, MainLoopEnv &env)
void save_raw_bitmap (GameApi::Env &e, GameApi::BM bm, std::string filename)
bool is_mobile (GameApi::EveryApi &ev)
GameApi::BM load_raw_bitmap (GameApi::Env &e, std::string filename)
GameApi::BM load_raw_bitmap2 (GameApi::Env &e, std::string data)
std::vector< std::string > parse_sep (std::string s, char ch)

Variables

IMPORT Low_SDL_Window * sdl_window
Low_SDL_GLContext g_context
bool g_shader_cache_disable
IMPORT int g_has_wayland = false
IMPORT int g_display_width
IMPORT int g_display_height
int frame_counter = 0
unsigned long long g_fps_time
unsigned long long s_time
float collect_time =0.0
float collect_delta = 0.0
int collect_frame = 0
GameApi::M g_view_rot
std::string gameapi_seamless_url
int g_disable_draws = 0
int callcount =0
bool g_no_clear = false
float cur_time = 0.0f
float delta_time = 16.6666
float cur_time2 = 0.0f
double accumulator = 0.0f
double cur_delta = 16.666f
int g_current_shader_id
IMPORT int g_event_screen_x = -1
IMPORT int g_event_screen_y = -1
int g_resize_event_sx
int g_resize_event_sy
const char * g_videodriver
bool disable_opengl_from_get_event
int score
int hidden_score
bool g_filter_execute
int g_filter_start =0
int g_filter_end =0
bool g_execute_shows_logo
int g_splitter_fps
int frame_count =0
LogoEnv * logo_env = 0
int async_pending_count
IMPORT bool g_transparent = false
int g_background_mode = 0
unsigned int g_background_center []
unsigned int g_background_edge []
bool g_transparent_indication
int g_logo_status
bool g_has_fullscreen_button
double g_dpr
bool g_external_logo =false
GameApi::BM g_ext_I7A
GameApi::BM g_ext_I7B
GameApi::BM g_ext_I7C
LogoChange * g_ext_this
Matrix g_in_P
bool g_in_P_used
IMPORT std::string gameapi_homepageurl
bool g_inside_ml_widget
bool g_concurrent_download =false
bool g_no_concurrent_download =false

Macro Definition Documentation

◆ NO_MV

#define NO_MV   1

Function Documentation

◆ add_space()

GameApi::SP add_space ( GameApi::Env & e,
SpaceImpl i )
Here is the caller graph for this function:

◆ get_execute_array_delta_time()

float get_execute_array_delta_time ( GameApi::EveryApi & ev,
MainLoopEnv & env )

◆ is_mobile()

bool is_mobile ( GameApi::EveryApi & ev)
Here is the caller graph for this function:

◆ load_raw_bitmap()

GameApi::BM load_raw_bitmap ( GameApi::Env & e,
std::string filename )

◆ load_raw_bitmap2()

GameApi::BM load_raw_bitmap2 ( GameApi::Env & e,
std::string data )
Here is the caller graph for this function:

◆ parse_sep()

std::vector< std::string > parse_sep ( std::string s,
char ch )
Here is the caller graph for this function:

◆ play_midi()

void play_midi ( void * ptr)
Here is the caller graph for this function:

◆ save_raw_bitmap()

void save_raw_bitmap ( GameApi::Env & e,
GameApi::BM bm,
std::string filename )
Here is the caller graph for this function:

◆ setup_midi()

void * setup_midi ( const std::vector< unsigned char > & data,
const std::vector< unsigned char > & patchset )
Here is the caller graph for this function:

Variable Documentation

◆ accumulator

double accumulator = 0.0f

◆ async_pending_count

int async_pending_count
extern

◆ callcount

int callcount =0

◆ collect_delta

float collect_delta = 0.0

◆ collect_frame

int collect_frame = 0

◆ collect_time

float collect_time =0.0

◆ cur_delta

double cur_delta = 16.666f

◆ cur_time

float cur_time = 0.0f

◆ cur_time2

float cur_time2 = 0.0f

◆ delta_time

float delta_time = 16.6666

◆ disable_opengl_from_get_event

bool disable_opengl_from_get_event
extern

◆ frame_count

int frame_count =0

◆ frame_counter

int frame_counter = 0

◆ g_background_center

unsigned int g_background_center[]
Initial value:
= { 0xff000000, 0xff888888, 0xffffffff, 0xff000088,
0xffff0000, 0xff00ff00, 0xffffff00,
0xff00ffff, 0xffff00ff }

◆ g_background_edge

unsigned int g_background_edge[]
Initial value:
= { 0xff000000, 0xff000000, 0xff888888, 0xff000000,
0xff880000, 0xff008800, 0xff888800,
0xff008888, 0xff880088 }

◆ g_background_mode

int g_background_mode = 0

◆ g_concurrent_download

bool g_concurrent_download =false

◆ g_context

Low_SDL_GLContext g_context
extern

◆ g_current_shader_id

int g_current_shader_id
extern

◆ g_disable_draws

int g_disable_draws = 0

◆ g_display_height

IMPORT int g_display_height
extern

◆ g_display_width

IMPORT int g_display_width
extern

◆ g_dpr

double g_dpr
extern

◆ g_event_screen_x

IMPORT int g_event_screen_x = -1

◆ g_event_screen_y

IMPORT int g_event_screen_y = -1

◆ g_execute_shows_logo

bool g_execute_shows_logo
extern

◆ g_ext_I7A

GameApi::BM g_ext_I7A

◆ g_ext_I7B

GameApi::BM g_ext_I7B

◆ g_ext_I7C

GameApi::BM g_ext_I7C

◆ g_ext_this

LogoChange* g_ext_this

◆ g_external_logo

bool g_external_logo =false

◆ g_filter_end

int g_filter_end =0

◆ g_filter_execute

bool g_filter_execute
extern

◆ g_filter_start

int g_filter_start =0

◆ g_fps_time

unsigned long long g_fps_time

◆ g_has_fullscreen_button

bool g_has_fullscreen_button
extern

◆ g_has_wayland

IMPORT int g_has_wayland = false

◆ g_in_P

Matrix g_in_P
extern

◆ g_in_P_used

bool g_in_P_used
extern

◆ g_inside_ml_widget

bool g_inside_ml_widget
extern

◆ g_logo_status

int g_logo_status
extern

◆ g_no_clear

bool g_no_clear = false

◆ g_no_concurrent_download

bool g_no_concurrent_download =false

◆ g_resize_event_sx

int g_resize_event_sx
extern

◆ g_resize_event_sy

int g_resize_event_sy
extern

◆ g_shader_cache_disable

bool g_shader_cache_disable
extern

◆ g_splitter_fps

int g_splitter_fps
extern

◆ g_transparent

IMPORT bool g_transparent = false

◆ g_transparent_indication

bool g_transparent_indication

◆ g_videodriver

const char* g_videodriver
extern

◆ g_view_rot

GameApi::M g_view_rot

◆ gameapi_homepageurl

IMPORT std::string gameapi_homepageurl

◆ gameapi_seamless_url

std::string gameapi_seamless_url

◆ hidden_score

int hidden_score
extern

◆ logo_env

LogoEnv* logo_env = 0

◆ s_time

unsigned long long s_time

◆ score

int score
extern

◆ sdl_window

Low_SDL_Window* sdl_window
extern