Gel2D - The free/open source game creation suite

Public Member Functions | Public Attributes
gel::GelImageData Struct Reference

Image data structure. More...

#include <gelImage.h>

List of all members.

Public Member Functions

 GelImageData ()
 Default constructor.
 GelImageData (int w, int h, int b, ColorMode f, GELubyte *d)
 Constructor.

Public Attributes

int width
 Image width.
int height
 Image height.
int bpp
 Bytes per pixel.
ColorMode format
 Color mode.
GELubytedata
 Image data.

Detailed Description

Image data structure.


Constructor & Destructor Documentation

gel::GelImageData::GelImageData ( ) [inline]

Default constructor.

Width and height are initialized to 0, bpp to 3, format to GEL_RGB, and data to NULL.

gel::GelImageData::GelImageData ( int  w,
int  h,
int  b,
ColorMode  f,
GELubyte d 
) [inline]

Constructor.

Parameters:
w: Image width.
h: Image height.
b: Bytes per pixel.
f: Color mode.
d: Image data.

Member Data Documentation

Image width.

Image height.

Bytes per pixel.

Color mode.

Image data.


The documentation for this struct was generated from the following file: