[AI] 3D view that supports advanced lighting for scene rendering.
~LegoView1() override
[AI] Destructor.
void Destroy() override
[AI] Safely removes all lights from the scene, deletes them, and nulls pointers.
void SetLightTransform(BOOL bDirectionalLight, Tgl::FloatMatrix4 &rMatrix)
[AI] Sets the transformation matrix (position/orientation) for either the sun or directional light.
BOOL AddLightsToViewport()
[AI] Adds the view's lights (sun, directional, ambient) to the active Tgl view for rendering.
BOOL Create(const TglSurface::CreateStruct &rCreateStruct, Tgl::Renderer *pRenderer)
[AI] Initializes scene, camera, and three types of lights (sun, directional, ambient) using supplied ...
void SetLightColor(BOOL bDirectionalLight, float red, float green, float blue)
[AI] Sets the RGB color for either the sun or directional light.
LegoView1()
[AI] Constructs the view and zeros out all light pointers (sun, directional, ambient).
[AI] Represents a 3D rendering surface holding the main scene group and camera for rendering.
LegoView()
[AI] Constructs an empty LegoView with uninitialized scene and camera.
~LegoView() override
[AI] Destructor.
Tgl::Group * GetScene() const
[AI] Accessor for the root scene group.
Tgl::View * CreateView(Tgl::Renderer *pRenderer, Tgl::Device *pDevice) override
[AI] Create and return the Tgl::View object for this surface.
BOOL Create(const CreateStruct &rCreateStruct, Tgl::Renderer *pRenderer)
[AI] Initialize the LegoView with a scene root and camera using the provided creation parameters and ...
void Destroy() override
[AI] Release all scene and camera resources, call TglSurface cleanup.
Tgl::Camera * GetCamera() const
[AI] Accessor for the view's main camera.
[AI] Encapsulates a rendering surface, its associated hardware device, renderer, and view.
[AI] Represents a viewpoint in the 3D scene.
[AI] Represents a rendering device/context for the Tgl renderer.
[AI] Scene graph node for parental transforms/color/material/texture; can hold meshes or other groups...
[AI] Represents a source of lighting in the 3D scene.
[AI] Main interface/factory for rendering resources and scene graphs.
[AI] Represents a rendering viewport and drawing context.
[AI] Namespace containing all classes related to the 3D graphics abstraction/rendering engine.
float FloatMatrix4[4][4]
[AI] Represents a 4x4 matrix of single-precision floating point values.
[AI] Contains initialization parameters for creating a TglSurface and its underlying DDraw/D3D resour...