Images


Data Structures

struct  OSL_PALETTE
struct  OSL_IMAGE

Modules

 Creating or loading images
 Drawing images
 Image placement
 Image manipulation
 Simili sprite system
 Image palettes
 Pixel access
 Drawbuffers
 Advanced

Enumerations

enum  OSL_IMAGE_FLAGS { OSL_IMAGE_SWIZZLED = 1, OSL_IMAGE_COPY = 2, OSL_IMAGE_AUTOSTRIP = 4 }
enum  OSL_LOCATION_FLAGS {
  OSL_IN_NONE = 0, OSL_IN_VRAM = 1, OSL_IN_RAM = 2, OSL_LOCATION_MASK = 7,
  OSL_SWIZZLED = 8, OSL_UNSWIZZLED = 16
}
enum  OSL_PIXELFORMATS {
  OSL_PF_5650 = GU_PSM_5650, OSL_PF_5551 = GU_PSM_5551, OSL_PF_4444 = GU_PSM_4444, OSL_PF_8888 = GU_PSM_8888,
  OSL_PF_4BIT = GU_PSM_T4, OSL_PF_8BIT = GU_PSM_T8
}

Detailed Description

Image support in OSLib.

Enumeration Type Documentation

Constants for the flags member of OSL_IMAGE.

Enumerator:
OSL_IMAGE_SWIZZLED  Image is swizzled.
OSL_IMAGE_COPY  Image is a copy.
OSL_IMAGE_AUTOSTRIP  Image can be automatically stripped (let it one).

Places where to place an image. Values for the argument "location" of some loading routines.

Enumerator:
OSL_IN_NONE  Doesn't exist.
OSL_IN_VRAM  In VRAM.
OSL_IN_RAM  In RAM.
OSL_LOCATION_MASK  There will probably never be more than 8 locations...
OSL_SWIZZLED  Directly swizzle image (only works for oslLoadImage[...] functions!).
OSL_UNSWIZZLED  Force no swizzling (oslLoadImage[...]).

Pixelformats (color types / modes).

Enumerator:
OSL_PF_5650  16 bits, 5 bits per component, except green which has 6, no alpha
OSL_PF_5551  15 bits, 5 bits per component, 1 alpha bit
OSL_PF_4444  12 bits, 4 bits per component, 4 alpha bits
OSL_PF_8888  32 bits, 8 bits per component, 8 alpha bits
OSL_PF_4BIT  Paletted format, 4 bits (16 colors), cannot be set as drawbuffer.
OSL_PF_8BIT  Paletted format, 8 bits (256 colors), cannot be set as drawbuffer.


Generated on Wed Feb 24 10:25:32 2010 by  doxygen 1.5.9