2 #include "oxygine-include.h"    30 #define ALL_FORMATS_SWITCH(format) \    36             FORMAT_CASE(R8G8B8A8); \    37             FORMAT_CASE(B8G8R8A8); \    38             FORMAT_CASE(R8G8B8); \    39             FORMAT_CASE(R5G5B5A1); \    40             FORMAT_CASE(R4G4B4A4); \    41             FORMAT_CASE(R5G6B5); \    42             FORMAT_CASE(B5G6R5); \    44             OX_ASSERT(!"unknown format"); \    47     int getBytesPerPixel(TextureFormat tf);
    48     const char* textureFormat2String(TextureFormat f);
    49     TextureFormat string2TextureFormat(
const char* str);
    50     bool isCompressedFormat(TextureFormat tf);
    58         ImageData(
int W, 
int H, 
int Pitch, TextureFormat Format, 
void* Data = 0);
    63         ImageData getRect(
int x, 
int y, 
int w, 
int h) 
const;
    65         unsigned char* getPixelPtr(
int x, 
int y) 
const;
 Definition: ImageData.h:54
 
–oxgl-end–! 
Definition: Actor.h:14