GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
VoxMainLoopItem Class Reference
Inheritance diagram for VoxMainLoopItem:
Collaboration diagram for VoxMainLoopItem:

Public Member Functions

 VoxMainLoopItem (GameApi::Env &env, GameApi::EveryApi &ev, std::string url, std::string homepage, float sx, float sy, float sz, int model0)
 ~VoxMainLoopItem ()
virtual void Collect (CollectVisitor &vis)
virtual void HeavyPrepare ()
virtual void Prepare ()
virtual void execute (MainLoopEnv &e)
virtual void handle_event (MainLoopEvent &e)
virtual std::vector< int > shader_id ()
VoxSize get_size (bool &res_error, int model) const
VoxPalette get_palette (bool &res_error) const
int get_num_vox (bool &res_error, int model) const
XYZI get_voxel (bool &res_error, int model, int vox) const
GameApi::P get_cube (int model, int palette_index) const
GameApi::P get_voxel_model (int model) const
Public Member Functions inherited from MainLoopItem
virtual ~MainLoopItem ()
virtual void logoexecute ()
virtual void FirstFrame ()
virtual bool ReadyToPrepare () const
virtual void destroy ()
virtual void set_vars (std::map< std::string, std::string > vars)
virtual std::map< std::string, std::string > get_vars () const
Public Member Functions inherited from CollectInterface
virtual ~CollectInterface ()
virtual int NumBlocks () const

Constructor & Destructor Documentation

◆ VoxMainLoopItem()

VoxMainLoopItem::VoxMainLoopItem ( GameApi::Env & env,
GameApi::EveryApi & ev,
std::string url,
std::string homepage,
float sx,
float sy,
float sz,
int model0 )
inline

◆ ~VoxMainLoopItem()

VoxMainLoopItem::~VoxMainLoopItem ( )
inline

Member Function Documentation

◆ Collect()

virtual void VoxMainLoopItem::Collect ( CollectVisitor & vis)
inlinevirtual

Implements MainLoopItem.

◆ execute()

virtual void VoxMainLoopItem::execute ( MainLoopEnv & e)
inlinevirtual

Implements MainLoopItem.

◆ get_cube()

GameApi::P VoxMainLoopItem::get_cube ( int model,
int palette_index ) const
inline

◆ get_num_vox()

int VoxMainLoopItem::get_num_vox ( bool & res_error,
int model ) const
inline
Here is the caller graph for this function:

◆ get_palette()

VoxPalette VoxMainLoopItem::get_palette ( bool & res_error) const
inline
Here is the caller graph for this function:

◆ get_size()

VoxSize VoxMainLoopItem::get_size ( bool & res_error,
int model ) const
inline
Here is the caller graph for this function:

◆ get_voxel()

XYZI VoxMainLoopItem::get_voxel ( bool & res_error,
int model,
int vox ) const
inline
Here is the caller graph for this function:

◆ get_voxel_model()

GameApi::P VoxMainLoopItem::get_voxel_model ( int model) const
inline

◆ handle_event()

virtual void VoxMainLoopItem::handle_event ( MainLoopEvent & e)
inlinevirtual

Implements MainLoopItem.

◆ HeavyPrepare()

virtual void VoxMainLoopItem::HeavyPrepare ( )
inlinevirtual

Implements MainLoopItem.

Here is the caller graph for this function:

◆ Prepare()

virtual void VoxMainLoopItem::Prepare ( )
inlinevirtual

Implements MainLoopItem.

◆ shader_id()

virtual std::vector< int > VoxMainLoopItem::shader_id ( )
inlinevirtual

Reimplemented from MainLoopItem.


The documentation for this class was generated from the following file: