29#ifndef __SO3CONVERSIONTOOLS_H__
30#define __SO3CONVERSIONTOOLS_H__
34#include "OGRE/OgreImage.h"
35#include <boost/filesystem.hpp>
38#define STB_IMAGE_WRITE_IMPLEMENTATION
39#define STB_IMAGE_WRITE_STATIC
52 static bool SaveOgreImage(Ogre::Image &image, boost::filesystem::path &path);
53 static bool SaveImage(
const std::string &filename,
int w,
int h,
int comp,
const void *data,
int quality = 90);
59 SConvertBuffer(
const uchar* _srcBuff,
const uchar* _srcBuffa,
void* _dstBuff,
const int &_width,
const int &_height,
const int &_sbpl,
const int &_abpl,
const int &_dbpl,
const int &_bpp) :
125 static void ScolBitmapGetRGBA(PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap,
const Ogre::PixelBox& pixelbox);
129 static void ScolBitmapGetRGBA(PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap,
void* buff);
133 static void ScolBitmapGetRGBA(PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap, Ogre::PixelFormat format,
void* buff);
137 static void ScolBitmapGetRGBA(PtrObjBitmap scolBitmap, PtrObjBitmap alphaBitmap,
unsigned int nwidth,
unsigned int nheight, Ogre::PixelFormat format,
void* buff);
141 static void ScolBitmapGetRGBA(
const uchar* sbuff,
const int swidth,
const int sheight,
const int sbpp,
const int sbpl,
unsigned int nwidth,
unsigned int nheight, Ogre::PixelFormat format,
void* buff);
161 static double Roundn(
double dValue,
int nDecimales);
165 static bool fequal(
float a,
float b);
173 static double GetDecExp(
int nDec);
SCOL_EXPORT int cbmachine w