Public Member Functions

a5::Bitmap_Lock Class Reference
[Bitmap]

Locked Bitmap region. More...

#include <Bitmap.hpp>

List of all members.

Public Member Functions

 Bitmap_Lock (ALLEGRO_LOCKED_REGION *region_, ALLEGRO_BITMAP *bitmap_)
 Creates a Bitmap_Lock from the specified Allegro region and bitmap.
Pixel_Format Format () const
 Returns the pixel format for the locked region.
int Pitch () const
 Returns the pitch of the locked bitmap.
void * Data () const
 Returns the raw image data.
 operator void * () const
 Returns the raw image data.
 ~Bitmap_Lock ()
 Unlocks the bitmap and updates the video memory.

Detailed Description

Locked Bitmap region.


Constructor & Destructor Documentation

a5::Bitmap_Lock::Bitmap_Lock ( ALLEGRO_LOCKED_REGION *  region_,
ALLEGRO_BITMAP *  bitmap_ 
) [explicit]

Creates a Bitmap_Lock from the specified Allegro region and bitmap.

a5::Bitmap_Lock::~Bitmap_Lock (  ) 

Unlocks the bitmap and updates the video memory.


Member Function Documentation

Pixel_Format a5::Bitmap_Lock::Format (  )  const

Returns the pixel format for the locked region.

int a5::Bitmap_Lock::Pitch (  )  const

Returns the pitch of the locked bitmap.

void* a5::Bitmap_Lock::Data (  )  const

Returns the raw image data.

a5::Bitmap_Lock::operator void * (  )  const

Returns the raw image data.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines