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

#include <Effect.hh>

Collaboration diagram for ArrayRender:

Public Member Functions

 ArrayRender (LowApi *g_low)
 ~ArrayRender ()
int NumFaces (FaceCollection &coll)
int NumVertices (FaceCollection &coll)
void Alloc (int numfaces, int numvertices)
void Alloc (int numfaces, int numvertices, int vertexframes, int normalframes, int colorframes, int texcoordframes)
void AllocTexture (int count)
std::pair< int, int > Insert (FaceCollection &coll)
std::pair< int, int > InsertMesh (Mesh &mesh, int frame)
std::vector< std::pair< int, int > > InsertAll (Mesh &mesh, MeshNormals &normal, MeshTexCoords &coord, MeshColors &color)
void UpdatePos (FaceCollection &coll, std::pair< int, int > p)
void UpdateNormals (Mesh &mesh, MeshNormals &normal, std::pair< int, int > p, int frame)
void UpdateTexCoord (Mesh &mesh, MeshTexCoords &coord, std::pair< int, int > p, int frame)
void UpdateColors (Mesh &mesh, MeshColors &color, std::pair< int, int > p, int frame)
void UpdateAllTextures (MeshTextures &texture)
void UpdateTexture (MeshTextures &texture, int num, bool textrender=false)
void EnableTexture (int num)
void DisableTexture ()
void Prepare ()
void Render (bool normal, bool color, bool texcoord)
void Render (bool normal, bool color, bool texcoord, int vertex_pos, int vertex_size)
void Render (int vertexframe, int normalframe, int colorframe, int texcoordframe, int vertex_pos, int vertex_size)
void Render (int vertexframe, int normalframe, int colorframe, int texcoordframe)
int VertexArrayStep () const
int NormalArrayStep () const
int ColorArrayStep () const
int TexCoordArrayStep () const
int TextureCount () const

Public Attributes

LowApi * g_low
float * vertex_array
int vertex_array_size
int * used_vertex_count
int * used_face_count
float * normal_array
unsigned char * color_array
float * tex_coord_array
bool quads
int * index_array
int m_vertex_frames
int m_normal_frames
int m_color_frames
int m_texcoord_frames
int * texture
int texture_count
int previous_frame
BufferRef ** textures
int * tex_size_x
int * tex_size_y
bool buffer_allocated
unsigned int buffer [5]
int q_num_vertices
float * q_vertex_array
float * q_normal_array
unsigned char * q_color_array
float * q_tex_coord_array
unsigned int vao [4]

Constructor & Destructor Documentation

◆ ArrayRender()

ArrayRender::ArrayRender ( LowApi * g_low)
inline

◆ ~ArrayRender()

ArrayRender::~ArrayRender ( )

Member Function Documentation

◆ Alloc() [1/2]

void ArrayRender::Alloc ( int numfaces,
int numvertices )
Here is the caller graph for this function:

◆ Alloc() [2/2]

void ArrayRender::Alloc ( int numfaces,
int numvertices,
int vertexframes,
int normalframes,
int colorframes,
int texcoordframes )

◆ AllocTexture()

void ArrayRender::AllocTexture ( int count)
Here is the caller graph for this function:

◆ ColorArrayStep()

int ArrayRender::ColorArrayStep ( ) const
inline

◆ DisableTexture()

void ArrayRender::DisableTexture ( )
Here is the caller graph for this function:

◆ EnableTexture()

void ArrayRender::EnableTexture ( int num)
Here is the caller graph for this function:

◆ Insert()

std::pair< int, int > ArrayRender::Insert ( FaceCollection & coll)
Here is the caller graph for this function:

◆ InsertAll()

std::vector< std::pair< int, int > > ArrayRender::InsertAll ( Mesh & mesh,
MeshNormals & normal,
MeshTexCoords & coord,
MeshColors & color )
Here is the caller graph for this function:

◆ InsertMesh()

std::pair< int, int > ArrayRender::InsertMesh ( Mesh & mesh,
int frame )
Here is the caller graph for this function:

◆ NormalArrayStep()

int ArrayRender::NormalArrayStep ( ) const
inline

