GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
VertexArray.cc File Reference
#include "VertexArray.hh"
#include "GameApi_h.hh"
#include "GameApi_low.hh"
#include <atomic>
Include dependency graph for VertexArray.cc:

Classes

class  PolysFaceCollection

Macros

#define VAO   1
#define KP
#define ATTRIB_OFFSET(X)

Functions

void stackTrace ()
bool range_check (int i, int points_num)
template<class T>
void clone_vector (std::vector< T > &source, std::vector< T > &target)
template<class T>
void clone_map (std::mymap< int, std::vector< T > > &source, std::mymap< int, std::vector< T > > &target)
template<class T>
void append_from_map (const std::mymap< int, std::vector< T > > &m, std::mymap< int, std::vector< T > > &m2)
bool sort_compare_tri_polys (const Point *p1, const Point *p2)
void swap_elem (int i1, int i2)
void store_elem (int i)
void set_elem (int i2)
void sort_vertex ()
KP Counts CalcCounts (FaceCollection *coll, int start, int end)
Counts CalcOffsets (FaceCollection *coll, int start)
void ProgressBar (int val, int max)
void * thread_func (void *data)
bool is_texture_usage_confirmed (const FaceCollection *p)
bool is_texture_usage_confirmed (VertexArraySet *set)
void check_error (std::string loc)

Variables

Matrix g_in_MV
std::vector< Point > * g_ptr
std::vector< Vector > * g_ptr_normal
std::vector< float > * g_ptr_color
std::vector< Point > * g_ptr_texcoord
std::vector< VEC4 > * g_ptr_joint
std::vector< VEC4 > * g_ptr_weight
int g_count
Point g_x [6]
Vector gv_x [6]
float gc_x [6 *4]
Point gt_x [6]
VEC4 gj_x [6]
VEC4 gw_x [6]
bool g_disable_polygons
std::map< Point *, bool > g_inst_map
std::map< Matrix *, bool > g_inst_map_matrix
std::atomic< bool > g_lock1
std::atomic< bool > g_lock2
std::atomic< bool > g_lock3
ThreadInfo volatile * ti_global
volatile int thread_counter =0
std::string g_msg_string
long long g_copy_total
long long g_copy_progress
bool g_use_vertices_only = false

Macro Definition Documentation

◆ ATTRIB_OFFSET

#define ATTRIB_OFFSET ( X)
Value:
((const Low_GLvoid *)(sizeof(Low_GLfloat) * (X)))
void Low_GLvoid
Definition GameApi_low.hh:43
float Low_GLfloat
Definition GameApi_low.hh:45
Definition Equalizer.hh:1800

◆ KP

#define KP

◆ VAO

#define VAO   1

Function Documentation

◆ append_from_map()

template<class T>
void append_from_map ( const std::mymap< int, std::vector< T > > & m,
std::mymap< int, std::vector< T > > & m2 )
Here is the caller graph for this function:

◆ CalcCounts()

KP Counts CalcCounts ( FaceCollection * coll,
int start,
int end )
Here is the caller graph for this function:

◆ CalcOffsets()

Counts CalcOffsets ( FaceCollection * coll,
int start )
Here is the caller graph for this function:

◆ check_error()

void check_error ( std::string loc)
Here is the caller graph for this function:

◆ clone_map()

template<class T>
void clone_map ( std::mymap< int, std::vector< T > > & source,
std::mymap< int, std::vector< T > > & target )
Here is the caller graph for this function:

◆ clone_vector()

template<class T>
void clone_vector ( std::vector< T > & source,
std::vector< T > & target )
Here is the caller graph for this function:

◆ is_texture_usage_confirmed() [1/2]

bool is_texture_usage_confirmed ( const FaceCollection * p)
Here is the caller graph for this function:

◆ is_texture_usage_confirmed() [2/2]

bool is_texture_usage_confirmed ( VertexArraySet * set)

◆ ProgressBar()

void ProgressBar ( int val,
int max )

◆ range_check()

bool range_check ( int i,
int points_num )
Here is the caller graph for this function:

◆ set_elem()

void set_elem ( int i2)
Here is the caller graph for this function:

◆ sort_compare_tri_polys()

bool sort_compare_tri_polys ( const Point * p1,
const Point * p2 )
Here is the caller graph for this function:

◆ sort_vertex()

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

◆ stackTrace()

void stackTrace ( )

◆ store_elem()

void store_elem ( int i)
Here is the caller graph for this function:

◆ swap_elem()

void swap_elem ( int i1,
int i2 )
Here is the caller graph for this function:

◆ thread_func()

void * thread_func ( void * data)
Here is the caller graph for this function:

Variable Documentation

◆ g_copy_progress

long long g_copy_progress

◆ g_copy_total

long long g_copy_total

◆ g_count

int g_count

◆ g_disable_polygons

bool g_disable_polygons
extern

◆ g_in_MV

Matrix g_in_MV

◆ g_inst_map

std::map<Point*,bool> g_inst_map

◆ g_inst_map_matrix

std::map<Matrix*,bool> g_inst_map_matrix

◆ g_lock1

std::atomic<bool> g_lock1

◆ g_lock2

std::atomic<bool> g_lock2

◆ g_lock3

std::atomic<bool> g_lock3

◆ g_msg_string

std::string g_msg_string

◆ g_ptr

std::vector<Point>* g_ptr

◆ g_ptr_color

std::vector<float>* g_ptr_color

◆ g_ptr_joint

std::vector<VEC4>* g_ptr_joint

◆ g_ptr_normal

std::vector<Vector>* g_ptr_normal

◆ g_ptr_texcoord

std::vector<Point>* g_ptr_texcoord

◆ g_ptr_weight

std::vector<VEC4>* g_ptr_weight

◆ g_use_vertices_only

bool g_use_vertices_only = false

◆ g_x

Point g_x[6]

◆ gc_x

float gc_x[6 *4]

◆ gj_x

VEC4 gj_x[6]

◆ gt_x

Point gt_x[6]

◆ gv_x

Vector gv_x[6]

◆ gw_x

VEC4 gw_x[6]

◆ thread_counter

volatile int thread_counter =0

◆ ti_global

ThreadInfo volatile* ti_global