DI-Guy SDK Documentation  13.8
diguyDx11GraphicsTexture.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2024 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
6 #pragma once
7 
8 #include <diguyGraphicsTexture.h>
9 
10 struct ID3D11Texture2D;
11 struct ID3D11ShaderResourceView;
12 
17 {
18 
19 public:
20 
21  diguyDx11GraphicsTexture(void* internal_data);
22  virtual ~diguyDx11GraphicsTexture();
23 
24  virtual void build();
25  virtual void unbuild();
26  virtual void bind_now(diguyTextureMapType texture_type);
27 
28 protected:
29 
30  /*
31  * Convenience functions for texture creation
32  */
35  void buildNullTexture();
36 
37  ID3D11Texture2D* m_pTexture;
38  ID3D11ShaderResourceView* m_pTextureView;
39 };
40 
41 
47 
48 
diguyDx11GraphicsTexture(void *internal_data)
ID3D11Texture2D * m_pTexture
Definition: diguyDx11GraphicsTexture.h:37
virtual void bind_now(diguyTextureMapType texture_type)
This function will be called by DI-Guy when the texture should be made active, or bound...
A class that represents a shared texture.
Definition: diguyGraphicsTexture.h:124
virtual void build()
This function will be called by DI-Guy when it is time for a renderer-specific texture object to be c...
ID3D11ShaderResourceView * m_pTextureView
Definition: diguyDx11GraphicsTexture.h:38
diguyTextureMapType
This enumeration lists the type of texture map a given image file is being used as.
Definition: diguyGraphicsTexture.h:55
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.h:16
diguyGraphicsTexture * diguyDx11GraphicsTexture_create_func(void *internal_data)
Create function declaration.
virtual ~diguyDx11GraphicsTexture()