GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Common.hh File Reference
#include <string>
#include <vector>
#include "GameApi_h.hh"
Include dependency graph for Common.hh:

Go to the source code of this file.

Classes

class  HV
struct  CacheItem
struct  Envi_2
class  MaterialForward
struct  LogoEnv

Functions

std::string cache_id (std::string filename, int obj_count)
bool invalidate (CacheItem *item, std::string filename, int obj_count)
void splitter_iter2 (void *arg)
void blocker_iter (void *arg)
int FindProgressVal ()
int FindProgressMax ()
void ProgressBar (int num, int val, int max, std::string label)
void InstallProgress (int num, std::string label, int max=15)
unsigned int swap_color (unsigned int c)
std::vector< unsigned char > load_from_url (std::string url)
int find_data (std::string id)
void P_cb (void *data)
void combparse (std::string comb, std::vector< std::string > &vec)
std::vector< std::string > parse_sep (std::string s, char sep)
int find_str (std::string val, std::string repl)
std::string replace_str (std::string val, std::string repl, std::string subst)
int bitmap_find_data (std::string data)

Variables

Splitter * splitter_current
int g_shows_hundred
int hidden_score
int score
bool g_transparent
std::vector< std::pair< std::string, int > > prepare_cache_data
int thread_counter
ThreadInfo * ti_global
std::vector< int > g_hide_container
int no_draw_count
int g_event_screen_x
int g_event_screen_y
int async_pending_count
int async_pending_count_previous
std::string gameapi_homepageurl
std::string gameapi_seamless_url
int async_is_done
Low_SDL_Window * sdl_window
int frame_count =0
LogoEnv * logo_env = 0
std::vector< std::pair< std::string, int > > bitmap_prepare_cache_data

Function Documentation

◆ bitmap_find_data()

int bitmap_find_data ( std::string data)
Here is the caller graph for this function:

◆ blocker_iter()

void blocker_iter ( void * arg)
Here is the caller graph for this function:

◆ cache_id()

std::string cache_id ( std::string filename,
int obj_count )
Here is the caller graph for this function:

◆ combparse()

void combparse ( std::string comb,
std::vector< std::string > & vec )

◆ find_data()

int find_data ( std::string id)

◆ find_str()

int find_str ( std::string val,
std::string repl )
Here is the caller graph for this function:

◆ FindProgressMax()

int FindProgressMax ( )

◆ FindProgressVal()

int FindProgressVal ( )

◆ InstallProgress()

void InstallProgress ( int num,
std::string label,
int max = 15 )

◆ invalidate()

bool invalidate ( CacheItem * item,
std::string filename,
int obj_count )
Here is the caller graph for this function:

◆ load_from_url()

std::vector< unsigned char > load_from_url ( std::string url)

◆ P_cb()

void P_cb ( void * data)

◆ parse_sep()

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

◆ ProgressBar()

void ProgressBar ( int num,
int val,
int max,
std::string label )

std::cout << "ProgressBar: '" << num << " " << label << " " << val << " " << max << "'" << std::endl;

◆ replace_str()

std::string replace_str ( std::string val,
std::string repl,
std::string subst )
Here is the caller graph for this function:

◆ splitter_iter2()

void splitter_iter2 ( void * arg)

◆ swap_color()

unsigned int swap_color ( unsigned int c)

Variable Documentation

◆ async_is_done

int async_is_done
extern

◆ async_pending_count

int async_pending_count
extern

◆ async_pending_count_previous

int async_pending_count_previous
extern

◆ bitmap_prepare_cache_data

std::vector<std::pair<std::string,int> > bitmap_prepare_cache_data

◆ frame_count

int frame_count =0

◆ g_event_screen_x

int g_event_screen_x
extern

◆ g_event_screen_y

int g_event_screen_y

◆ g_hide_container

std::vector<int> g_hide_container
extern

◆ g_shows_hundred

int g_shows_hundred
extern

◆ g_transparent

bool g_transparent
extern

◆ gameapi_homepageurl

std::string gameapi_homepageurl
extern

◆ gameapi_seamless_url

std::string gameapi_seamless_url
extern

◆ hidden_score

int hidden_score
extern

◆ logo_env

LogoEnv* logo_env = 0

◆ no_draw_count

int no_draw_count
extern

◆ prepare_cache_data

std::vector<std::pair<std::string,int> > prepare_cache_data
extern

◆ score

int score
extern

◆ sdl_window

Low_SDL_Window* sdl_window
extern

◆ splitter_current

Splitter* splitter_current
extern

◆ thread_counter

int thread_counter
extern

◆ ti_global

ThreadInfo* ti_global
extern