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.
59 lines
1.9 KiB
C
59 lines
1.9 KiB
C
/***************************************************************************
|
|
* *
|
|
* Module : dlconvrt.h *
|
|
* *
|
|
* Purpose : Image <-> raster conversions *
|
|
* *
|
|
**************************************************************************/
|
|
|
|
#ifndef DLCONVRT_H
|
|
#define DLCONVRT_H
|
|
|
|
/****************************************************************************
|
|
Includes
|
|
*/
|
|
|
|
/****************************************************************************
|
|
Defines
|
|
*/
|
|
|
|
/****************************************************************************
|
|
Global Types
|
|
*/
|
|
|
|
/****************************************************************************
|
|
Globals
|
|
*/
|
|
|
|
/****************************************************************************
|
|
Function prototypes
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif /* __cplusplus */
|
|
|
|
/* Finding the MSB */
|
|
extern RwInt32 _rwD3D8FindMSB(RwInt32 num);
|
|
|
|
/* Raster <--> Image conversions */
|
|
extern RwBool _rwD3D8ImageGetFromRaster(void *imageIn, void *rasterIn, RwInt32 num);
|
|
extern RwBool _rwD3D8RasterSetFromImage(void *rasterIn, void *image, RwInt32 flags);
|
|
|
|
/* Pixel conversions */
|
|
extern RwBool _rwD3D8RGBToPixel(void *pixel, void *col, RwInt32 format);
|
|
extern RwBool _rwD3D8PixelToRGB(void *rgb, void *pixel, RwInt32 format);
|
|
|
|
/* Finding a suitable format for a raster based on an image */
|
|
extern RwBool _rwD3D8ImageFindRasterFormat(void *raster, void *image, RwInt32 flags);
|
|
|
|
/* Check and change if needed the width and height values */
|
|
extern void _rwD3D8CheckRasterSize(RwInt32 *width, RwInt32 *height, RwUInt32 rasterFlags);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* DLCONVRT_H */
|