NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
AssetCreationHelpers.h
Go to the documentation of this file.
00001 
00008 #pragma once
00009 
00010 #include <string>
00011 
00012 #include "RenderModule.h"
00013 
00022 inline HRESULT CreateTexture(const std::string& file, LPDIRECT3DTEXTURE9 *texture) {
00023   return GraphicsCore::RenderModule::GetRenderModule()->TextureFactory(file, texture);
00024 }
00025 
00039 inline HRESULT CreateMesh(const std::string& file, DWORD options, LPD3DXBUFFER* ppAdjacency, LPD3DXBUFFER* ppMaterials, LPD3DXBUFFER* ppEffectInstances, DWORD* pNumMaterials, LPD3DXMESH* ppMesh) {
00040   return GraphicsCore::RenderModule::GetRenderModule()->MeshFactory(file, options, ppAdjacency, ppMaterials, ppEffectInstances, pNumMaterials, ppMesh);
00041 }