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

#include <VertexArray.hh>

Collaboration diagram for VertexArraySet:

Classes

struct  Polys

Public Member Functions

bool is_texture ()
bool is_array_texture ()
bool is_many_texture ()
 VertexArraySet ()
 VertexArraySet (const VertexArraySet &s)
void SetRef (FaceBufferRef r)
void clear_poly_and_poly2 (int id)
void clear_vectors (int id)
void clear_arrays ()
void set_bm_id (int id)
int get_bm_id () const
 ~VertexArraySet ()
void set_reserve (int id, int tri_count, int quad_count, int poly_count)
void free_reserve (int id)
void push_poly_with_indices (int id, int num, Point *points, unsigned int *indexes, int points_num)
void push_poly2_with_indices (int id, int num, Point *points, unsigned int *indexes, int points_num)
void push_normal_with_indices (int id, int num, Vector *vectors, unsigned int *indexes, int points_num)
void push_attrib_with_indices (int id, int attrib_id, int num, float *attribs, unsigned int *indexes)
void push_attribi_with_indices (int id, int attrib_id, int num, int *attribi, unsigned int *indexes)
void push_color_with_indices (int id, int num, unsigned int *colors, unsigned int *indexes, int points_num)
void push_texcoord_with_indices (int id, int num, Point *points, unsigned int *indexes, int points_num)
void push_joint_with_indices (int id, int num, VEC4 *points, unsigned int *indexes, int points_num)
void push_weight_with_indices (int id, int num, VEC4 *points, unsigned int *indexes, int points_num)
void push_poly (int id, int num, Point *points)
void push_poly2 (int id, int num, Point *points)
void push_normal (int id, int num, Vector *vectors)
void push_attrib (int id, int attrib_id, int num, float *attribs)
void push_attribi (int id, int attrib_id, int num, int *attribi)
void push_color (int id, int num, unsigned int *colors)
void push_texcoord (int id, int num, Point *points)
void push_joint (int id, int num, VEC4 *points)
void push_weight (int id, int num, VEC4 *points)
void split_color (std::vector< float > &vec, unsigned int color)
void split_color2 (std::vector< float > &vec, unsigned int color)
int tri_count (int id) const
int tri_count2 (int id) const
Point * tri_polys (int id)
const Point * tri_polys2 (int id) const
int quad_count (int id) const
int quad_count2 (int id) const
const Point * quad_polys (int id) const
const Point * quad_polys2 (int id) const
int poly_count_f (int id) const
const Point * poly_polys (int id) const
int poly_count2 (int id) const
const Point * poly_polys2 (int id) const
const unsigned char * indices_char () const
const unsigned short * indices_short () const
const unsigned int * indices_int () const
int tri_normal_count (int id) const
const Vector * tri_normal_polys (int id) const
int quad_normal_count (int id) const
const Vector * quad_normal_polys (int id) const
int poly_normal_count (int id) const
const Vector * poly_normal_polys (int id) const
int tri_attrib_count (int id, int attrib_id) const
const float * tri_attrib_polys (int id, int attrib_id) const
int quad_attrib_count (int id, int attrib_id) const
const float * quad_attrib_polys (int id, int attrib_id) const
int poly_attrib_count (int id, int attrib_id) const
int poly2_attrib_count (int id, int attrib_id) const
const float * poly_attrib_polys (int id, int attrib_id) const
int tri_attribi_count (int id, int attrib_id) const
const int * tri_attribi_polys (int id, int attrib_id) const
int quad_attribi_count (int id, int attrib_id) const
const int * quad_attribi_polys (int id, int attrib_id) const
int poly_attribi_count (int id, int attrib_id) const
int poly2_attribi_count (int id, int attrib_id) const
const int * poly_attribi_polys (int id, int attrib_id) const
int tri_color_count (int id) const
const float * tri_color_polys (int id) const
int quad_color_count (int id) const
const float * quad_color_polys (int id) const
int poly_color_count (int id) const
const float * poly_color_polys (int id) const
int tri_joint_count (int id) const
const VEC4 * tri_joint_polys (int id) const
int quad_joint_count (int id) const
const VEC4 * quad_joint_polys (int id) const
int poly_joint_count (int id) const
const VEC4 * poly_joint_polys (int id) const
int tri_weight_count (int id) const
const VEC4 * tri_weight_polys (int id) const
int quad_weight_count (int id) const
const VEC4 * quad_weight_polys (int id) const
int poly_weight_count (int id) const
const VEC4 * poly_weight_polys (int id) const
int tri_texcoord_count (int id) const
Point * tri_texcoord_polys (int id)
int quad_texcoord_count (int id) const
Point * quad_texcoord_polys (int id)
int poly_texcoord_count (int id) const
const Point * poly_texcoord_polys (int id) const
void check_m_set (int id)
void free_memory ()
void explode (int id, Point p, float dist)
void print_stat (int id)
void clone (int id_source, int id_target)
void apply_change (DynamicChange *change, int id_source, int id_target, MainLoopEnv &e)

