NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Public Member Functions | Static Public Member Functions
GraphicsCore::RenderModule Class Reference
Inheritance diagram for GraphicsCore::RenderModule:
Inheritance graph
[legend]
Collaboration diagram for GraphicsCore::RenderModule:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RenderModule (PropertyMap *gprops, MessageRouter *msgrouter)
bool RegisterComponent (RenderableComponent *renderableComponent)
bool UnregisterComponent (RenderableComponent *renderableComponent)
bool RegisterUpdateable (InterfaceUpdateable *)
bool UnregisterUpdateable (InterfaceUpdateable *)
void Update (double dt)
void Startup (EnvelopeSPTR)
void Shutdown (EnvelopeSPTR)
void CreateComponent (std::string, std::map< std::string, boost::any > &, EntitySPTR)
WHO_DELETES::TYPE RemoveComponent (ComponentInterface *)
MessageRouterGetMessageRouter ()
HRESULT TextureFactory (const std::string &file, LPDIRECT3DTEXTURE9 *texture)
 Loads a texture from the specified file into the texture pointer.
HRESULT MeshFactory (const std::string &file, DWORD options, LPD3DXBUFFER *ppAdjacency, LPD3DXBUFFER *ppMaterials, LPD3DXBUFFER *ppEffectInstances, DWORD *pNumMaterials, LPD3DXMESH *ppMesh)
 Loads a mesh from the specified X-format mesh file.

Static Public Member Functions

static RenderModuleGetRenderModule ()

Detailed Description

Definition at line 46 of file RenderModule.h.


Member Function Documentation

HRESULT GraphicsCore::RenderModule::MeshFactory ( const std::string &  file,
DWORD  options,
LPD3DXBUFFER *  ppAdjacency,
LPD3DXBUFFER *  ppMaterials,
LPD3DXBUFFER *  ppEffectInstances,
DWORD *  pNumMaterials,
LPD3DXMESH *  ppMesh 
)

Loads a mesh from the specified X-format mesh file.

Parameters are duplicates of the parameters for D3DXCreateMeshFromX(...)

Parameters:
fileInput: The path and file name for an X-format mesh
optionsInput:
ppAdjacencyOutput:
ppMaterialsOutput:
ppEffectInstancesOutput:
pNumMaterialsOutput:
ppMeshOutput:
Returns:
whether or not the mesh loaded successfully

Definition at line 53 of file RenderModuleFactories.cpp.

HRESULT GraphicsCore::RenderModule::TextureFactory ( const std::string &  file,
LPDIRECT3DTEXTURE9 *  texture 
)

Loads a texture from the specified file into the texture pointer.

Supported file types are: .bmp, .jpg, .png, and .tga

Parameters:
fileInput: The path and file name for a supported image file
textureOutput: The resulting texture
Returns:
whether or not the texture loaded successfully

Definition at line 20 of file RenderModuleFactories.cpp.


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