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

Public Member Functions

 ObjFileParser (LoadStream *file_data, int objcount, std::vector< std::string > material_names)
void Collect (CollectVisitor &vis)
void HeavyPrepare ()
void Prepare ()
void Load2 ()
Public Member Functions inherited from CollectInterface
virtual ~CollectInterface ()
virtual int NumBlocks () const
virtual void FirstFrame ()

Public Attributes

LoadStream * file_data
std::vector< Point > vertex_data
std::vector< Point2d > texcoord_data
std::vector< float > texcoord3_data
std::vector< Vector > normal_data
std::vector< unsigned int > color_data
std::vector< int > vertex_index
std::vector< int > texture_index
std::vector< int > normal_index
std::vector< int > face_counts
int obj_num
std::vector< int > counts
bool firsttime
std::vector< std::string > material_names_external
std::vector< std::string > material_names_internal
std::map< int, int > material_names_map
std::vector< int > obj_face_counts_start
std::vector< int > obj_face_counts_end
bool has_t
bool has_n

Constructor & Destructor Documentation

◆ ObjFileParser()

ObjFileParser::ObjFileParser ( LoadStream * file_data,
int objcount,
std::vector< std::string > material_names )
inline

Member Function Documentation

◆ Collect()

void ObjFileParser::Collect ( CollectVisitor & vis)
inlinevirtual

Implements CollectInterface.

◆ HeavyPrepare()

void ObjFileParser::HeavyPrepare ( )
inlinevirtual

Implements CollectInterface.

◆ Load2()

void ObjFileParser::Load2 ( )
inline
Here is the caller graph for this function:

◆ Prepare()

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

Member Data Documentation

◆ color_data

std::vector<unsigned int> ObjFileParser::color_data

◆ counts

std::vector<int> ObjFileParser::counts
mutable

◆ face_counts

std::vector<int> ObjFileParser::face_counts

◆ file_data

LoadStream* ObjFileParser::file_data

◆ firsttime

bool ObjFileParser::firsttime
mutable

◆ has_n

bool ObjFileParser::has_n

◆ has_t

bool ObjFileParser::has_t

◆ material_names_external

std::vector<std::string> ObjFileParser::material_names_external

◆ material_names_internal

std::vector<std::string> ObjFileParser::material_names_internal

◆ material_names_map

std::map<int,int> ObjFileParser::material_names_map

◆ normal_data

std::vector<Vector> ObjFileParser::normal_data

◆ normal_index

std::vector<int> ObjFileParser::normal_index

◆ obj_face_counts_end

std::vector<int> ObjFileParser::obj_face_counts_end

◆ obj_face_counts_start

std::vector<int> ObjFileParser::obj_face_counts_start

◆ obj_num

int ObjFileParser::obj_num

◆ texcoord3_data

std::vector<float> ObjFileParser::texcoord3_data

◆ texcoord_data

std::vector<Point2d> ObjFileParser::texcoord_data

◆ texture_index

std::vector<int> ObjFileParser::texture_index

◆ vertex_data

std::vector<Point> ObjFileParser::vertex_data

◆ vertex_index

std::vector<int> ObjFileParser::vertex_index

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