Static Public Member Functions

static void append_to_polys (VertexArraySet::Polys &target, const VertexArraySet::Polys &source)

Public Attributes

int texture_id
std::vector< int > texture_many_ids
int bm_id
std::mymap< int, Polys * > m_set
int ref_count =0
const VertexArraySet * m_ref =0
bool has_normal =true
bool has_attrib =false
bool has_color =true
bool has_texcoord =true
bool has_skeleton =false
FaceBufferRef ref

Constructor & Destructor Documentation

◆ VertexArraySet() [1/2]

VertexArraySet::VertexArraySet ( )
inline
Here is the caller graph for this function:

◆ VertexArraySet() [2/2]

VertexArraySet::VertexArraySet ( const VertexArraySet & s)
inline

◆ ~VertexArraySet()

VertexArraySet::~VertexArraySet ( )

Member Function Documentation

◆ append_to_polys()

void VertexArraySet::append_to_polys ( VertexArraySet::Polys & target,
const VertexArraySet::Polys & source )
static
Here is the caller graph for this function:

◆ apply_change()

void VertexArraySet::apply_change ( DynamicChange * change,
int id_source,
int id_target,
MainLoopEnv & e )

◆ check_m_set()

void VertexArraySet::check_m_set ( int id)
Here is the caller graph for this function:

◆ clear_arrays()

void VertexArraySet::clear_arrays ( )
inline
Here is the caller graph for this function:

◆ clear_poly_and_poly2()

void VertexArraySet::clear_poly_and_poly2 ( int id)

◆ clear_vectors()

void VertexArraySet::clear_vectors ( int id)
Here is the caller graph for this function:

◆ clone()

void VertexArraySet::clone ( int id_source,
int id_target )

◆ explode()

void VertexArraySet::explode ( int id,
Point p,
float dist )

◆ free_memory()

void VertexArraySet::free_memory ( )
Here is the caller graph for this function:

◆ free_reserve()

void VertexArraySet::free_reserve ( int id)
Here is the caller graph for this function:

◆ get_bm_id()

int VertexArraySet::get_bm_id ( ) const
inline
Here is the caller graph for this function:

◆ indices_char()

const unsigned char * VertexArraySet::indices_char ( ) const
inline

◆ indices_int()

const unsigned int * VertexArraySet::indices_int ( ) const
inline

◆ indices_short()

const unsigned short * VertexArraySet::indices_short ( ) const
inline

◆ is_array_texture()

bool VertexArraySet::is_array_texture ( )
inline

◆ is_many_texture()

bool VertexArraySet::is_many_texture ( )
inline

◆ is_texture()

bool VertexArraySet::is_texture ( )
inline

◆ poly2_attrib_count()

int VertexArraySet::poly2_attrib_count ( int id,
int attrib_id ) const
inline
Here is the caller graph for this function:

◆ poly2_attribi_count()

int VertexArraySet::poly2_attribi_count ( int id,
int attrib_id ) const
inline
Here is the caller graph for this function:

◆ poly_attrib_count()

int VertexArraySet::poly_attrib_count ( int id,
int attrib_id ) const
inline

◆ poly_attrib_polys()

const float * VertexArraySet::poly_attrib_polys ( int id,
int attrib_id ) const
inline

◆ poly_attribi_count()

int VertexArraySet::poly_attribi_count ( int id,
int attrib_id ) const
inline

◆ poly_attribi_polys()

const int * VertexArraySet::poly_attribi_polys ( int id,
int attrib_id ) const
inline

◆ poly_color_count()

int VertexArraySet::poly_color_count ( int id) const
inline
Here is the caller graph for this function:

◆ poly_color_polys()

const float * VertexArraySet::poly_color_polys ( int id) const
inline

◆ poly_count2()

int VertexArraySet::poly_count2 ( int id) const
inline
Here is the caller graph for this function:

◆ poly_count_f()

int VertexArraySet::poly_count_f ( int id) const
inline
Here is the caller graph for this function:

◆ poly_joint_count()

int VertexArraySet::poly_joint_count ( int id) const
inline
Here is the caller graph for this function:

◆ poly_joint_polys()

const VEC4 * VertexArraySet::poly_joint_polys ( int id) const
inline

◆ poly_normal_count()

int VertexArraySet::poly_normal_count ( int id) const
inline
Here is the caller graph for this function:

