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

#include <STLMeshLoader.h>

Public Types

enum  TexEnvType
 type of environment
 
enum  BlendFuncSource
 type of blend source
 
enum  BlendFuncDest
 type of blend destination
 

Public Member Functions

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

Protected Attributes

BufferedFilemFile
 link to the readed file which contain the binMesh
 

Detailed Description

Load an STL file and return an old.

Member Function Documentation

◆ ImportFile()

int STLMeshLoader::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 STLMeshLoader::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: