Isle
|
[AI] Implements the Tgl::Device interface, encapsulates Direct3DRMDevice2 and provides rendering device operations. More...
#include <impl.h>
Public Types | |
typedef IDirect3DRMDevice2 * | DeviceDataType |
[AI] Internal data type for device (Direct3DRMDevice2*) [AI] More... | |
Public Member Functions | |
DeviceImpl () | |
[AI] Initializes device data to null [AI] More... | |
~DeviceImpl () override | |
[AI] Destructor releases resources [AI] More... | |
void * | ImplementationDataPtr () override |
Returns Direct3DRMDevice2 pointer as a generic implementation data pointer [AI]. More... | |
unsigned long | GetWidth () override |
Returns the current device width in pixels [AI]. More... | |
unsigned long | GetHeight () override |
Returns the current device height in pixels [AI]. More... | |
Result | SetColorModel (ColorModel) override |
Sets the color model used for rendering [AI]. More... | |
Result | SetShadingModel (ShadingModel) override |
Sets the shading model (flat, Gouraud, etc.) [AI]. More... | |
Result | SetShadeCount (unsigned long) override |
Sets number of shades [AI]. More... | |
Result | SetDither (int) override |
Enables or disables dithering [AI]. More... | |
Result | Update () override |
Submits any pending updates to the device [AI]. More... | |
void | HandleActivate (WORD) override |
Handles application/window activation event [AI]. More... | |
void | HandlePaint (HDC) override |
Handles window paint event [AI]. More... | |
const DeviceDataType & | ImplementationData () const |
Retrieves the device pointer (const) [AI]. More... | |
DeviceDataType & | ImplementationData () |
Retrieves the device pointer (mutable) [AI]. More... | |
void | SetImplementationData (IDirect3DRMDevice2 *device) |
Replaces the implementation pointer [AI]. More... | |
void | Destroy () |
Frees device resources [AI]. More... | |
virtual unsigned long | GetWidth ()=0 |
[AI] Gets the output width in pixels. More... | |
virtual unsigned long | GetHeight ()=0 |
[AI] Gets the output height in pixels. More... | |
virtual Result | SetColorModel (ColorModel)=0 |
[AI] Sets the color model for rendering. More... | |
virtual Result | SetShadingModel (ShadingModel)=0 |
[AI] Sets the shading model (e.g., Gouraud, flat). More... | |
virtual Result | SetShadeCount (unsigned long)=0 |
[AI] Specifies the number of shades for rendering (possibly for palette/ramp mode). More... | |
virtual Result | SetDither (int)=0 |
[AI] Enables/disables dithering in the renderer. More... | |
virtual Result | Update ()=0 |
[AI] Performs a device update/synchronization. More... | |
virtual void | HandleActivate (WORD)=0 |
[AI] Handles window activation events (e.g., WM_ACTIVATE). More... | |
virtual void | HandlePaint (HDC)=0 |
[AI] Handles window repaint events (e.g., WM_PAINT) with a device context. More... | |
![]() | |
virtual | ~Object () |
[AI] Destructor; releases resources. More... | |
virtual void * | ImplementationDataPtr ()=0 |
[AI] Returns a pointer to internal/implementation data, if any. More... | |
Friends | |
class | RendererImpl |
[AI] Implements the Tgl::Device interface, encapsulates Direct3DRMDevice2 and provides rendering device operations.
[AI]
typedef IDirect3DRMDevice2* TglImpl::DeviceImpl::DeviceDataType |
|
inline |
|
inlineoverride |
|
inline |
|
overridevirtual |
Returns the current device height in pixels [AI].
Implements Tgl::Device.
Definition at line 22 of file device.cpp.
|
overridevirtual |
Returns the current device width in pixels [AI].
Implements Tgl::Device.
Definition at line 16 of file device.cpp.
|
overridevirtual |
Handles application/window activation event [AI].
wParam | Activation parameter (from WM_ACTIVATE) [AI] |
Implements Tgl::Device.
Definition at line 62 of file device.cpp.
|
overridevirtual |
Handles window paint event [AI].
hdc | Device context handle [AI] |
Implements Tgl::Device.
Definition at line 73 of file device.cpp.
|
inline |
|
inline |
|
overridevirtual |
Returns Direct3DRMDevice2 pointer as a generic implementation data pointer [AI].
Implements Tgl::Object.
Definition at line 10 of file device.cpp.
|
overridevirtual |
Sets the color model used for rendering [AI].
model | Color model (RGB, etc.) [AI] |
Implements Tgl::Device.
Definition at line 28 of file device.cpp.
|
overridevirtual |
Enables or disables dithering [AI].
value | Dither enabled or not [AI] |
Implements Tgl::Device.
Definition at line 56 of file device.cpp.
|
inline |
|
overridevirtual |
Sets number of shades [AI].
count | Shade count [AI] |
Implements Tgl::Device.
Definition at line 50 of file device.cpp.
|
overridevirtual |
Sets the shading model (flat, Gouraud, etc.) [AI].
model | Shading model [AI] |
Implements Tgl::Device.
Definition at line 42 of file device.cpp.
|
overridevirtual |
Submits any pending updates to the device [AI].
Implements Tgl::Device.
Definition at line 83 of file device.cpp.
|
friend |