Nuclide
Software Development Kit for id Tech
|
This class represents 3D views, used for rendering the game. More...
#include <NSView.h>
Public Member Functions | |
void | NSView (void) |
virtual void | SetupView (void) |
the only method we we want to call setproperty() More... | |
virtual void | RenderView (void) |
only does one thing: renderscene() More... | |
virtual void | StairSmooth (void) |
when called, will modify 'origin' to vertically smoothed when on ground More... | |
virtual void | UpdateView (void) |
called every CSQC_UpdateView for each player More... | |
nonvirtual void | AddPunchAngle (vector) |
applies an punch to our camera angle, temporarily More... | |
nonvirtual void | SetViewMode (viewmode_t) |
Sets the viewmode_t of the NSView. More... | |
nonvirtual viewmode_t | GetViewMode (void) |
Gets the viewmode_t of the NSView. More... | |
nonvirtual void | SetViewPosition (vector) |
Sets the position of the NSView on the screen. More... | |
nonvirtual void | SetViewSize (vector) |
Sets the canvas of the NSView. More... | |
nonvirtual void | SetViewTarget (NSEntity) |
Sets the view target of the NSView. More... | |
nonvirtual void | SetClientOwner (NSClient) |
Sets the client owner of the NSView. More... | |
nonvirtual void | SetDrawLocalPlayer (bool) |
Call with the argument true and you will draw the body of the view target. More... | |
nonvirtual void | SetCameraOrigin (vector) |
Sets the 3D position of the NSView. More... | |
nonvirtual void | SetCameraAngle (vector) |
Sets the 3D direction of the NSView. More... | |
nonvirtual void | SetClientAngle (vector) |
Sets the client-angle of the NSView. More... | |
nonvirtual void | SetSeatID (int) |
Sets the seat id of the NSView. More... | |
nonvirtual void | SetAFOV (float) |
Sets the absolute field of view of the NSView. More... | |
nonvirtual float | GetAFOV (void) |
Returns the absolute field of view of the NSView. More... | |
nonvirtual void | SetSensitivity (float) |
Sets the sensitivity multiplier of the NSView. More... | |
nonvirtual float | GetSensitivity (void) |
Returns the sensitivity of the NSView. More... | |
nonvirtual vector | GetHUDCanvasSize (void) |
Returns the canvas size of the heads up display. More... | |
nonvirtual vector | GetHUDCanvasPos (void) |
Returns the canvas size of a heads-up-display. More... | |
nonvirtual float | GetViewWidth (void) |
Get the absolute width of the view, in pixels. More... | |
nonvirtual float | GetViewHeight (void) |
Get the absolute height of the view, in pixels. More... | |
nonvirtual vector | GetCameraOrigin (void) |
Returns the 3D world coordinate of the NSView. More... | |
nonvirtual vector | GetCameraAngle (void) |
Returns the 3D direction of the NSView. More... | |
This class represents 3D views, used for rendering the game.
It can also be used to render picture-in-picture views on top of other views.
viewmode_t NSView::GetViewMode | ( | void | ) |
Gets the viewmode_t of the NSView.
only does one thing: renderscene()
Reimplemented in NSRadar.
Sets the client owner of the NSView.
For example, when you're spectating somebody, our View Target will be the person we're spectating; whereas the owner is the client doing the spectating.
Call with the argument true
and you will draw the body of the view target.
the only method we we want to call setproperty()
Reimplemented in NSRadar.
void NSView::SetViewMode | ( | viewmode_t | new_mode | ) |
Sets the viewmode_t of the NSView.
Sets the view target of the NSView.
We'll be seeing the world through their eyes.
when called, will modify 'origin' to vertically smoothed when on ground