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
DirectX Namespace Reference

Enumerations

enum  DDS_ALPHA_MODE {
  DDS_ALPHA_MODE_UNKNOWN = 0, DDS_ALPHA_MODE_STRAIGHT = 1, DDS_ALPHA_MODE_PREMULTIPLIED = 2, DDS_ALPHA_MODE_OPAQUE = 3,
  DDS_ALPHA_MODE_CUSTOM = 4
}
 

Functions

HRESULT CreateDDSTextureFromMemory (_In_ ID3D11Device *d3dDevice, _In_reads_bytes_(ddsDataSize) const uint8_t *ddsData, _In_ size_t ddsDataSize, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView, _In_ size_t maxsize=0, _Out_opt_ DDS_ALPHA_MODE *alphaMode=nullptr)
 
HRESULT CreateDDSTextureFromFile (_In_ ID3D11Device *d3dDevice, _In_z_ const wchar_t *szFileName, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView, _In_ size_t maxsize=0, _Out_opt_ DDS_ALPHA_MODE *alphaMode=nullptr)
 
HRESULT CreateDDSTextureFromMemoryEx (_In_ ID3D11Device *d3dDevice, _In_reads_bytes_(ddsDataSize) const uint8_t *ddsData, _In_ size_t ddsDataSize, _In_ size_t maxsize, _In_ D3D11_USAGE usage, _In_ unsigned int bindFlags, _In_ unsigned int cpuAccessFlags, _In_ unsigned int miscFlags, _In_ bool forceSRGB, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView, _Out_opt_ DDS_ALPHA_MODE *alphaMode=nullptr)
 
HRESULT CreateDDSTextureFromFileEx (_In_ ID3D11Device *d3dDevice, _In_z_ const wchar_t *szFileName, _In_ size_t maxsize, _In_ D3D11_USAGE usage, _In_ unsigned int bindFlags, _In_ unsigned int cpuAccessFlags, _In_ unsigned int miscFlags, _In_ bool forceSRGB, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView, _Out_opt_ DDS_ALPHA_MODE *alphaMode=nullptr)
 

Enumeration Type Documentation

Enumerator
DDS_ALPHA_MODE_UNKNOWN 
DDS_ALPHA_MODE_STRAIGHT 
DDS_ALPHA_MODE_PREMULTIPLIED 
DDS_ALPHA_MODE_OPAQUE 
DDS_ALPHA_MODE_CUSTOM 

Function Documentation

HRESULT DirectX::CreateDDSTextureFromFile ( _In_ ID3D11Device *  d3dDevice,
_In_z_ const wchar_t *  szFileName,
_Outptr_opt_ ID3D11Resource **  texture,
_Outptr_opt_ ID3D11ShaderResourceView **  textureView,
_In_ size_t  maxsize = 0,
_Out_opt_ DDS_ALPHA_MODE *  alphaMode = nullptr 
)
HRESULT DirectX::CreateDDSTextureFromFileEx ( _In_ ID3D11Device *  d3dDevice,
_In_z_ const wchar_t *  szFileName,
_In_ size_t  maxsize,
_In_ D3D11_USAGE  usage,
_In_ unsigned int  bindFlags,
_In_ unsigned int  cpuAccessFlags,
_In_ unsigned int  miscFlags,
_In_ bool  forceSRGB,
_Outptr_opt_ ID3D11Resource **  texture,
_Outptr_opt_ ID3D11ShaderResourceView **  textureView,
_Out_opt_ DDS_ALPHA_MODE *  alphaMode = nullptr 
)
HRESULT DirectX::CreateDDSTextureFromMemory ( _In_ ID3D11Device *  d3dDevice,
_In_reads_bytes_(ddsDataSize) const uint8_t *  ddsData,
_In_ size_t  ddsDataSize,
_Outptr_opt_ ID3D11Resource **  texture,
_Outptr_opt_ ID3D11ShaderResourceView **  textureView,
_In_ size_t  maxsize = 0,
_Out_opt_ DDS_ALPHA_MODE *  alphaMode = nullptr 
)
HRESULT DirectX::CreateDDSTextureFromMemoryEx ( _In_ ID3D11Device *  d3dDevice,
_In_reads_bytes_(ddsDataSize) const uint8_t *  ddsData,
_In_ size_t  ddsDataSize,
_In_ size_t  maxsize,
_In_ D3D11_USAGE  usage,
_In_ unsigned int  bindFlags,
_In_ unsigned int  cpuAccessFlags,
_In_ unsigned int  miscFlags,
_In_ bool  forceSRGB,
_Outptr_opt_ ID3D11Resource **  texture,
_Outptr_opt_ ID3D11ShaderResourceView **  textureView,
_Out_opt_ DDS_ALPHA_MODE *  alphaMode = nullptr 
)