Nuclide
Software Development Kit for id Technology
|
VGUI Widget: 3D View.
Public Member Functions | |
void | VGUI3DView (void) |
nonvirtual vector | Get3DPos (void) |
Return the 3D-space position our camera within the 3D view is located at. More... | |
nonvirtual vector | Get3DAngles (void) |
Return the angle that the camera within the 3D view is aiming at. More... | |
nonvirtual void | Set3DPos (vector) |
Sets the position of the camera within the 3D-space. More... | |
nonvirtual void | Set3DAngles (vector) |
Sets the angle of the camera within the 3D-space. More... | |
nonvirtual void | SetDrawFunc (void(void)) |
Sets the function to call in order to draw the scene. More... | |
nonvirtual void | SetInputFunc (float(float, float, float, float)) |
Sets the function to call for when input events happen within the 3D view. More... | |
virtual void | Draw (void) |
Called in order to draw the widget. More... | |
virtual bool | Input (float, float, float, float) |
Called whenever an input event gets directed to the widget. More... | |
virtual void | Spawned (void) |
Called when the widget has fully initialized. More... | |
void VGUI3DView::VGUI3DView | ( | void | ) |
|
virtual |
Called in order to draw the widget.
Reimplemented from VGUIWidget.
vector VGUI3DView::Get3DAngles | ( | void | ) |
Return the angle that the camera within the 3D view is aiming at.
vector VGUI3DView::Get3DPos | ( | void | ) |
Return the 3D-space position our camera within the 3D view is located at.
|
virtual |
Called whenever an input event gets directed to the widget.
Reimplemented from VGUIWidget.
void VGUI3DView::Set3DAngles | ( | vector | vecAngles | ) |
Sets the angle of the camera within the 3D-space.
void VGUI3DView::Set3DPos | ( | vector | vecPos | ) |
Sets the position of the camera within the 3D-space.
void VGUI3DView::SetDrawFunc | ( | void(void) | vFunc | ) |
Sets the function to call in order to draw the scene.
void VGUI3DView::SetInputFunc | ( | float(float, float, float, float) | vFunc | ) |
Sets the function to call for when input events happen within the 3D view.
|
virtual |
Called when the widget has fully initialized.
When you override this, you may call super::Spawned();
to ensure the parent classes get to finish initializing also.
Reimplemented from VGUIWidget.