◆ poly_normal_polys()

const Vector * VertexArraySet::poly_normal_polys ( int id) const
inline

◆ poly_polys()

const Point * VertexArraySet::poly_polys ( int id) const
inline

◆ poly_polys2()

const Point * VertexArraySet::poly_polys2 ( int id) const
inline

◆ poly_texcoord_count()

int VertexArraySet::poly_texcoord_count ( int id) const
inline
Here is the caller graph for this function:

◆ poly_texcoord_polys()

const Point * VertexArraySet::poly_texcoord_polys ( int id) const
inline

◆ poly_weight_count()

int VertexArraySet::poly_weight_count ( int id) const
inline
Here is the caller graph for this function:

◆ poly_weight_polys()

const VEC4 * VertexArraySet::poly_weight_polys ( int id) const
inline

◆ print_stat()

void VertexArraySet::print_stat ( int id)

◆ push_attrib()

void VertexArraySet::push_attrib ( int id,
int attrib_id,
int num,
float * attribs )

◆ push_attrib_with_indices()

void VertexArraySet::push_attrib_with_indices ( int id,
int attrib_id,
int num,
float * attribs,
unsigned int * indexes )

◆ push_attribi()

void VertexArraySet::push_attribi ( int id,
int attrib_id,
int num,
int * attribi )

◆ push_attribi_with_indices()

void VertexArraySet::push_attribi_with_indices ( int id,
int attrib_id,
int num,
int * attribi,
unsigned int * indexes )

◆ push_color()

void VertexArraySet::push_color ( int id,
int num,
unsigned int * colors )

◆ push_color_with_indices()

void VertexArraySet::push_color_with_indices ( int id,
int num,
unsigned int * colors,
unsigned int * indexes,
int points_num )

◆ push_joint()

void VertexArraySet::push_joint ( int id,
int num,
VEC4 * points )

◆ push_joint_with_indices()

void VertexArraySet::push_joint_with_indices ( int id,
int num,
VEC4 * points,
unsigned int * indexes,
int points_num )

◆ push_normal()

void VertexArraySet::push_normal ( int id,
int num,
Vector * vectors )

◆ push_normal_with_indices()

void VertexArraySet::push_normal_with_indices ( int id,
int num,
Vector * vectors,
unsigned int * indexes,
int points_num )

◆ push_poly()

void VertexArraySet::push_poly ( int id,
int num,
Point * points )

◆ push_poly2()

void VertexArraySet::push_poly2 ( int id,
int num,
Point * points )

◆ push_poly2_with_indices()

void VertexArraySet::push_poly2_with_indices ( int id,
int num,
Point * points,
unsigned int * indexes,
int points_num )

◆ push_poly_with_indices()

void VertexArraySet::push_poly_with_indices ( int id,
int num,
Point * points,
unsigned int * indexes,
int points_num )

◆ push_texcoord()

void VertexArraySet::push_texcoord ( int id,
int num,
Point * points )

◆ push_texcoord_with_indices()

void VertexArraySet::push_texcoord_with_indices ( int id,
int num,
Point * points,
unsigned int * indexes,
int points_num )

◆ push_weight()

void VertexArraySet::push_weight ( int id,
int num,
VEC4 * points )

◆ push_weight_with_indices()

void VertexArraySet::push_weight_with_indices ( int id,
int num,
VEC4 * points,
unsigned int * indexes,
int points_num )

◆ quad_attrib_count()

int VertexArraySet::quad_attrib_count ( int id,
int attrib_id ) const
inline
Here is the caller graph for this function:

◆ quad_attrib_polys()

const float * VertexArraySet::quad_attrib_polys ( int id,
int attrib_id ) const
inline

◆ quad_attribi_count()

int VertexArraySet::quad_attribi_count ( int id,
int attrib_id ) const
inline
Here is the caller graph for this function:

◆ quad_attribi_polys()

const int * VertexArraySet::quad_attribi_polys ( int id,
int attrib_id ) const
inline

◆ quad_color_count()

int VertexArraySet::quad_color_count ( int id) const
inline
Here is the caller graph for this function:

◆ quad_color_polys()

const float * VertexArraySet::quad_color_polys ( int id) const
inline

◆ quad_count()

int VertexArraySet::quad_count ( int id) const
inline
Here is the caller graph for this function:

◆ quad_count2()

int VertexArraySet::quad_count2 ( int id) const
inline
Here is the caller graph for this function:

◆ quad_joint_count()

int VertexArraySet::quad_joint_count ( int id) const
inline
Here is the caller graph for this function:

◆ quad_joint_polys()

const VEC4 * VertexArraySet::quad_joint_polys ( int id) const
inline

