Nuclide
Software Development Kit for id Technology
|
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.
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... | |
nonvirtual void | SetSoundScape (NSSoundScape) |
nonvirtual NSSoundScape | GetSoundScape (void) |
void NSView::NSView | ( | void | ) |
void NSView::AddPunchAngle | ( | vector | vecAdd | ) |
applies an punch to our camera angle, temporarily
float NSView::GetAFOV | ( | void | ) |
Returns the absolute field of view of the NSView.
vector NSView::GetCameraAngle | ( | void | ) |
Returns the 3D direction of the NSView.
vector NSView::GetCameraOrigin | ( | void | ) |
Returns the 3D world coordinate of the NSView.
vector NSView::GetHUDCanvasPos | ( | void | ) |
Returns the canvas size of a heads-up-display.
vector NSView::GetHUDCanvasSize | ( | void | ) |
Returns the canvas size of the heads up display.
float NSView::GetSensitivity | ( | void | ) |
Returns the sensitivity of the NSView.
NSSoundScape NSView::GetSoundScape | ( | void | ) |
float NSView::GetViewHeight | ( | void | ) |
Get the absolute height of the view, in pixels.
viewmode_t NSView::GetViewMode | ( | void | ) |
Gets the viewmode_t of the NSView.
float NSView::GetViewWidth | ( | void | ) |
Get the absolute width of the view, in pixels.
|
virtual |
only does one thing: renderscene()
Reimplemented in NSRadar.
void NSView::SetAFOV | ( | float | new_fov | ) |
Sets the absolute field of view of the NSView.
void NSView::SetCameraAngle | ( | vector | new_angle | ) |
Sets the 3D direction of the NSView.
void NSView::SetCameraOrigin | ( | vector | new_origin | ) |
Sets the 3D position of the NSView.
void NSView::SetClientAngle | ( | vector | new_angle | ) |
Sets the client-angle of the NSView.
void NSView::SetClientOwner | ( | NSClient | new_owner | ) |
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.
void NSView::SetDrawLocalPlayer | ( | bool | choice | ) |
Call with the argument true
and you will draw the body of the view target.
void NSView::SetSeatID | ( | int | new_id | ) |
Sets the seat id of the NSView.
void NSView::SetSensitivity | ( | float | new_fov | ) |
Sets the sensitivity multiplier of the NSView.
void NSView::SetSoundScape | ( | NSSoundScape | newSoundScape | ) |
|
virtual |
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.
void NSView::SetViewPosition | ( | vector | new_pos | ) |
Sets the position of the NSView on the screen.
void NSView::SetViewSize | ( | vector | new_size | ) |
Sets the canvas of the NSView.
void NSView::SetViewTarget | ( | NSEntity | new_target | ) |
Sets the view target of the NSView.
We'll be seeing the world through their eyes.
|
virtual |
when called, will modify 'origin' to vertically smoothed when on ground
|
virtual |
called every CSQC_UpdateView for each player