#include <displaycard_directdraw.h>
Inheritance diagram for CL_DisplayCard_DirectDraw:


Public Methods | |
| CL_DisplayCard_DirectDraw (int card_no, LPGUID card_guid, std::string card_name) | |
| virtual | ~CL_DisplayCard_DirectDraw () |
| virtual void | set_palette (CL_Palette *palette) |
| 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 () |
| param: palette - Palette to use as new system palette. | |
| virtual void | flip_display (bool sync=false) |
| virtual void | put_display (const class CL_Rect &rect) |
| param: sync - VSync on/off. | |
| virtual void | set_videomode (int width, int height, int bpp, bool full_screen, bool allow_resize, bool video_memory) |
| param: mode - videomode to be changed to. | |
| virtual void | clear_display (float red=0, float green=0, float blue=0, float alpha=1) |
| virtual void | fill_rect (int x1, int y1, int x2, int y2, float r, float g, float b, float a) |
| virtual std::string | get_name () |
| retval: Returns the list of videomodes. | |
| virtual const std::list<CL_VidMode*>& | get_videomodes () |
| virtual int | get_total_memory () |
| retval: Returns the card name. | |
| virtual CL_Target* | get_target () |
| retval: true if initialized. | |
| virtual bool | is_initialized () |
| 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 void | sync_buffers () |
| virtual CL_Target* | get_frontbuffer () |
| virtual CL_Blitters | create_hw_blitters (CL_SurfaceProvider *provider) |
| DDCAPS | get_hel_caps () |
| DDCAPS | get_hal_caps () |
| LPDIRECTDRAW | get_directdraw () |
| CL_Target_DX* | get_back_buffer () |
Private Methods | |
| virtual void | init_palette () |
| void | deinit () |
| void | enumerate_displaymodes () |
| void | destroy_displaymodes () |
| void | create_fullscreen_targets (bool video_memory) |
| void | create_windowed_targets (bool video_memory) |
| void | create_windowed_backbuffer (int width, int height) |
| void | on_resize (int x, int y) |
Private Attributes | |
| LPDIRECTDRAW | directdraw |
| CL_Target_DX* | back_buffer |
| CL_Target_DX* | front_buffer |
| bool | can_flip |
| bool | use_software_surfaces |
| CL_Palette | pal |
| int | card_no |
| LPGUID | card_guid |
| std::string | card_name |
| std::list<CL_VidMode*> | videomodes |
| bool | backbuffer_in_video_memory |
| CL_Slot | slot_resize |
Static Private Methods | |
| HRESULT CALLBACK | enumerate_callback (LPDDSURFACEDESC lpDDSurfaceDesc, LPVOID lpContext) |
|
|
|
|
|
|
|
|
Reimplemented from CL_DisplayCard_Generic. |
|
|
|
|
|
Reimplemented from CL_DisplayCard_Generic. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from CL_DisplayCard_Generic. |
|
|
Reimplemented from CL_DisplayCard. |
|
|
Definition at line 74 of file displaycard_directdraw.h. |
|
|
Definition at line 73 of file displaycard_directdraw.h. |
|
|
Reimplemented from CL_DisplayCard_Generic. Definition at line 65 of file displaycard_directdraw.h. |
|
|
|
|
|
|
|
|
retval: Returns the list of videomodes.
Reimplemented from CL_DisplayCard. |
|
|
param: palette - Palette to use as new system palette.
Reimplemented from CL_DisplayCard. |
|
|
retval: true if initialized.
Reimplemented from CL_DisplayCard. Definition at line 56 of file displaycard_directdraw.h. |
|
|
retval: Returns the card name.
Reimplemented from CL_DisplayCard. Definition at line 54 of file displaycard_directdraw.h. |
|
|
Reimplemented from CL_DisplayCard. |
|
|
|
|
|
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 from CL_DisplayCard. Definition at line 58 of file displaycard_directdraw.h. |
|
|
|
|
|
param: sync - VSync on/off.
Reimplemented from CL_DisplayCard. |
|
|
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 from CL_DisplayCard. |
|
|
param: mode - videomode to be changed to.
Reimplemented from CL_DisplayCard. |
|
|
Reimplemented from CL_DisplayCard_Generic. |
|
|
Definition at line 95 of file displaycard_directdraw.h. |
|
|
Definition at line 122 of file displaycard_directdraw.h. |
|
|
Definition at line 111 of file displaycard_directdraw.h. |
|
|
Definition at line 117 of file displaycard_directdraw.h. |
|
|
Definition at line 118 of file displaycard_directdraw.h. |
|
|
Definition at line 116 of file displaycard_directdraw.h. |
|
|
Definition at line 94 of file displaycard_directdraw.h. |
|
|
Definition at line 110 of file displaycard_directdraw.h. |
|
|
Definition at line 114 of file displaycard_directdraw.h. |
|
|
Definition at line 123 of file displaycard_directdraw.h. |
|
|
Definition at line 112 of file displaycard_directdraw.h. |
|
|
Definition at line 120 of file displaycard_directdraw.h. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001