NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Functions
AssetCreationHelpers.h File Reference

Provides simple global functions that can be used to help create objects. More...

#include <string>
#include "RenderModule.h"
Include dependency graph for AssetCreationHelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

HRESULT CreateTexture (const std::string &file, LPDIRECT3DTEXTURE9 *texture)
 Loads a texture from the specified file into the texture pointer.
HRESULT CreateMesh (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.

Detailed Description

Provides simple global functions that can be used to help create objects.

Author:
Ricky Curtice
Date:
20110814

Definition in file AssetCreationHelpers.h.


Function Documentation

HRESULT CreateMesh ( const std::string &  file,
DWORD  options,
LPD3DXBUFFER *  ppAdjacency,
LPD3DXBUFFER *  ppMaterials,
LPD3DXBUFFER *  ppEffectInstances,
DWORD *  pNumMaterials,
LPD3DXMESH *  ppMesh 
) [inline]

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 39 of file AssetCreationHelpers.h.

HRESULT CreateTexture ( const std::string &  file,
LPDIRECT3DTEXTURE9 *  texture 
) [inline]

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 22 of file AssetCreationHelpers.h.