corona
1.0.2
|
#include <stddef.h>
#include <string>
Go to the source code of this file.
Classes | |
class | corona::DLLInterface |
class | corona::DLLImplementation< Interface > |
class | corona::Image |
class | corona::File |
class | corona::FileFormatDesc |
Describes a file format that Corona supports. More... | |
Namespaces | |
namespace | corona |
namespace | corona::hidden |
PRIVATE API - for internal use only. | |
Defines | |
#define | COR_FUNCTION(ret) extern "C" COR_DECL ret COR_CALL |
Enumerations | |
enum | corona::FileFormat { corona::FF_AUTODETECT = 0x0100, corona::FF_PNG = 0x0101, corona::FF_JPEG = 0x0102, corona::FF_PCX = 0x0103, corona::FF_BMP = 0x0104, corona::FF_TGA = 0x0105, corona::FF_GIF = 0x0106 } |
enum | corona::PixelFormat { corona::PF_DONTCARE = 0x0200, corona::PF_R8G8B8A8 = 0x0201, corona::PF_R8G8B8 = 0x0202, corona::PF_I8 = 0x0203, corona::PF_B8G8R8A8 = 0x0204, corona::PF_B8G8R8 = 0x0205 } |
enum | corona::CoordinateAxis { corona::CA_X = 0x0001, corona::CA_Y = 0x0002 } |
Functions | |
corona::hidden::COR_FUNCTION (const char *) CorGetVersion() | |
corona::hidden::COR_FUNCTION (FileFormatDesc **) CorGetSupportedReadFormats() | |
corona::hidden::COR_FUNCTION (Image *) CorCreateImage(int width | |
corona::hidden::COR_FUNCTION (bool) CorSaveImage(const char *filename | |
corona::hidden::COR_FUNCTION (File *) CorOpenFile(const char *name | |
corona::hidden::COR_FUNCTION (int) CorGetPixelSize(PixelFormat format) | |
const char * | corona::GetVersion () |
FileFormatDesc ** | corona::GetSupportedReadFormats () |
FileFormatDesc ** | corona::GetSupportedWriteFormats () |
Image * | corona::CreateImage (int width, int height, PixelFormat format, void *pixels=0) |
Image * | corona::CreateImage (int width, int height, PixelFormat format, int palette_size, PixelFormat palette_format) |
Image * | corona::CloneImage (Image *source, PixelFormat format=PF_DONTCARE) |
Image * | corona::OpenImage (const char *filename, PixelFormat pixel_format=PF_DONTCARE, FileFormat file_format=FF_AUTODETECT) |
Image * | corona::OpenImage (const std::string &filename, PixelFormat pixel_format=PF_DONTCARE, FileFormat file_format=FF_AUTODETECT) |
For convenience. Accepts a std::string. | |
Image * | corona::OpenImage (File *file, PixelFormat pixel_format=PF_DONTCARE, FileFormat file_format=FF_AUTODETECT) |
Image * | corona::OpenImage (const char *filename, FileFormat file_format, PixelFormat pixel_format=PF_DONTCARE) |
For compatibility. This function may be deprecated. | |
Image * | corona::OpenImage (File *file, FileFormat file_format, PixelFormat pixel_format=PF_DONTCARE) |
For compatibility. This function may be deprecated. | |
bool | corona::SaveImage (const char *filename, FileFormat file_format, Image *image) |
bool | corona::SaveImage (const std::string &filename, FileFormat file_format, Image *image) |
For convenience. Accepts a std::string. | |
bool | corona::SaveImage (File *file, FileFormat file_format, Image *image) |
Image * | corona::ConvertImage (Image *source, PixelFormat format) |
Image * | corona::ConvertPalette (Image *source, PixelFormat palette_format) |
Image * | corona::FlipImage (Image *source, int coordinate_axis) |
File * | corona::OpenFile (const char *filename, bool writeable) |
File * | corona::CreateMemoryFile (const void *buffer, int size) |
int | corona::GetPixelSize (PixelFormat format) |
bool | corona::IsDirect (PixelFormat format) |
bool | corona::IsPalettized (PixelFormat format) |
int | corona::GetPaletteSize (PixelFormat format) |
Variables | |
int PixelFormat | corona::hidden::format |
int PixelFormat void * | corona::hidden::pixels |
int PixelFormat int | corona::hidden::palette_size |
int PixelFormat int PixelFormat | corona::hidden::palette_format |
FileFormat | corona::hidden::file_format |
FileFormat Image * | corona::hidden::image |
int | corona::hidden::coordinate_axis |
bool | corona::hidden::writeable |
int | corona::hidden::size |
#define COR_FUNCTION | ( | ret | ) | extern "C" COR_DECL ret COR_CALL |
Corona Image I/O Library Version 1.0.2 (c) 2003 Chad Austin
This API uses principles explained at http://aegisknight.org/cppinterface.html
This code licensed under the terms of the zlib license. See license.txt.
Note: When compiling this header in gcc, you may want to use the -Wno-non-virtual-dtor flag to get rid of those annoying "class has virtual functions but no virtual destructor" warnings.