DI-Guy SDK Documentation  13.2
diguyDx11GraphicsTexture.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 #include <diguyGraphicsTexture.h>
5 
6 struct ID3D11Texture2D;
7 struct ID3D11ShaderResourceView;
8 
13 {
14 
15 public:
16 
17  diguyDx11GraphicsTexture(void* internal_data);
18  virtual ~diguyDx11GraphicsTexture();
19 
20  virtual void build();
21  virtual void unbuild();
22  virtual void bind_now(diguyTextureMapType texture_type);
23 
24 protected:
25 
26  /*
27  * Convenience functions for texture creation
28  */
31  void buildNullTexture();
32 
33  ID3D11Texture2D* m_pTexture;
34  ID3D11ShaderResourceView* m_pTextureView;
35 };
36 
37 
43 
44 
void buildNullTexture()
Definition: diguyDx11GraphicsTexture.cpp:1080
diguyDx11GraphicsTexture(void *internal_data)
Definition: diguyDx11GraphicsTexture.cpp:843
virtual ~diguyDx11GraphicsTexture()
Definition: diguyDx11GraphicsTexture.cpp:855
ID3D11Texture2D * m_pTexture
Definition: diguyDx11GraphicsTexture.h:32
void buildUncompressedTexture()
Definition: diguyDx11GraphicsTexture.cpp:923
A class that represents a shared texture.
Definition: diguyGraphicsTexture.h:122
ID3D11ShaderResourceView * m_pTextureView
Definition: diguyDx11GraphicsTexture.h:33
diguyTextureMapType
This enumeration lists the type of texture map a given image file is being used as.
Definition: diguyGraphicsTexture.h:56
virtual void unbuild()
This function will be called by DI-Guy when it is time for a renderer-specific texture object to be d...
Definition: diguyDx11GraphicsTexture.cpp:1162
virtual void build()
This function will be called by DI-Guy when it is time for a renderer-specific texture object to be c...
Definition: diguyDx11GraphicsTexture.cpp:885
void buildCompressedTexture()
Definition: diguyDx11GraphicsTexture.cpp:1016
Definition: diguyDx11GraphicsTexture.h:11
virtual void bind_now(diguyTextureMapType texture_type)
This function will be called by DI-Guy when the texture should be made active, or bound...
Definition: diguyDx11GraphicsTexture.cpp:1191
diguyGraphicsTexture * diguyDx11GraphicsTexture_create_func(void *internal_data)
Create function declaration.
Definition: diguyDx11GraphicsTexture.cpp:1234