C++ Game Framework  2013-06-04
CGF is a DirectX 11 game framework, built in C++ and DirectX 11. This is used to contain many to the DirectX functionality and wrap them into a framework to make game development easier.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
IGraphicsObject.h
Go to the documentation of this file.
1 // Filename: IGraphicsObject.h
4 
5 //Preprocessor directive designed to cause the current source file to be included only once in a single compilation
6 #pragma once
7 
8 //Includes
9 #include "CGFInclude.h"
10 #include <d3d11.h>
11 #include <DirectXMath.h>
12 #include "Texture.h"
13 #include "Color4f.h"
14 
15 using namespace DirectX;
16 
17 enum Shaders
18 {
22 };
23 
24 namespace CGF
25 {
27  {
28  friend class GraphicsDevice;
29 
30  public:
31  virtual ~IGraphicsObject() { }
32 
33  private:
34  virtual void Render(ID3D11DeviceContext* deviceContext) = 0;
35  virtual XMMATRIX GetTransformMatrix() = 0;
36 
37  int GetIndexCount() { return m_indexCount; }
38  Shaders GetShaderType() { return m_shaderType; }
39 
40  protected:
45  };
46 }