NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
CubeRenderable.h
Go to the documentation of this file.
00001 
00012 #pragma once
00013 
00014 // Standard Includes
00015 
00016 // Library Includes
00017 //#include <d3d9.h>
00018 
00019 // Local Includes
00020 #include "../RenderableComponent.h"
00021 #include "../../material/MaterialsSystemInterface.h"
00022 
00023 // Forward Declarations
00024 
00025 // Typedefs
00026 
00027 // Constants
00028 
00029 // Classes
00030 namespace GraphicsCore {
00031   class CubeRenderable: public RenderableComponent, public MaterialsSystemInterface {
00032   public:
00033     CubeRenderable(EntitySPTR, ModuleInterface*, LPDIRECT3DDEVICE9);
00034     virtual ~CubeRenderable();
00035 
00036   private: // Overridden/implemented methods of parent classes
00037     void Render(LPDIRECT3DDEVICE9);
00038 
00039     bool InsertMaterial(unsigned int, EnvelopeSPTR);
00040     bool RemoveMaterial(unsigned int);
00041 
00042   private:
00043     LPD3DXMESH mesh;
00044     MaterialInterface* material;
00045   };
00046 }