Kigs Framework  Doc version 0.8
Open source multi purpose Rapid Application Development framework
Public Member Functions | List of all members
BinMeshLoader Class Reference

#include <BinMeshLoader.h>

Inheritance diagram for BinMeshLoader:
BinMeshLoaderBase

Public Member Functions

 BinMeshLoader ()
 constructor
 
virtual ~BinMeshLoader ()
 destructor
 
int ImportFile (Mesh *pMesh, const kstl::string &FileName)
 import a mesh from a file More...
 
int ReadFile (Mesh *pMesh)
 read a file More...
 

Additional Inherited Members

- Public Types inherited from BinMeshLoaderBase
enum  TexEnvType
 type of environment
 
enum  BlendFuncSource
 type of blend source
 
enum  BlendFuncDest
 type of blend destination
 
- Protected Member Functions inherited from BinMeshLoaderBase
kstl::string ReadString (BufferedFile *)
 read a szString in myFile from the current read position More...
 
void ReadFloatArray (kfloat *dst, unsigned int count, BufferedFile *file)
 read a kFloat array in a buffered file from the current read position More...
 
- Protected Attributes inherited from BinMeshLoaderBase
BufferedFilemFile
 link to the readed file which contain the binMesh
 

Detailed Description

Import mesh from a binary file.

Member Function Documentation

◆ ImportFile()

int BinMeshLoader::ImportFile ( Mesh pMesh,
const kstl::string &  FileName 
)

import a mesh from a file

Parameters
pMesh: link to the mesh imported
FileName: name of the file to read
Returns
an error code :
  • 0 : no error
  • 1 : param error (a parameter is NULL)
  • 3 : no file
  • 10+ : reading error (+10)

◆ ReadFile()

int BinMeshLoader::ReadFile ( Mesh pMesh)

read a file

Parameters
pMesh: link to the mesh imported
Returns
an error code :
  • 0 : no error
only 0 is implemented

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