![]() |
Maria GDK 5.0.0.738
Documentation of native code in develop branch
|
#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::Texture > | readTexture (FILE *device) |
std::shared_ptr< ShaderProgram > | readShaderProgram (FILE *device) |
std::unique_ptr< Material > | readMaterial (FILE *device) |
std::unique_ptr< VertexBuffer > | readVertexBuffer (FILE *device) |
std::unique_ptr< Mesh > | readMesh (FILE *device) |
bool | readMeshGroup (MaterialMeshGroup *mesh, FILE *device) |
std::unique_ptr< MeshNode > | readMeshNode (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::TextureManager > | tex_mgr_ |
std::shared_ptr< STK::ShaderProgramManager > | prg_mgr_ |
std::shared_ptr< STK::MeshGraphicsModel > | model_ |
std::shared_ptr< STK::FilePathResolver > | texture_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_ |
NativeModelReader - Short description. Detailed description.