12 return reinterpret_cast<void*
>(&m_data);
18 return m_data->GetWidth();
24 return m_data->GetHeight();
37 return ResultVal(pDevice->SetQuality(renderQuality));
52 return ResultVal(m_data->SetShades(shadeCount));
58 return ResultVal(m_data->SetDither(dither));
65 IDirect3DRMWinDevice* winDevice;
66 if (
ResultVal(m_data->QueryInterface(IID_IDirect3DRMWinDevice, (
LPVOID*) &winDevice))) {
67 winDevice->HandleActivate(wParam);
75 IDirect3DRMWinDevice* winDevice;
76 if (SUCCEEDED(m_data->QueryInterface(IID_IDirect3DRMWinDevice, (
LPVOID*) &winDevice))) {
77 winDevice->HandlePaint(p_dc);
void HandleActivate(WORD) override
Handles application/window activation event [AI].
void * ImplementationDataPtr() override
Returns Direct3DRMDevice2 pointer as a generic implementation data pointer [AI].
unsigned long GetHeight() override
Returns the current device height in pixels [AI].
Result Update() override
Submits any pending updates to the device [AI].
Result SetDither(int) override
Enables or disables dithering [AI].
void HandlePaint(HDC) override
Handles window paint event [AI].
unsigned long GetWidth() override
Returns the current device width in pixels [AI].
Result SetShadingModel(ShadingModel) override
Sets the shading model (flat, Gouraud, etc.) [AI].
Result SetShadeCount(unsigned long) override
Sets number of shades [AI].
Result SetColorModel(ColorModel) override
Sets the color model used for rendering [AI].
Result DeviceSetShadingModel(IDirect3DRMDevice2 *pDevice, ShadingModel model)
[AI] Forward declaration for Direct3DRMTexture interface [AI]
Result ResultVal(HRESULT result)
Returns a Tgl Result value for HRESULT [AI].
D3DRMRENDERQUALITY Translate(ShadingModel tglShadingModel)
Converts Tgl shading model enum to D3DRM enum [AI].
ShadingModel
[AI] Represents shading models available for rendering geometry.
Result
[AI] Result type used throughout the Tgl API to report operation success or failure.
@ Success
[AI] Operation succeeded. [AI]
ColorModel
[AI] Represents available color models for rendering.