NSMeshes::TDeclarationLoader Class Reference

This class contains static methods to load declaration from file. More...

#include <Declaration.h>

Inheritance diagram for NSMeshes::TDeclarationLoader:

Inheritance graph
[legend]
Collaboration diagram for NSMeshes::TDeclarationLoader:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static BOOL LoadDeclarationFromFile (const TString &filename, TRendererVertexElementArray &declArray, DWORD &vertexSize)
 This method loads vertex declaration from specified file.

Detailed Description

This class contains static methods to load declaration from file.

You CANNOT create instances of this class or derive another classes from this one.

Definition at line 69 of file Declaration.h.


Member Function Documentation

BOOL TDeclarationLoader::LoadDeclarationFromFile const TString filename,
TRendererVertexElementArray declArray,
DWORD vertexSize
[static]
 

This method loads vertex declaration from specified file.

Returns TRUE if declaration was loaded successfully, FALSE otherwise. If method returns TRUE declaration is stored in declArray.

Method also computes size of one vertex created by loaded declaration.

Warning:
This method use VFS!!!
Parameters:
filename [in] name of file with declaration
declArray [out] array with declaration
vertexSize [out] size of one vertex created by loaded declaration

Definition at line 105 of file Declaration.cpp.

References NSFileSystem::TVirtualFile::Close(), DBGASSERT_GRAPHICLOW, DBGNL, DBGTEXT, DBGTEXTF, FALSE, NSFileSystem::TFSFileSystem::GetFile(), TGlobalsSystem::GetFileSystem(), TString::GetString(), and NSFileSystem::TVirtualFile::Read().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Nov 28 23:08:19 2007 for Joy4D by  doxygen 1.4.6-NO