◆ quad_normal_count()

int VertexArraySet::quad_normal_count ( int id) const
inline
Here is the caller graph for this function:

◆ quad_normal_polys()

const Vector * VertexArraySet::quad_normal_polys ( int id) const
inline

◆ quad_polys()

const Point * VertexArraySet::quad_polys ( int id) const
inline

◆ quad_polys2()

const Point * VertexArraySet::quad_polys2 ( int id) const
inline

◆ quad_texcoord_count()

int VertexArraySet::quad_texcoord_count ( int id) const
inline
Here is the caller graph for this function:

◆ quad_texcoord_polys()

Point * VertexArraySet::quad_texcoord_polys ( int id)
inline

◆ quad_weight_count()

int VertexArraySet::quad_weight_count ( int id) const
inline
Here is the caller graph for this function:

◆ quad_weight_polys()

const VEC4 * VertexArraySet::quad_weight_polys ( int id) const
inline

◆ set_bm_id()

void VertexArraySet::set_bm_id ( int id)
inline
Here is the caller graph for this function:

◆ set_reserve()

void VertexArraySet::set_reserve ( int id,
int tri_count,
int quad_count,
int poly_count )
Here is the caller graph for this function:

◆ SetRef()

void VertexArraySet::SetRef ( FaceBufferRef r)
inline

◆ split_color()

void VertexArraySet::split_color ( std::vector< float > & vec,
unsigned int color )
Here is the caller graph for this function:

◆ split_color2()

void VertexArraySet::split_color2 ( std::vector< float > & vec,
unsigned int color )
Here is the caller graph for this function:

◆ tri_attrib_count()

int VertexArraySet::tri_attrib_count ( int id,
int attrib_id ) const
inline
Here is the caller graph for this function:

◆ tri_attrib_polys()

const float * VertexArraySet::tri_attrib_polys ( int id,
int attrib_id ) const
inline

◆ tri_attribi_count()

int VertexArraySet::tri_attribi_count ( int id,
int attrib_id ) const
inline
Here is the caller graph for this function:

◆ tri_attribi_polys()

const int * VertexArraySet::tri_attribi_polys ( int id,
int attrib_id ) const
inline

◆ tri_color_count()

int VertexArraySet::tri_color_count ( int id) const
inline
Here is the caller graph for this function:

◆ tri_color_polys()

const float * VertexArraySet::tri_color_polys ( int id) const
inline

◆ tri_count()

int VertexArraySet::tri_count ( int id) const
inline
Here is the caller graph for this function:

◆ tri_count2()

int VertexArraySet::tri_count2 ( int id) const
inline
Here is the caller graph for this function:

◆ tri_joint_count()

int VertexArraySet::tri_joint_count ( int id) const
inline
Here is the caller graph for this function:

◆ tri_joint_polys()

const VEC4 * VertexArraySet::tri_joint_polys ( int id) const
inline

◆ tri_normal_count()

int VertexArraySet::tri_normal_count ( int id) const
inline
Here is the caller graph for this function:

◆ tri_normal_polys()

const Vector * VertexArraySet::tri_normal_polys ( int id) const
inline

◆ tri_polys()

Point * VertexArraySet::tri_polys ( int id)
inline

◆ tri_polys2()

const Point * VertexArraySet::tri_polys2 ( int id) const
inline

◆ tri_texcoord_count()

int VertexArraySet::tri_texcoord_count ( int id) const
inline
Here is the caller graph for this function:

◆ tri_texcoord_polys()

Point * VertexArraySet::tri_texcoord_polys ( int id)
inline

◆ tri_weight_count()

int VertexArraySet::tri_weight_count ( int id) const
inline
Here is the caller graph for this function:

◆ tri_weight_polys()

const VEC4 * VertexArraySet::tri_weight_polys ( int id) const
inline

Member Data Documentation

◆ bm_id

int VertexArraySet::bm_id

◆ has_attrib

bool VertexArraySet::has_attrib =false

◆ has_color

bool VertexArraySet::has_color =true

◆ has_normal

bool VertexArraySet::has_normal =true

◆ has_skeleton

bool VertexArraySet::has_skeleton =false

◆ has_texcoord

bool VertexArraySet::has_texcoord =true

◆ m_ref

const VertexArraySet* VertexArraySet::m_ref =0
mutable

◆ m_set

std::mymap<int, Polys*> VertexArraySet::m_set
mutable

◆ ref

FaceBufferRef VertexArraySet::ref

◆ ref_count

int VertexArraySet::ref_count =0
mutable

◆ texture_id

int VertexArraySet::texture_id

◆ texture_many_ids

std::vector<int> VertexArraySet::texture_many_ids

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