You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.1 KiB
C
60 lines
2.1 KiB
C
/***************************************************************************
|
|
* *
|
|
* Module : d3d9convrt.h *
|
|
* *
|
|
* Purpose : Image <-> raster conversions *
|
|
* *
|
|
**************************************************************************/
|
|
|
|
#ifndef D3D9CONVRT_H
|
|
#define D3D9CONVRT_H
|
|
|
|
/****************************************************************************
|
|
Includes
|
|
*/
|
|
|
|
/****************************************************************************
|
|
Defines
|
|
*/
|
|
|
|
/****************************************************************************
|
|
Global Types
|
|
*/
|
|
|
|
/****************************************************************************
|
|
Globals
|
|
*/
|
|
|
|
/****************************************************************************
|
|
Function prototypes
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif /* __cplusplus */
|
|
|
|
/* Finding the MSB */
|
|
RWEXPORT RwInt32 RWAPI _rwD3D9FindMSB(RwInt32 num);
|
|
|
|
/* Raster <--> Image conversions */
|
|
RWEXPORT RwBool RWAPI _rwD3D9ImageGetFromRaster(void *imageIn, void *rasterIn, RwInt32 num);
|
|
RWEXPORT RwBool RWAPI _rwD3D9RasterSetFromImage(void *rasterIn, void *image, RwInt32 flags);
|
|
|
|
/* Pixel conversions */
|
|
RWEXPORT RwBool RWAPI _rwD3D9RGBToPixel(void *pixel, void *col, RwInt32 format);
|
|
RWEXPORT RwBool RWAPI _rwD3D9PixelToRGB(void *rgb, void *pixel, RwInt32 format);
|
|
|
|
/* Finding a suitable format for a raster based on an image */
|
|
RWEXPORT RwUInt32 RWAPI _rwD3D9ImageFindFormat(RwImage *image);
|
|
RWEXPORT RwBool RWAPI _rwD3D9ImageFindRasterFormat(void *raster, void *image, RwInt32 flags);
|
|
|
|
/* Check and change if needed the width and height values */
|
|
RWEXPORT void RWAPI _rwD3D9CheckRasterSize(RwInt32 *width, RwInt32 *height, RwUInt32 rasterFlags);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* D3D9CONVRT_H */
|