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
DDSTextureLoader.h File Reference
#include <d3d11.h>
#include <stdint.h>

Go to the source code of this file.

Namespaces

 DirectX
 

Constant Groups

 DirectX
 

Macros

#define _Use_decl_annotations_
 

Enumerations

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

Functions

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::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::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 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)
 

Macro Definition Documentation

#define _Use_decl_annotations_