![]() |
Blamite Game Engine - Blam (Core)
|
Namespace containing functions relating to the Windows Imaging Component (WIC). More...
Functions | |
BLAM IWICImagingFactory * | GetWICFactory () |
Retrieves the WIC Imaging Factory. More... | |
BLAM HRESULT | CreateD2DBitmapFromResource (int res_id, const char *res_type, ID2D1Bitmap **bitmap_pointer) |
Creates a Direct2D bitmap from an application resource. More... | |
BLAM HRESULT | CreateD2DBitmapFromFile (std::wstring path, ID2D1Bitmap **bitmap_pointer) |
Creates a Direct2D bitmap from a file. More... | |
BLAM HRESULT | CreateWICBitmapFromFile (std::wstring path, IWICBitmap **bitmap_pointer) |
Creates a WIC bitmap from a file. More... | |
BLAM HRESULT | CreateWICBitmapFromMemory (void *data, int size, IWICBitmap **bitmap_pointer) |
Creates a WIC bitmap from a block of memory. More... | |
BLAM HRESULT | ConvertWICBitmapToD2D (IWICBitmap *wic_bitmap, ID2D1Bitmap **d2d_bitmap) |
Converts a WIC bitmap to a D2D bitmap. More... | |
BLAM HRESULT | ConvertWICBitmapToD2D (IWICBitmap *wic_bitmap, ID2D1Bitmap **d2d_bitmap, ID2D1RenderTarget *render_target) |
Converts a WIC bitmap to a D2D bitmap, with a specific render target. More... | |
BLAM HRESULT | ConvertWICBitmapTo32bppPBGRA (IWICBitmap *source, IWICBitmap **destination) |
Converts a WIC bitmap to a WIC bitmap, with the 32 bits-per-pixe, PBGRA format. More... | |
BLAM HRESULT | Initialize () |
Initializes the Windows Imaging Component (WIC). More... | |
BLAM void | Shutdown () |
Shuts down the Windows Imaging Component (WIC). More... | |
Namespace containing functions relating to the Windows Imaging Component (WIC).
HRESULT BlamRendering::DirectX::WIC::ConvertWICBitmapTo32bppPBGRA | ( | IWICBitmap * | source, |
IWICBitmap ** | destination | ||
) |
HRESULT BlamRendering::DirectX::WIC::ConvertWICBitmapToD2D | ( | IWICBitmap * | wic_bitmap, |
ID2D1Bitmap ** | d2d_bitmap | ||
) |
HRESULT BlamRendering::DirectX::WIC::ConvertWICBitmapToD2D | ( | IWICBitmap * | wic_bitmap, |
ID2D1Bitmap ** | d2d_bitmap, | ||
ID2D1RenderTarget * | render_target | ||
) |
Converts a WIC bitmap to a D2D bitmap, with a specific render target.
wic_bitmap | - The WIC bitmap to convert. |
d2d_pointer | - Pointer to the D2D bitmap to load the converted bitmap into. |
render_target | - The render target that this bitmap will be displayed with. |
S_OK
if the bitmap was converted successfully, otherwise will return an error code. HRESULT BlamRendering::DirectX::WIC::CreateD2DBitmapFromFile | ( | std::wstring | path, |
ID2D1Bitmap ** | bitmap_pointer | ||
) |
Creates a Direct2D bitmap from a file.
path | - The path to the file to read. |
bitmap_pointer | - Pointer to the bitmap to load the file into. |
S_OK
if the bitmap was created successfully, otherwise will return an error code. HRESULT BlamRendering::DirectX::WIC::CreateD2DBitmapFromResource | ( | int | res_id, |
const char * | res_type, | ||
ID2D1Bitmap ** | bitmap_pointer | ||
) |
Creates a Direct2D bitmap from an application resource.
res_id | - The ID of the resource. |
res_type | - The type of the resource. |
bitmap_pointer | - Pointer to the bitmap to load the resource into. |
S_OK
if the bitmap was created successfully, otherwise will return an error code. HRESULT BlamRendering::DirectX::WIC::CreateWICBitmapFromFile | ( | std::wstring | path, |
IWICBitmap ** | bitmap_pointer | ||
) |
Creates a WIC bitmap from a file.
path | - The path to the file to read. |
bitmap_pointer | - Pointer to the bitmap to load the file into. |
S_OK
if the bitmap was created successfully, otherwise will return an error code. HRESULT BlamRendering::DirectX::WIC::CreateWICBitmapFromMemory | ( | void * | data, |
int | size, | ||
IWICBitmap ** | bitmap_pointer | ||
) |
Creates a WIC bitmap from a block of memory.
data | - The address pointing to the start of the data. |
size | - The length of the data. |
bitmap_pointer | - Pointer to the bitmap to load the data into. |
S_OK
if the bitmap was created successfully, otherwise will return an error code. IWICImagingFactory * BlamRendering::DirectX::WIC::GetWICFactory | ( | ) |
HRESULT BlamRendering::DirectX::WIC::Initialize | ( | ) |
Initializes the Windows Imaging Component (WIC).
This function does not need to be called during startup, as it is automatically called from BlamRendering::DirectX::Initialize.
S_OK
if WIC initialized successfully, otherwise will return an error code. void BlamRendering::DirectX::WIC::Shutdown | ( | ) |
Shuts down the Windows Imaging Component (WIC).
This function does not need to be called during shutdown, as it is automatically called from BlamRendering::DirectX::Cleanup.