Isle
|
[AI] Represents a rendering viewport and drawing context. More...
#include <tgl.h>
Public Member Functions | |
virtual Result | Add (const Light *)=0 |
[AI] Adds a light to the view for rendering. More... | |
virtual Result | Remove (const Light *)=0 |
[AI] Removes a light from the view. More... | |
virtual Result | SetCamera (const Camera *)=0 |
[AI] Sets the camera used by the view. More... | |
virtual Result | SetProjection (ProjectionType)=0 |
[AI] Sets projection type for the view (e.g., perspective/orthographic). More... | |
virtual Result | SetFrustrum (float frontClippingDistance, float backClippingDistance, float degrees)=0 |
[AI] Sets front and back clipping planes and view field in degrees. More... | |
virtual Result | SetBackgroundColor (float r, float g, float b)=0 |
[AI] Sets the background color for the view. More... | |
virtual Result | GetBackgroundColor (float *r, float *g, float *b)=0 |
[AI] Retrieves the current background color. More... | |
virtual Result | Clear ()=0 |
[AI] Clears the current contents of the view. More... | |
virtual Result | Render (const Group *)=0 |
[AI] Renders a group hierarchy to the view. More... | |
virtual Result | ForceUpdate (unsigned long x, unsigned long y, unsigned long width, unsigned long height)=0 |
[AI] Forces update/redraw of a region in the view. More... | |
virtual Result | TransformWorldToScreen (const float world[3], float screen[4])=0 |
[AI] Transforms a world-space position to screen coordinates. More... | |
virtual Result | TransformScreenToWorld (const float screen[4], float world[3])=0 |
[AI] Converts screen coordinate back to world position. More... | |
virtual Result | Pick (unsigned long x, unsigned long y, const Group **ppGroupsToPickFrom, int groupsToPickFromCount, const Group **&rppPickedGroups, int &rPickedGroupCount)=0 |
[AI] Picks the group under screen coordinates, searching specific group trees. More... | |
![]() | |
virtual | ~Object () |
[AI] Destructor; releases resources. More... | |
virtual void * | ImplementationDataPtr ()=0 |
[AI] Returns a pointer to internal/implementation data, if any. More... | |
[AI] Represents a rendering viewport and drawing context.
[AI]
[AI] Manages camera, lights, projection parameters, picking, and frame rendering. [AI]
[AI] Adds a light to the view for rendering.
[AI]
light | Light to add. [AI] |
Implemented in TglImpl::ViewImpl.
|
pure virtual |
[AI] Clears the current contents of the view.
[AI]
Implemented in TglImpl::ViewImpl.
|
pure virtual |
[AI] Forces update/redraw of a region in the view.
[AI]
x | Left of update region. [AI] |
y | Top of update region. [AI] |
width | Width of region. [AI] |
height | Height of region. [AI] |
Implemented in TglImpl::ViewImpl.
|
pure virtual |
[AI] Retrieves the current background color.
[AI]
r | Pointer to red value. [AI] |
g | Pointer to green value. [AI] |
b | Pointer to blue value. [AI] |
Implemented in TglImpl::ViewImpl.
|
pure virtual |
[AI] Picks the group under screen coordinates, searching specific group trees.
[AI]
x | X coordinate (view coords). [AI] |
y | Y coordinate (view coords). [AI] |
ppGroupsToPickFrom | Array of candidate groups to test for picking. [AI] |
groupsToPickFromCount | Number of candidate groups. [AI] |
rppPickedGroups | Output array; hierarchy from root to leaf group picked (may contain nullptr for misses). [AI] |
rPickedGroupCount | Output; number of elements in rppPickedGroups. [AI] |
Implemented in TglImpl::ViewImpl.
[AI] Removes a light from the view.
[AI]
light | Light to remove. [AI] |
Implemented in TglImpl::ViewImpl.
[AI] Renders a group hierarchy to the view.
[AI]
group | Scene/group to render. [AI] |
Implemented in TglImpl::ViewImpl.
|
pure virtual |
[AI] Sets the background color for the view.
[AI]
r | Red. [AI] |
g | Green. [AI] |
b | Blue. [AI] |
Implemented in TglImpl::ViewImpl.
[AI] Sets the camera used by the view.
[AI]
camera | Camera to use for rendering. [AI] |
Implemented in TglImpl::ViewImpl.
|
pure virtual |
[AI] Sets front and back clipping planes and view field in degrees.
[AI]
frontClippingDistance | Near/far plane distances and field of view (degrees). [AI] |
backClippingDistance | [AI] |
degrees | [AI] |
Implemented in TglImpl::ViewImpl.
|
pure virtual |
[AI] Sets projection type for the view (e.g., perspective/orthographic).
[AI]
pType | Projection type. [AI] |
Implemented in TglImpl::ViewImpl.
|
pure virtual |
[AI] Converts screen coordinate back to world position.
[AI]
screen | Input [x,y,z,w] in screen space. [AI] |
world | Output [x,y,z] in world space. [AI] |
Implemented in TglImpl::ViewImpl.
|
pure virtual |
[AI] Transforms a world-space position to screen coordinates.
[AI]
world | Input [x,y,z] position in world coordinates. [AI] |
screen | Output [x,y,z,1/w] in screen space. [AI] |
Implemented in TglImpl::ViewImpl.