#include <target.h>
Inheritance diagram for CL_Target:


Public Methods | |
| CL_Target () | |
| virtual | ~CL_Target () |
| virtual bool | is_video () const |
| virtual void | lock ()=0 |
| retval: True if stored in video memory, false otherwise. | |
| virtual void | unlock ()=0 |
| virtual void* | get_data () const=0 |
| virtual unsigned int | get_num_frames () const=0 |
| retval: A pointer that points to the beginning of the target pixel data. | |
| virtual unsigned int | get_width () const=0 |
| virtual unsigned int | get_height () const=0 |
| virtual unsigned int | get_pitch () const=0 |
| virtual unsigned int | get_depth () const |
| virtual unsigned int | get_bytes_per_pixel () const |
| virtual bool | is_indexed () const=0 |
| virtual unsigned int | get_red_mask () const=0 |
| virtual unsigned int | get_green_mask () const=0 |
| virtual unsigned int | get_blue_mask () const=0 |
| virtual unsigned int | get_alpha_mask () const=0 |
| virtual CL_Palette* | get_palette () const=0 |
| virtual void | push_clip_rect () |
| virtual void | push_clip_rect (const CL_ClipRect &rect) |
| virtual CL_ClipRect | get_clip_rect () |
| param: rect - The new clipping rectangle to be clipped with the current cliprect and then used. | |
| virtual void | set_clip_rect (const CL_ClipRect &rect) |
| retval: The current clipping rectangle. | |
| virtual void | pop_clip_rect () |
| virtual void | push_translate_offset () |
| virtual void | push_translate_offset (int x, int y) |
| virtual int | get_translate_offset_x () const |
| virtual int | get_translate_offset_y () const |
| virtual void | set_translate_offset (int x, int y) |
| virtual void | pop_translate_offset () |
| void | draw_pixel (int x1, int y1, int color) |
| virtual void | draw_pixel (int x, int y, float r, float g, float b, float a=1.0) |
| virtual void | get_pixel (int x, int y, float *r, float *g, float *b, float *a) |
| virtual int | get_pixel (int x, int y) |
| void | flip_vertical () |
| void | flip_horizontal () |
| virtual void | fill_rect (int x1, int y1, int x2, int y2, float r, float g, float b, float a=1.0) |
| virtual void | draw_rect (int x1, int y1, int x2, int y2, float r, float g, float b, float a=1.0) |
| param: x1 - Leftmost x-coordinate.param: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color. | |
| virtual void | draw_line (int x1, int y1, int x2, int y2, float r, float g, float b, float a=1.0) |
| param: x1 - Leftmost x-coordinate.param: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color. | |
Private Types | |
| typedef std::pair<int,int> | TranslationOffset |
Private Attributes | |
| std::stack<CL_ClipRect> | clip_stack |
| param: x1 - Leftmost x-coordinate. //FIXMEparam: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color. | |
| std::stack<TranslationOffset> | m_translation_stack |
|
|
Definition at line 228 of file target.h. Referenced by CL_Target(). |
|
|
|
|
|
|
|
|
param: x1 - Leftmost x-coordinate.param: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color.
Referenced by toluaI_CL_Target_draw_line0(). |
|
|
|
|
|
Referenced by draw_pixel(). |
|
|
param: x1 - Leftmost x-coordinate.param: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color.
|
|
|
Referenced by toluaI_CL_Target_fill_rect0(). |
|
|
|
|
|
|
|
|
|
|
Definition at line 106 of file target.h. Referenced by CL_Canvas::CL_Canvas(), CLVideoDrv::GetBytesPerPixel(), cl_fill_rect_opaque(), and toluaI_CL_Target_get_bytes_per_pixel0(). |
|
|
param: rect - The new clipping rectangle to be clipped with the current cliprect and then used.
Referenced by cl_fill_rect_opaque(), and toluaI_CL_Target_get_clip_rect0(). |
|
|
|
Reimplemented in CL_BMPProvider, CL_PCXProvider, CL_TargaProvider, CL_SpriteProvider, CL_Sprite2Provider, CL_SpriteSubarrayProvider, CL_SpriteSubsectionProvider, CL_PNGProvider, CL_Target_Be, CL_Target_DX, CL_MaskTranscolProvider, CL_SurfaceProvider_32bpp, and CL_Target_System. Definition at line 87 of file target.h. Referenced by CLVideoDrv::BitsPerPixel(), CL_Canvas::CL_Canvas(), CL_PixelData::CL_PixelData(), CL_SurfaceProvider_32bpp::CL_SurfaceProvider_32bpp(), get_bytes_per_pixel(), CL_Target_DX::is_indexed(), and toluaI_CL_Target_get_depth0(). |
|
|
|
|
retval: A pointer that points to the beginning of the target pixel data.
Reimplemented in CL_Canvas, CL_BMPProvider, CL_PCXProvider, CL_TargaProvider, CL_SpriteProvider, CL_Sprite2Provider, CL_SpriteSubarrayProvider, CL_SpriteSubsectionProvider, CL_JPEGProvider, CL_PNGProvider, CL_Target_Be, CL_Target_DX, CL_MaskTranscolProvider, CL_SurfaceProvider_32bpp, and CL_Target_System. Referenced by CL_SurfaceProvider_32bpp::CL_SurfaceProvider_32bpp(), CL_PixelData::dump_assert_info(), CL_Surface_Generic::ensure_surface_prepared(), fast_memmove(), CL_PixelData::get_line_pixel_to_dest(), and toluaI_CL_Target_get_num_frames0(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in CL_Target_Be. Definition at line 58 of file target.h. Referenced by toluaI_CL_Target_is_video0(). |
|
|
retval: True if stored in video memory, false otherwise.
Reimplemented in CL_Canvas, CL_SurfaceProvider_Generic, CL_JPEGProvider, CL_Target_Be, CL_Target_DX, CL_SurfaceProvider_32bpp, and CL_Target_System. Referenced by CL_PixelData::CL_PixelData(), CL_SurfaceProvider_32bpp::CL_SurfaceProvider_32bpp(), CLVideoDrv::Lock(), cl_fill_rect_opaque(), CL_Surface_Generic::ensure_surface_prepared(), and toluaI_CL_Target_lock0(). |
|
|
Referenced by toluaI_CL_Target_pop_clip_rect0(). |
|
|
Referenced by CL_DisplayCard_Generic::pop_translate_offset(). |
|
|
|
|
|
Referenced by toluaI_CL_Target_push_clip_rect0(), and toluaI_CL_Target_push_clip_rect1(). |
|
|
|
|
|
Referenced by CL_DisplayCard_Generic::push_translate_offset(). |
|
|
retval: The current clipping rectangle.
Referenced by toluaI_CL_Target_set_clip_rect0(). |
|
|
Referenced by CL_DisplayCard_Generic::set_translate_offset(). |
|
|
Reimplemented in CL_Canvas, CL_SurfaceProvider_Generic, CL_JPEGProvider, CL_Target_Be, CL_Target_DX, CL_SurfaceProvider_32bpp, and CL_Target_System. Referenced by CL_SurfaceProvider_32bpp::CL_SurfaceProvider_32bpp(), CLVideoDrv::Unlock(), cl_fill_rect_opaque(), CL_Surface_Generic::ensure_surface_prepared(), toluaI_CL_Target_unlock0(), and CL_PixelData::~CL_PixelData(). |
|
|
param: x1 - Leftmost x-coordinate. //FIXMEparam: y1 - Upper y-coordinate.param: x2 - Rightmost x-coordinate.param: y2 - Lower y-coordinate.param: r - Red component of the filled color.param: g - Green component of the filled color.param: b - Blue component of the filled color.param: a - Alpha component of the filled color.
|
|
|
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001