Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::NativeModelReader Class Reference

#include <StkNativeModelReader.h>

Public Member Functions

 NativeModelReader (std::shared_ptr< STK::ShaderProgramManager > prg_mgr, std::shared_ptr< STK::TextureManager > tex_mgr, std::shared_ptr< STK::FilePathResolver > tex_resolver=nullptr)
 
void addTexturePath (const std::string &path)
 
bool read (const std::shared_ptr< STK::MeshGraphicsModel > &model, FILE *device)
 

Protected Member Functions

long long readBytes (FILE *dev, void *data, int size, long long num_elem) const
 
long long readString (FILE *dev, std::string &str) const
 
bool readFileHeader (FILE *dev)
 
std::shared_ptr< STK::TexturereadTexture (FILE *device)
 
std::shared_ptr< ShaderProgramreadShaderProgram (FILE *device)
 
std::unique_ptr< MaterialreadMaterial (FILE *device)
 
std::unique_ptr< VertexBufferreadVertexBuffer (FILE *device)
 
std::unique_ptr< MeshreadMesh (FILE *device)
 
bool readMeshGroup (MaterialMeshGroup *mesh, FILE *device)
 
std::unique_ptr< MeshNodereadMeshNode (FILE *device)
 
void readColor (STK::Color4i &c, FILE *device)
 
void readMatrix (STK::Matrix4x4f &m, FILE *dev)
 
bool readVector3D (STK::Vector3f &v, FILE *dev)
 
bool readQuaternion (STK::Quaternionf &q, FILE *dev)
 
bool readAnimationController (AnimationController &anim_ctrl, FILE *device)
 
bool readKeyframeNodeAnimation (KeyframeNodeAnimation &anim, FILE *device)
 
int getTextureIndex (const STK::Texture *tex) const
 
int getShaderProgramIndex (const STK::ShaderProgram *shader) const
 
int getMaterialIndex (const STK::Material *mat) const
 
int getVertexBufferIndex (const STK::VertexBuffer *buf) const
 
int getMeshIndex (const STK::Mesh *mesh) const
 

Protected Attributes

unsigned int version_
 
unsigned int flags_
 
unsigned int product_id_
 
std::shared_ptr< STK::TextureManagertex_mgr_
 
std::shared_ptr< STK::ShaderProgramManagerprg_mgr_
 
std::shared_ptr< STK::MeshGraphicsModelmodel_
 
std::shared_ptr< STK::FilePathResolvertexture_paths_
 
std::vector< std::shared_ptr< STK::Material > > materials_
 
std::vector< std::shared_ptr< STK::ShaderProgram > > shaders_
 
std::vector< std::shared_ptr< Texture > > textures_
 
std::vector< std::shared_ptr< STK::VertexBuffer > > vtx_buffers_
 
std::vector< std::shared_ptr< STK::Mesh > > meshes_
 

Detailed Description

NativeModelReader - Short description. Detailed description.


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