Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CGradientTexture Class Referencefinal
Inheritance diagram for CGradientTexture:
Collaboration diagram for CGradientTexture:

Public Member Functions

 CGradientTexture (const CColor &colorFrom, const CColor &colorTo, Renderer::Backend::IDevice *device, CTextureManagerImpl *textureManager)
 
void Upload (Renderer::Backend::IDeviceCommandContext *deviceCommandContext)
 
- Public Member Functions inherited from CPredefinedTexture
const CTexturePtrGetTexture ()
 
void CreateTexture (std::unique_ptr< Renderer::Backend::ITexture > backendTexture, CTextureManagerImpl *textureManager)
 

Static Public Attributes

static const uint32_t WIDTH = 256
 
static const uint32_t NUMBER_OF_LEVELS = 9
 

Private Attributes

CColor m_ColorFrom
 
CColor m_ColorTo
 

Constructor & Destructor Documentation

◆ CGradientTexture()

CGradientTexture::CGradientTexture ( const CColor colorFrom,
const CColor colorTo,
Renderer::Backend::IDevice device,
CTextureManagerImpl textureManager 
)
inline

Member Function Documentation

◆ Upload()

void CGradientTexture::Upload ( Renderer::Backend::IDeviceCommandContext deviceCommandContext)
inline

Member Data Documentation

◆ m_ColorFrom

CColor CGradientTexture::m_ColorFrom
private

◆ m_ColorTo

CColor CGradientTexture::m_ColorTo
private

◆ NUMBER_OF_LEVELS

const uint32_t CGradientTexture::NUMBER_OF_LEVELS = 9
static

◆ WIDTH

const uint32_t CGradientTexture::WIDTH = 256
static

The documentation for this class was generated from the following file: