mirror of
https://github.com/dege-diosg/dgVoodoo2
synced 2024-07-08 20:51:02 +02:00
41 lines
974 B
C++
41 lines
974 B
C++
// *****************************************************************************
|
|
// File: ImageLoader.hpp
|
|
//
|
|
// Description: General image loader functionality for dgVoodooAddon
|
|
//
|
|
// Contact person: DG
|
|
//
|
|
// *****************************************************************************
|
|
|
|
// --- Includes ----------------------------------------------------------------
|
|
|
|
#include "Wincodec.h"
|
|
|
|
// --- Namespaces --------------------------------------------------------------
|
|
|
|
//using namespace dgVoodoo;
|
|
|
|
// --- Predeclarations ---------------------------------------------------------
|
|
|
|
class AddonMain;
|
|
|
|
// --- ImageLoader -------------------------------------------------------------
|
|
|
|
class ImageLoader
|
|
{
|
|
public:
|
|
struct ImageData
|
|
{
|
|
BYTE* pBitmap;
|
|
UINT width;
|
|
UINT height;
|
|
UINT stride;
|
|
UINT pixelBPP;
|
|
};
|
|
|
|
public:
|
|
|
|
static bool LoadImageA (LPCSTR pFileName, ImageData& outImageData);
|
|
static bool LoadImageW (LPCWSTR pFileName, ImageData& outImageData);
|
|
|
|
}; |