![]() |
Maria GDK 5.0.0.738
Documentation of native code in develop branch
|
#include <StkNativeModelWriter.h>
Public Member Functions | |
NativeModelWriter (std::shared_ptr< STK::ShaderProgramManager > prg_mgr) | |
bool | write (const STK::MeshGraphicsModel &model, FILE *device) |
Protected Member Functions | |
long long | writeBytes (FILE *dev, const void *data, int size, long long num_elem) const |
long long | writeString (FILE *dev, const std::string &str) const |
bool | writeFileHeader (FILE *dev) const |
bool | writeTexture (const Texture &texture, FILE *device) |
bool | writeShaderProgram (const ShaderProgram &shader, FILE *device) |
bool | writeMaterial (const Material &mat, FILE *device) |
bool | writeVertexBuffer (const VertexBuffer &buf, FILE *device) |
bool | writeMesh (const Mesh &mesh, FILE *device) |
bool | writeMeshGroup (const MaterialMeshGroup &mesh, FILE *device) |
bool | writeMeshNode (const MeshNode &node, FILE *device) const |
void | writeColor (const STK::Color4i &c, FILE *device) |
bool | writeMatrix (const STK::Matrix4x4f &m, FILE *dev) const |
bool | writeQuaternion (const STK::Quaternionf &q, FILE *dev) const |
bool | writeVector3D (const STK::Vector3f &m, FILE *dev) const |
bool | writeKeyframeNodeAnimation (const KeyframeNodeAnimation &anim, FILE *device) const |
bool | writeAnimationController (const AnimationController &anim_ctrl, FILE *device) const |
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::ShaderProgramManager > | prg_mgr_ |
std::vector< std::shared_ptr< const STK::Material > > | materials_ |
std::vector< std::shared_ptr< const STK::ShaderProgram > > | shaders_ |
std::vector< std::shared_ptr< const STK::Texture > > | textures_ |
std::vector< std::shared_ptr< const STK::VertexBuffer > > | vtx_buffers_ |
std::vector< std::shared_ptr< const STK::Mesh > > | meshes_ |
NativeModelWriter - Write a graphics model in the native SWMF format.