GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
accel.cc File Reference
#include "accel.hh"
#include "..\GameApi_h.hh"
Include dependency graph for accel.cc:

Classes

class  FromStreamClass2< T >
class  FromStreamClass2< std::string >
class  FromStreamClass2< unsigned int >
class  FromStreamClass2< std::vector< T > >
class  ApiItem< RT, P >
struct  AccelNodeSpec
class  GridAccel
struct  Accel_P_ref
class  BindPreCalc
class  ClearPreCalc
class  OrElemPreCalc
class  OrArrayPreCalc

Macros

#define MACRO(lab)
#define MACRO_GAMEAPI(lab)

Functions

std::string hexify (std::string s)
std::string unhexify (std::string s)
std::string unique_id_apiitem ()
PML add_pml (PreCalcMainLoop *p)
AK add_ak (AccelStructure *w)
PreCalcMainLoop * find_pml (PML pm)
AccelStructure * find_ak (AK as)
 MACRO (AK)
 MACRO (PML)
 MACRO_GAMEAPI (GameApi::P)
template<typename T>
T from_stream22 (std::stringstream &is)
template<class RT, class... P>
int funccall (RT(fptr)(P...), std::vector< std::string > s, std::vector< std::string > param_name)
template<class RT, class... P>
Item * ApiItemF (RT(*fptr)(P...), std::string name, std::vector< std::string > param_name, std::vector< std::string > param_type, std::vector< std::string > param_default, std::string return_type, std::string func_name)
std::string api_name ()
int num_displays ()
std::string type_symbol ()
void display (int i, int disp)
std::vector< Item * > functions ()
GameApi::Env & env ()
AK empty (int sx, int sy, int sz, float start_x, float end_x, float start_y, float end_y, float start_z, float end_z)
PML bind_p (AK orig, GameApi::P p)
PML clear (AK orig)
PML or_elem (PML p1, PML p2)
PML or_array (std::vector< PML > vec)

Variables

std::vector< AccelStructure * > envimpl_accel
std::vector< PreCalcMainLoop * > envimpl_precalc

Macro Definition Documentation

◆ MACRO

#define MACRO ( lab)
Value:
template<> \
class FromStreamClass2<lab> \
{ \
public:\
lab from_stream(std::string s)\
{\
lab bm;\
std::stringstream is(unhexify(s)); \
is >> bm.id;\
return bm;\
}\
};
std::string unhexify(std::string s)
Definition accel.cc:21
Definition accel.cc:84

◆ MACRO_GAMEAPI

#define MACRO_GAMEAPI ( lab)
Value:
template<> \
class FromStreamClass2<lab> \
{ \
public:\
lab from_stream(std::string s)\
{\
lab bm;\
std::stringstream is(s); \
is >> bm.id;\
return bm;\
}\
};

Function Documentation

◆ add_ak()

AK add_ak ( AccelStructure * w)
Here is the caller graph for this function:

◆ add_pml()

PML add_pml ( PreCalcMainLoop * p)
Here is the caller graph for this function:

◆ api_name()

std::string api_name ( )
Here is the caller graph for this function:

◆ ApiItemF()

template<class RT, class... P>
Item * ApiItemF ( RT(* fptr )(P...),
std::string name,
std::vector< std::string > param_name,
std::vector< std::string > param_type,
std::vector< std::string > param_default,
std::string return_type,
std::string func_name )
Here is the caller graph for this function:

◆ bind_p()

PML bind_p ( AK orig,
GameApi::P p )
Here is the caller graph for this function:

◆ clear()

PML clear ( AK orig)
Here is the caller graph for this function:

◆ display()

void display ( int i,
int disp )

◆ empty()

AK empty ( int sx,
int sy,
int sz,
float start_x,
float end_x,
float start_y,
float end_y,
float start_z,
float end_z )
Here is the caller graph for this function:

◆ env()

GameApi::Env & env ( )
Here is the caller graph for this function:

◆ find_ak()

AccelStructure * find_ak ( AK as)
Here is the caller graph for this function:

◆ find_pml()

PreCalcMainLoop * find_pml ( PML pm)
Here is the caller graph for this function:

◆ from_stream22()

template<typename T>
T from_stream22 ( std::stringstream & is)
Here is the caller graph for this function:

◆ funccall()

template<class RT, class... P>
int funccall ( RT(fptr)(P...) ,
std::vector< std::string > s,
std::vector< std::string > param_name )

◆ functions()

std::vector< Item * > functions ( )
Here is the caller graph for this function:

◆ hexify()

std::string hexify ( std::string s)
Here is the caller graph for this function:

◆ MACRO() [1/2]

MACRO ( AK )

◆ MACRO() [2/2]

MACRO ( PML )

◆ MACRO_GAMEAPI()

MACRO_GAMEAPI ( GameApi::P )

◆ num_displays()

int num_displays ( )

◆ or_array()

PML or_array ( std::vector< PML > vec)
Here is the caller graph for this function:

◆ or_elem()

PML or_elem ( PML p1,
PML p2 )
Here is the caller graph for this function:

◆ type_symbol()

std::string type_symbol ( )

◆ unhexify()

std::string unhexify ( std::string s)

◆ unique_id_apiitem()

std::string unique_id_apiitem ( )
Here is the caller graph for this function:

Variable Documentation

◆ envimpl_accel

std::vector<AccelStructure*> envimpl_accel

◆ envimpl_precalc

std::vector<PreCalcMainLoop*> envimpl_precalc