#include <provider_png.h>
Inheritance diagram for CL_PNGProvider:


Public Methods | |
| CL_InputSource* | get_input_source () |
| CL_PNGProvider (CL_String name, CL_InputSourceProvider *provider=NULL, bool transparent=true, bool ignore_alphachannel=false) | |
| virtual | ~CL_PNGProvider () |
| param: name - Name of the PNG file to load.param: provider - Input source provider that delivers the PNG file.param: transparent - True if a transparency color should be used.param: ignore_alphachannel - True if the alpha component should be ignored.param: trans_red - Red component of the transparency color.param: trans_green - Green component of the transparency color.param: trans_blue - blue component of the transparency color. | |
| 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 |
| retval: A pointer that points to the beginning of the target pixel data. | |
| virtual EPixelFormat | get_pixel_format () const |
| virtual CL_Palette* | get_palette () const |
| virtual unsigned int | get_src_colorkey () const |
| virtual bool | uses_src_colorkey () const |
| retval: The y-offset of the surface data. | |
| virtual bool | is_indexed () 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 unsigned int | get_depth () const |
| virtual void* | get_data () const |
| virtual void | perform_lock () |
| virtual void | perform_unlock () |
Static Public Methods | |
| CL_Surface* | create (CL_String handle, CL_InputSourceProvider *provider=NULL, bool transparent=true, bool ignore_alphachannel=false) |
| void | pngread_file (png_structp png_ptr, png_bytep data, png_size_t length) |
Private Methods | |
| void | read_data () |
| void | read_data_rgb () |
| void | read_data_rgba () |
| void | read_data_grayscale () |
| void | read_data_grayscale_alpha () |
| void | read_data_palette () |
Private Attributes | |
| CL_String | filename |
| int | locked |
| bool | m_uses_src_colorkey |
| unsigned char* | image |
| int | pitch |
| int | no_sprs |
| int | width |
| int | height |
| EPixelFormat | pixel_format |
| bool | transparent |
| bool | ignore_alphachannel |
| CL_Palette* | palette |
| bool | indexed |
| int | trans_col |
| int | color_type |
| unsigned char | trans_redcol |
| unsigned char | trans_greencol |
| unsigned char | trans_bluecol |
| CL_InputSourceProvider* | provider |
| CL_InputSource* | input_source |
| png_structp | png_ptr |
| png_infop | info_ptr |
| png_infop | end_info |
Definition at line 35 of file provider_png.h.
|
|
|
|
|
param: name - Name of the PNG file to load.param: provider - Input source provider that delivers the PNG file.param: transparent - True if a transparency color should be used.param: ignore_alphachannel - True if the alpha component should be ignored.param: trans_red - Red component of the transparency color.param: trans_green - Green component of the transparency color.param: trans_blue - blue component of the transparency color.
|
|
|
|
|
|
Reimplemented from CL_Target. |
|
|
Reimplemented from CL_Target. |
|
|
Reimplemented from CL_Target. |
|
|
Reimplemented from CL_Target. |
|
|
Reimplemented from CL_Target. |
|
|
Reimplemented from CL_Target. Definition at line 72 of file provider_png.h. |
|
|
Definition at line 39 of file provider_png.h. Referenced by pngread_file(). |
|
|
retval: A pointer that points to the beginning of the target pixel data.
Reimplemented from CL_Target. Definition at line 75 of file provider_png.h. |
|
|
Reimplemented from CL_Target. Definition at line 81 of file provider_png.h. |
|
|
Reimplemented from CL_Target. Definition at line 66 of file provider_png.h. |
|
|
Definition at line 78 of file provider_png.h. |
|
|
Reimplemented from CL_Target. |
|
|
Reimplemented from CL_SurfaceProvider. Definition at line 84 of file provider_png.h. |
|
|
Reimplemented from CL_Target. Definition at line 69 of file provider_png.h. |
|
|
Reimplemented from CL_Target. Definition at line 90 of file provider_png.h. |
|
|
Reimplemented from CL_SurfaceProvider_Generic. |
|
|
Reimplemented from CL_SurfaceProvider_Generic. |
|
|
Definition at line 117 of file provider_png.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
retval: The y-offset of the surface data.
Reimplemented from CL_SurfaceProvider. Definition at line 87 of file provider_png.h. |
|
|
Definition at line 153 of file provider_png.h. |
|
|
Definition at line 169 of file provider_png.h. |
|
|
Definition at line 134 of file provider_png.h. |
|
|
Definition at line 143 of file provider_png.h. |
|
|
Definition at line 148 of file provider_png.h. |
|
|
Definition at line 139 of file provider_png.h. |
|
|
Definition at line 151 of file provider_png.h. |
|
|
Definition at line 168 of file provider_png.h. |
|
|
Definition at line 164 of file provider_png.h. |
|
|
Definition at line 135 of file provider_png.h. |
|
|
Definition at line 137 of file provider_png.h. |
|
|
Definition at line 141 of file provider_png.h. |
|
|
Definition at line 150 of file provider_png.h. |
|
|
Definition at line 140 of file provider_png.h. |
|
|
Definition at line 145 of file provider_png.h. |
|
|
Definition at line 167 of file provider_png.h. |
|
|
Definition at line 163 of file provider_png.h. |
|
|
Definition at line 154 of file provider_png.h. |
|
|
Definition at line 152 of file provider_png.h. |
|
|
Definition at line 154 of file provider_png.h. |
|
|
Definition at line 154 of file provider_png.h. |
|
|
Definition at line 147 of file provider_png.h. |
|
|
Definition at line 142 of file provider_png.h. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001