#include <displaycard.h>
Inheritance diagram for CL_DisplayCard:

Public Methods | |
| virtual const std::list<CL_VidMode*>& | get_videomodes ()=0 |
| virtual std::string | get_name ()=0 |
| retval: Returns the list of videomodes. | |
| virtual int | get_total_memory ()=0 |
| retval: Returns the card name. | |
| virtual int | get_card_no ()=0 |
| retval: Videomemory available, or -1 if unknown. | |
| virtual | ~CL_DisplayCard () |
| retval: Card number. | |
| virtual void | flip_display (bool sync=false)=0 |
| virtual void | put_display (const class CL_Rect &rect)=0 |
| param: sync - VSync on/off. | |
| virtual void | sync_buffers ()=0 |
| virtual void | clear_display (float red=0, float green=0, float blue=0, float alpha=1)=0 |
| virtual void | set_palette (CL_Palette *palette)=0 |
| param: red - red component of the color.param: green - green component of the color.param: blue - blue component of the color.param: alpha - alpha (transparency) component of the color. | |
| virtual CL_Palette* | get_palette ()=0 |
| param: palette - Palette to use as new system palette. | |
| virtual void | set_videomode (CL_VidMode *mode) |
| retval: The system palette. | |
| virtual void | set_videomode (int width, int height, int bpp, bool fullscreen=true, bool allow_resize=false, bool video_memory=true)=0 |
| param: mode - videomode to be changed to. | |
| virtual bool | is_initialized ()=0 |
| param: width - width in pixels of the new video mode.param: height - height in pixels of the new video mode.param: bpp - Bits per pixel. The depth of the new video mode. (8, 16, 24, 32)param: video_memory - Use video memory if possible. System memory may be faster if alpha blending is used a lot. | |
| virtual CL_Target* | get_target ()=0 |
| retval: true if initialized. | |
| virtual int | get_width ()=0 |
| virtual int | get_height ()=0 |
| retval: Width of video mode. | |
| virtual int | get_bpp ()=0 |
| retval: Height of video mode. | |
| virtual void | push_clip_rect ()=0 |
| retval: Depth of video mode. | |
| virtual void | push_clip_rect (const CL_ClipRect &rect)=0 |
| virtual CL_ClipRect | get_clip_rect ()=0 |
| param: rect - The new clipping rectangle to be with the old one and then used. | |
| virtual void | set_clip_rect (const CL_ClipRect &rect)=0 |
| retval: The current clipping rectangle. | |
| virtual void | pop_clip_rect ()=0 |
| virtual void | push_translate_offset ()=0 |
| virtual void | push_translate_offset (int x, int y)=0 |
| virtual int | get_translate_offset_x ()=0 |
| virtual int | get_translate_offset_y ()=0 |
| virtual void | set_translate_offset (int x, int y)=0 |
| virtual void | pop_translate_offset ()=0 |
| virtual void | fill_rect (int x1, int y1, int x2, int y2, float r, float g, float b, float a)=0 |
| virtual void | draw_rect (int x1, int y1, int x2, int y2, float r, float g, float b, float a)=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)=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 CL_Signal_v2<int, int>& | get_sig_resize ()=0 |
| 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. | |
| virtual CL_Signal_v1<const CL_Rect &>& | get_sig_paint ()=0 |
|
|
retval: Card number.
Definition at line 61 of file displaycard.h. |
|
|
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Generic. |
|
|
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.
Reimplemented in CL_DisplayCard_Generic. |
|
|
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.
Reimplemented in CL_DisplayCard_Be, and CL_DisplayCard_Generic. |
|
|
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Generic. |
|
|
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Svgalib. |
|
|
retval: Height of video mode.
Reimplemented in CL_DisplayCard_Generic. |
|
|
retval: Videomemory available, or -1 if unknown.
Reimplemented in CL_DisplayCard_Generic. Referenced by CL_Surface_Generic::ensure_surface_prepared(). |
|
|
param: rect - The new clipping rectangle to be with the old one and then used.
Reimplemented in CL_DisplayCard_Generic. |
|
|
retval: Width of video mode.
Reimplemented in CL_DisplayCard_Generic. |
|
|
retval: Returns the list of videomodes.
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Svgalib. |
|
|
param: palette - Palette to use as new system palette.
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Svgalib. |
|
|
Reimplemented in CL_DisplayCard_Generic. |
|
|
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.
Reimplemented in CL_DisplayCard_Generic. |
|
|
retval: true if initialized.
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Svgalib. Referenced by CL_DisplayCard_Generic::get_translate_offset_x(), CL_DisplayCard_Generic::get_translate_offset_y(), CL_DisplayCard_Generic::pop_clip_rect(), CL_DisplayCard_Generic::pop_translate_offset(), CL_DisplayCard_Generic::push_clip_rect(), CL_DisplayCard_Generic::push_translate_offset(), CL_DisplayCard_Generic::set_clip_rect(), and CL_DisplayCard_Generic::set_translate_offset(). |
|
|
retval: Returns the card name.
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Svgalib. |
|
|
Reimplemented in CL_DisplayCard_Generic. |
|
|
Reimplemented in CL_DisplayCard_Generic. |
|
|
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Svgalib. |
|
|
Reimplemented in CL_DisplayCard_Generic. |
|
|
param: width - width in pixels of the new video mode.param: height - height in pixels of the new video mode.param: bpp - Bits per pixel. The depth of the new video mode. (8, 16, 24, 32)param: video_memory - Use video memory if possible. System memory may be faster if alpha blending is used a lot.
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Svgalib. |
|
|
Reimplemented in CL_DisplayCard_Generic. |
|
|
Reimplemented in CL_DisplayCard_Generic. |
|
|
Reimplemented in CL_DisplayCard_Generic. |
|
|
retval: Depth of video mode.
Reimplemented in CL_DisplayCard_Generic. Referenced by CL_DisplayCard_Generic::push_clip_rect(). |
|
|
Reimplemented in CL_DisplayCard_Generic. |
|
|
Reimplemented in CL_DisplayCard_Generic. |
|
|
param: sync - VSync on/off.
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Svgalib. |
|
|
retval: The current clipping rectangle.
Reimplemented in CL_DisplayCard_Generic. Referenced by CL_DisplayCard_Generic::set_resize(). |
|
|
param: red - red component of the color.param: green - green component of the color.param: blue - blue component of the color.param: alpha - alpha (transparency) component of the color.
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Svgalib. |
|
|
Reimplemented in CL_DisplayCard_Generic. |
|
|
param: mode - videomode to be changed to.
Reimplemented in CL_DisplayCard_Be, CL_DisplayCard_DirectDraw, and CL_DisplayCard_Svgalib. |
|
|
retval: The system palette.
|
|
|
Reimplemented in CL_DisplayCard_DirectDraw, and CL_DisplayCard_Generic. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001