Isle
Loading...
Searching...
No Matches
Tgl::Device Class Referenceabstract

[AI] Represents a rendering device/context for the Tgl renderer. More...

#include <tgl.h>

Inheritance diagram for Tgl::Device:
Collaboration diagram for Tgl::Device:

Public Member Functions

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...
 
- Public Member Functions inherited from Tgl::Object
virtual ~Object ()
 [AI] Destructor; releases resources. More...
 
virtual void * ImplementationDataPtr ()=0
 [AI] Returns a pointer to internal/implementation data, if any. More...
 

Detailed Description

[AI] Represents a rendering device/context for the Tgl renderer.

[AI]

[AI] Controls low-level rendering device state and update flow. [AI]

Definition at line 318 of file tgl.h.

Member Function Documentation

◆ GetHeight()

virtual unsigned long Tgl::Device::GetHeight ( )
pure virtual

[AI] Gets the output height in pixels.

[AI]

Returns
Current device height. [AI]

Implemented in TglImpl::DeviceImpl.

◆ GetWidth()

virtual unsigned long Tgl::Device::GetWidth ( )
pure virtual

[AI] Gets the output width in pixels.

[AI]

Returns
Current device width. [AI]

Implemented in TglImpl::DeviceImpl.

◆ HandleActivate()

virtual void Tgl::Device::HandleActivate ( WORD  )
pure virtual

[AI] Handles window activation events (e.g., WM_ACTIVATE).

[AI]

Parameters
wParamWindow activation state. [AI]

Implemented in TglImpl::DeviceImpl.

◆ HandlePaint()

virtual void Tgl::Device::HandlePaint ( HDC  )
pure virtual

[AI] Handles window repaint events (e.g., WM_PAINT) with a device context.

[AI]

Parameters
hdcDevice context handle. [AI]

Implemented in TglImpl::DeviceImpl.

◆ SetColorModel()

virtual Result Tgl::Device::SetColorModel ( ColorModel  )
pure virtual

[AI] Sets the color model for rendering.

[AI]

Parameters
modelDesired color model. [AI]
Returns
Result Success or Error. [AI]

Implemented in TglImpl::DeviceImpl.

◆ SetDither()

virtual Result Tgl::Device::SetDither ( int  )
pure virtual

[AI] Enables/disables dithering in the renderer.

[AI]

Parameters
onBoolean-like toggle; nonzero to enable. [AI]
Returns
Result Success or Error. [AI]

Implemented in TglImpl::DeviceImpl.

◆ SetShadeCount()

virtual Result Tgl::Device::SetShadeCount ( unsigned long  )
pure virtual

[AI] Specifies the number of shades for rendering (possibly for palette/ramp mode).

[AI]

Parameters
countShade count. [AI]
Returns
Result Success or Error. [AI]

Implemented in TglImpl::DeviceImpl.

◆ SetShadingModel()

virtual Result Tgl::Device::SetShadingModel ( ShadingModel  )
pure virtual

[AI] Sets the shading model (e.g., Gouraud, flat).

[AI]

Parameters
shadingModelDesired shading type. [AI]
Returns
Result Success or Error. [AI]

Implemented in TglImpl::DeviceImpl.

◆ Update()

virtual Result Tgl::Device::Update ( )
pure virtual

[AI] Performs a device update/synchronization.

[AI]

Returns
Result Success or Error. [AI]

Implemented in TglImpl::DeviceImpl.


The documentation for this class was generated from the following file: