GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi::PolygonObj Class Reference

#include <GameApi.hh>

Inheritance diagram for GameApi::PolygonObj:
Collaboration diagram for GameApi::PolygonObj:

Public Member Functions

 PolygonObj (EveryApi &ev, P p, SH sh)
 PolygonObj (EveryApi &ev, std::vector< P > anim_p, SH sh)
 ~PolygonObj ()
void prepare (bool keep=false)
void render ()
void render_instanced (PTA pta)
void set_pos (float pos_x, float pos_y, float pos_z)
void set_scale (float mult_x, float mult_y, float mult_z)
void set_rotation_y (float angle)
void set_rotation_matrix (M m)
void set_rotation_matrix2 (M m)
void bind_texture (int anim_id, TXID id_)
void bind_texarray (TXA id)
void set_anim_frame (int id)
void set_anim_time (float time)
void set_var (std::string name, float r, float g, float b, float a)
Public Member Functions inherited from GameApi::RenderObject
virtual ~RenderObject ()
Public Member Functions inherited from GameApi::MoveScaleObject3d
virtual ~MoveScaleObject3d ()

Constructor & Destructor Documentation

◆ PolygonObj() [1/2]

GameApi::PolygonObj::PolygonObj ( EveryApi & ev,
P p,
SH sh )
inline

◆ PolygonObj() [2/2]

GameApi::PolygonObj::PolygonObj ( EveryApi & ev,
std::vector< P > anim_p,
SH sh )
inline

◆ ~PolygonObj()

GameApi::PolygonObj::~PolygonObj ( )
inline

Member Function Documentation

◆ bind_texarray()

void GameApi::PolygonObj::bind_texarray ( TXA id)
inline

◆ bind_texture()

void GameApi::PolygonObj::bind_texture ( int anim_id,
TXID id_ )
inline
Here is the caller graph for this function:

◆ prepare()

void GameApi::PolygonObj::prepare ( bool keep = false)
inlinevirtual

Implements GameApi::RenderObject.

Here is the caller graph for this function:

◆ render()

void GameApi::PolygonObj::render ( )
inlinevirtual

Implements GameApi::RenderObject.

Here is the caller graph for this function:

◆ render_instanced()

void GameApi::PolygonObj::render_instanced ( PTA pta)
inline
Here is the caller graph for this function:

◆ set_anim_frame()

void GameApi::PolygonObj::set_anim_frame ( int id)
inline

◆ set_anim_time()

void GameApi::PolygonObj::set_anim_time ( float time)
inline

◆ set_pos()

void GameApi::PolygonObj::set_pos ( float pos_x,
float pos_y,
float pos_z )
inlinevirtual

Implements GameApi::MoveScaleObject3d.

Here is the caller graph for this function:

◆ set_rotation_matrix()

void GameApi::PolygonObj::set_rotation_matrix ( M m)
inlinevirtual

◆ set_rotation_matrix2()

void GameApi::PolygonObj::set_rotation_matrix2 ( M m)
inlinevirtual

Implements GameApi::MoveScaleObject3d.

Here is the caller graph for this function:

◆ set_rotation_y()

void GameApi::PolygonObj::set_rotation_y ( float angle)
inline
Here is the caller graph for this function:

◆ set_scale()

void GameApi::PolygonObj::set_scale ( float mult_x,
float mult_y,
float mult_z )
inlinevirtual

Implements GameApi::MoveScaleObject3d.

Here is the caller graph for this function:

◆ set_var()

void GameApi::PolygonObj::set_var ( std::string name,
float r,
float g,
float b,
float a )
inlinevirtual

Implements GameApi::RenderObject.


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