◆ NumFaces()

int ArrayRender::NumFaces ( FaceCollection & coll)
Here is the caller graph for this function:

◆ NumVertices()

int ArrayRender::NumVertices ( FaceCollection & coll)
Here is the caller graph for this function:

◆ Prepare()

void ArrayRender::Prepare ( )
Here is the caller graph for this function:

◆ Render() [1/4]

void ArrayRender::Render ( bool normal,
bool color,
bool texcoord )
inline
Here is the caller graph for this function:

◆ Render() [2/4]

void ArrayRender::Render ( bool normal,
bool color,
bool texcoord,
int vertex_pos,
int vertex_size )

◆ Render() [3/4]

void ArrayRender::Render ( int vertexframe,
int normalframe,
int colorframe,
int texcoordframe )
inline
Here is the caller graph for this function:

◆ Render() [4/4]

void ArrayRender::Render ( int vertexframe,
int normalframe,
int colorframe,
int texcoordframe,
int vertex_pos,
int vertex_size )

◆ TexCoordArrayStep()

int ArrayRender::TexCoordArrayStep ( ) const
inline

◆ TextureCount()

int ArrayRender::TextureCount ( ) const
inline
Here is the caller graph for this function:

◆ UpdateAllTextures()

void ArrayRender::UpdateAllTextures ( MeshTextures & texture)

◆ UpdateColors()

void ArrayRender::UpdateColors ( Mesh & mesh,
MeshColors & color,
std::pair< int, int > p,
int frame )
Here is the caller graph for this function:

◆ UpdateNormals()

void ArrayRender::UpdateNormals ( Mesh & mesh,
MeshNormals & normal,
std::pair< int, int > p,
int frame )
Here is the caller graph for this function:

◆ UpdatePos()

void ArrayRender::UpdatePos ( FaceCollection & coll,
std::pair< int, int > p )

◆ UpdateTexCoord()

void ArrayRender::UpdateTexCoord ( Mesh & mesh,
MeshTexCoords & coord,
std::pair< int, int > p,
int frame )
Here is the caller graph for this function:

◆ UpdateTexture()

void ArrayRender::UpdateTexture ( MeshTextures & texture,
int num,
bool textrender = false )
Here is the caller graph for this function:

◆ VertexArrayStep()

int ArrayRender::VertexArrayStep ( ) const
inline

Member Data Documentation

◆ buffer

unsigned int ArrayRender::buffer[5]

◆ buffer_allocated

bool ArrayRender::buffer_allocated

◆ color_array

unsigned char* ArrayRender::color_array

◆ g_low

LowApi* ArrayRender::g_low

◆ index_array

int* ArrayRender::index_array

◆ m_color_frames

int ArrayRender::m_color_frames

◆ m_normal_frames

int ArrayRender::m_normal_frames

◆ m_texcoord_frames

int ArrayRender::m_texcoord_frames

◆ m_vertex_frames

int ArrayRender::m_vertex_frames

◆ normal_array

float* ArrayRender::normal_array

◆ previous_frame

int ArrayRender::previous_frame

◆ q_color_array

unsigned char* ArrayRender::q_color_array

◆ q_normal_array

float* ArrayRender::q_normal_array

◆ q_num_vertices

int ArrayRender::q_num_vertices

◆ q_tex_coord_array

float* ArrayRender::q_tex_coord_array

◆ q_vertex_array

float* ArrayRender::q_vertex_array

◆ quads

bool ArrayRender::quads

◆ tex_coord_array

float* ArrayRender::tex_coord_array

◆ tex_size_x

int* ArrayRender::tex_size_x

◆ tex_size_y

int* ArrayRender::tex_size_y

◆ texture

int* ArrayRender::texture

◆ texture_count

int ArrayRender::texture_count

◆ textures

BufferRef** ArrayRender::textures

◆ used_face_count

int* ArrayRender::used_face_count

◆ used_vertex_count

int* ArrayRender::used_vertex_count

◆ vao

unsigned int ArrayRender::vao[4]

◆ vertex_array

float* ArrayRender::vertex_array

◆ vertex_array_size

int ArrayRender::vertex_array_size

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