Entire Class Index | Main Class Index | Cross Index | Global Index

# Class CL_SurfaceProvider_32bpp

Purpose: Convert to RGBA8888 to ensure support for colorkeying.
Contained in: global
Derived from: CL_SurfaceProvider
Derived by: none
Group: Display (Display 2D)

#include <ClanLib/display.h>

### public function member index:
### Construction:
`` | `CL_SurfaceProvider_32bpp` | `(`CL_SurfaceProvider`* `src`)`;
``virtual`` | `~CL_SurfaceProvider_32bpp` | `()`;
### Attributes:
``virtual` `unsigned` `int`` | `get_pitch` | `() `const``;
``virtual` `unsigned` `int`` | `get_width` | `() `const``;
``virtual` `unsigned` `int`` | `get_height` | `() `const``;
``virtual` `unsigned` `int`` | `get_num_frames` | `() `const``;
``virtual` `unsigned` `int`` | `get_depth` | `() `const``;
``virtual` `unsigned` `int`` | `get_red_mask` | `() `const``;
``virtual` `unsigned` `int`` | `get_green_mask` | `() `const``;
``virtual` `unsigned` `int`` | `get_blue_mask` | `() `const``;
``virtual` `unsigned` `int`` | `get_alpha_mask` | `() `const``;
``virtual` `bool`` | `is_indexed` | `() `const``;
``virtual` `CL_Palette`*` | `get_palette` | `() `const``;
``virtual` `void`` | `lock` | `()`;
``virtual` `void`` | `unlock` | `()`;
``virtual` `void`*` | `get_data` | `() `const``;
``virtual` `bool`` | `uses_src_colorkey` | `() `const``;
``virtual` `unsigned` `int`` | `get_src_colorkey` | `() `const``;

## Description:

old old old old old old old old old old old old old old old old old old
Purpose: Convert a PAL8 surface provider to 16 bpp. This is needed since
Hermes doesn't support colorkeys (atleast not when this code
was written).

## Function Member Descriptions:

CL_SurfaceProvider_32bpp::CL_SurfaceProvider_32bpp - Surface Provider 32bpp constructor
`` `CL_SurfaceProvider_32bpp``(`CL_SurfaceProvider`* `src`)`;

CL_SurfaceProvider_32bpp::get_alpha_mask - Get alpha mask
``virtual` `unsigned` `int`` `get_alpha_mask``() `const``;

CL_SurfaceProvider_32bpp::get_blue_mask - Get blue mask
``virtual` `unsigned` `int`` `get_blue_mask``() `const``;

CL_SurfaceProvider_32bpp::get_data - Get Data
``virtual` `void`*` `get_data``() `const``;

CL_SurfaceProvider_32bpp::get_depth - Get depth
``virtual` `unsigned` `int`` `get_depth``() `const``;

CL_SurfaceProvider_32bpp::get_green_mask - Get green mask
``virtual` `unsigned` `int`` `get_green_mask``() `const``;

CL_SurfaceProvider_32bpp::get_height - Get height
``virtual` `unsigned` `int`` `get_height``() `const``;

CL_SurfaceProvider_32bpp::get_num_frames - Get num frames
``virtual` `unsigned` `int`` `get_num_frames``() `const``;

CL_SurfaceProvider_32bpp::get_palette - Get palette
``virtual` `CL_Palette`*` `get_palette``() `const``;

CL_SurfaceProvider_32bpp::get_pitch - Get pitch
``virtual` `unsigned` `int`` `get_pitch``() `const``;

CL_SurfaceProvider_32bpp::get_red_mask - Get red mask
``virtual` `unsigned` `int`` `get_red_mask``() `const``;

CL_SurfaceProvider_32bpp::get_src_colorkey - Get src colourkey
``virtual` `unsigned` `int`` `get_src_colorkey``() `const``;

CL_SurfaceProvider_32bpp::get_width - Get width
``virtual` `unsigned` `int`` `get_width``() `const``;

CL_SurfaceProvider_32bpp::is_indexed - Is indexed
``virtual` `bool`` `is_indexed``() `const``;

CL_SurfaceProvider_32bpp::lock - Lock
``virtual` `void`` `lock``()`;

CL_SurfaceProvider_32bpp::unlock - Unlock
``virtual` `void`` `unlock``()`;

CL_SurfaceProvider_32bpp::uses_src_colorkey - Uses src colourkey
``virtual` `bool`` `uses_src_colorkey``() `const``;

CL_SurfaceProvider_32bpp::~CL_SurfaceProvider_32bpp - Surface Provider 32bpp destructor
``virtual`` `~CL_SurfaceProvider_32bpp``()`;

## Variable Member Descriptions: