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
Texture.h
Go to the documentation of this file.
1 // Filename: Texture.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 <d3d11.h>
10 #include "DDSTextureLoader.h"
11 
12 using namespace DirectX;
13 
14 namespace CGF
15 {
16  class Texture
17  {
18  public:
19  Texture();
20  ~Texture();
21 
22  bool Initialize(ID3D11Device*, WCHAR*);
23  void Shutdown();
24 
25  ID3D11ShaderResourceView* GetTexture();
26 
27  private:
28  ID3D11ShaderResourceView* m_texture;
29  };
30 }