#include <provider_targa.h>
Inheritance diagram for CL_TargaProvider:


Public Methods | |
| CL_TargaProvider (std::string name, CL_InputSourceProvider *provider, bool transparent=false, bool ignore_alphachannel=false, unsigned char trans_red=0, unsigned char trans_green=0, unsigned char trans_blue=0) | |
| virtual | ~CL_TargaProvider () |
| param: name - Name of the targa file to load.param: provider - Input source provider that delivers the targa 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 int | get_translate_x () const |
| virtual int | get_translate_y () const |
| retval: The x-offset of the surface data. | |
| 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 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 bool | uses_src_colorkey () const |
| retval: The y-offset of the surface data. | |
| virtual unsigned int | get_src_colorkey () const |
| virtual void* | get_data () const |
| virtual void | perform_lock () |
| virtual void | perform_unlock () |
Static Public Methods | |
| CL_Surface* | create (std::string handle, CL_InputSourceProvider *provider, bool transparent=false, bool ignore_alphachannel=false, unsigned char trans_red=0, unsigned char trans_green=0, unsigned char trans_blue=0) |
Private Methods | |
| bool | read_rgb_16 (unsigned char *a, unsigned char *b, unsigned char *g, unsigned char *r) |
| bool | read_rgb_24 (unsigned char *a, unsigned char *b, unsigned char *g, unsigned char *r) |
| bool | read_rgb_32 (unsigned char *a, unsigned char *b, unsigned char *g, unsigned char *r) |
| bool | read_rgb (unsigned char *a, unsigned char *b, unsigned char *g, unsigned char *r) |
| void | read_from_colormap (unsigned char *a, unsigned char *b, unsigned char *g, unsigned char *r) |
| void | read_data () |
| void | read_header (bool read_colormap) |
| void | read_colormapped () |
| void | read_uncompressed_rgb () |
| void | read_runlength_encoded_colormapped_rgb () |
| void | read_runlength_encoded_rgb () |
Private Attributes | |
| std::string | filename |
| bool | locked |
| unsigned char* | file |
| int | filesize |
| unsigned char* | image |
| unsigned short | map_length |
| unsigned char* | color_map |
| unsigned char | datatype |
| int | pitch |
| int | height |
| int | no_sprs |
| int | trans_col |
| int | bounding_left |
| int | bounding_top |
| int | bounding_right |
| int | bounding_bottom |
| int | map_direction_x |
| int | map_direction_y |
| unsigned char | bpp |
| bool | transparent |
| bool | ignore_alphachannel |
| bool | use_alphapixels |
| unsigned char | trans_redcol |
| unsigned char | trans_greencol |
| unsigned char | trans_bluecol |
| int | pos |
| CL_InputSourceProvider* | provider |
| CL_InputSource* | input_source |
Definition at line 27 of file provider_targa.h.
|
|
|
|
|
param: name - Name of the targa file to load.param: provider - Input source provider that delivers the targa 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. Definition at line 148 of file provider_targa.h. |
|
|
Reimplemented from CL_Target. Definition at line 147 of file provider_targa.h. |
|
|
Reimplemented from CL_Target. |
|
|
Reimplemented from CL_Target. Definition at line 142 of file provider_targa.h. |
|
|
Reimplemented from CL_Target. Definition at line 146 of file provider_targa.h. |
|
|
Reimplemented from CL_Target. Definition at line 136 of file provider_targa.h. |
|
|
retval: A pointer that points to the beginning of the target pixel data.
Reimplemented from CL_Target. Definition at line 139 of file provider_targa.h. |
|
|
Reimplemented from CL_Target. Definition at line 152 of file provider_targa.h. |
|
|
Reimplemented from CL_Target. Definition at line 124 of file provider_targa.h. |
|
|
Reimplemented from CL_Target. Definition at line 145 of file provider_targa.h. |
|
|
Reimplemented from CL_SurfaceProvider. Definition at line 157 of file provider_targa.h. |
|
|
Reimplemented from CL_SurfaceProvider. Definition at line 127 of file provider_targa.h. |
|
|
retval: The x-offset of the surface data.
Reimplemented from CL_SurfaceProvider. Definition at line 130 of file provider_targa.h. |
|
|
Reimplemented from CL_Target. Definition at line 133 of file provider_targa.h. |
|
|
Reimplemented from CL_Target. Definition at line 150 of file provider_targa.h. |
|
|
Reimplemented from CL_SurfaceProvider_Generic. |
|
|
Reimplemented from CL_SurfaceProvider_Generic. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 400 of file provider_targa.cpp. |
|
|
Definition at line 260 of file provider_targa.cpp. |
|
|
Definition at line 319 of file provider_targa.cpp. |
|
|
Definition at line 350 of file provider_targa.cpp. |
|
|
|
|
|
|
|
|
|
|
|
retval: The y-offset of the surface data.
Reimplemented from CL_SurfaceProvider. Definition at line 155 of file provider_targa.h. |
|
|
Definition at line 43 of file provider_targa.h. |
|
|
Definition at line 43 of file provider_targa.h. |
|
|
Definition at line 43 of file provider_targa.h. |
|
|
Definition at line 43 of file provider_targa.h. |
|
|
Definition at line 46 of file provider_targa.h. |
|
|
Definition at line 38 of file provider_targa.h. |
|
|
Definition at line 40 of file provider_targa.h. |
|
|
Definition at line 32 of file provider_targa.h. |
|
|
Definition at line 30 of file provider_targa.h. |
|
|
Definition at line 33 of file provider_targa.h. |
|
|
Definition at line 42 of file provider_targa.h. |
|
|
Definition at line 48 of file provider_targa.h. |
|
|
Definition at line 35 of file provider_targa.h. |
|
|
Definition at line 90 of file provider_targa.h. |
|
|
Definition at line 31 of file provider_targa.h. |
|
|
Definition at line 44 of file provider_targa.h. |
|
|
Definition at line 44 of file provider_targa.h. |
|
|
Definition at line 37 of file provider_targa.h. |
|
|
Definition at line 42 of file provider_targa.h. |
|
|
Definition at line 42 of file provider_targa.h. |
|
|
Definition at line 51 of file provider_targa.h. |
|
|
Definition at line 89 of file provider_targa.h. |
|
|
Definition at line 49 of file provider_targa.h. |
|
|
Definition at line 42 of file provider_targa.h. |
|
|
Definition at line 49 of file provider_targa.h. |
|
|
Definition at line 49 of file provider_targa.h. |
|
|
Definition at line 48 of file provider_targa.h. |
|
|
Definition at line 48 of file provider_targa.h. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001