12 return reinterpret_cast<void*
>(&m_data);
26 IDirect3DRMLightArray* lightArray;
27 IDirect3DRMLight* light;
28 m_data->GetLights(&lightArray);
29 lightArray->GetElement(0, &light);
30 return ResultVal(light->SetColorRGB(r, g, b));
[AI] Implementation of Tgl::Light, wraps a Direct3DRMFrame2 and color data [AI]
Result SetTransformation(FloatMatrix4 &) override
Sets transformation matrix for the light [AI].
Result SetColor(float r, float g, float b) override
Sets color for the light [AI].
void * ImplementationDataPtr() override
Returns Direct3DRMFrame2 implementation pointer [AI].
[AI] Represents a source of lighting in the 3D scene.
D3DVALUE D3DRMMATRIX4D[4][4]
#define DECOMP_SIZE_ASSERT(T, S)
[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].
Result
[AI] Result type used throughout the Tgl API to report operation success or failure.
float FloatMatrix4[4][4]
[AI] Represents a 4x4 matrix of single-precision floating point values.