Nuclide
Software Development Kit for id Technology (BETA)
|
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 | ncView (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 ncView. More... | |
nonvirtual viewmode_t | GetViewMode (void) |
Gets the viewmode_t of the ncView. More... | |
nonvirtual void | SetViewPosition (vector) |
Sets the position of the ncView on the screen. More... | |
nonvirtual void | SetViewSize (vector) |
Sets the canvas of the ncView. More... | |
nonvirtual void | SetViewTarget (ncEntity) |
Sets the view target of the ncView. More... | |
nonvirtual void | SetClientOwner (ncClient) |
Sets the client owner of the ncView. 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 ncView. More... | |
nonvirtual void | SetCameraAngle (vector) |
Sets the 3D direction of the ncView. More... | |
nonvirtual void | SetClientAngle (vector) |
Sets the client-angle of the ncView. More... | |
nonvirtual void | SetSeatID (int) |
Sets the seat id of the ncView. More... | |
nonvirtual void | SetAFOV (float) |
Sets the absolute field of view of the ncView. More... | |
nonvirtual float | GetAFOV (void) |
Returns the absolute field of view of the ncView. More... | |
nonvirtual void | SetSensitivity (float) |
Sets the sensitivity multiplier of the ncView. More... | |
nonvirtual float | GetSensitivity (void) |
Returns the sensitivity of the ncView. 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 ncView. More... | |
nonvirtual vector | GetCameraAngle (void) |
Returns the 3D direction of the ncView. More... | |
nonvirtual void | SetSoundScape (ncSoundScape) |
nonvirtual ncSoundScape | GetSoundScape (void) |
void ncView::ncView | ( | void | ) |
void ncView::AddPunchAngle | ( | vector | vecAdd | ) |
applies an punch to our camera angle, temporarily
float ncView::GetAFOV | ( | void | ) |
Returns the absolute field of view of the ncView.
vector ncView::GetCameraAngle | ( | void | ) |
Returns the 3D direction of the ncView.
vector ncView::GetCameraOrigin | ( | void | ) |
Returns the 3D world coordinate of the ncView.
vector ncView::GetHUDCanvasPos | ( | void | ) |
Returns the canvas size of a heads-up-display.
vector ncView::GetHUDCanvasSize | ( | void | ) |
Returns the canvas size of the heads up display.
float ncView::GetSensitivity | ( | void | ) |
Returns the sensitivity of the ncView.
ncSoundScape ncView::GetSoundScape | ( | void | ) |
float ncView::GetViewHeight | ( | void | ) |
Get the absolute height of the view, in pixels.
viewmode_t ncView::GetViewMode | ( | void | ) |
Gets the viewmode_t of the ncView.
float ncView::GetViewWidth | ( | void | ) |
Get the absolute width of the view, in pixels.
|
virtual |
only does one thing: renderscene()
Reimplemented in ncRadar.
void ncView::SetAFOV | ( | float | new_fov | ) |
Sets the absolute field of view of the ncView.
void ncView::SetCameraAngle | ( | vector | new_angle | ) |
Sets the 3D direction of the ncView.
void ncView::SetCameraOrigin | ( | vector | new_origin | ) |
Sets the 3D position of the ncView.
void ncView::SetClientAngle | ( | vector | new_angle | ) |
Sets the client-angle of the ncView.
void ncView::SetClientOwner | ( | ncClient | new_owner | ) |
Sets the client owner of the ncView.
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 ncView::SetDrawLocalPlayer | ( | bool | choice | ) |
Call with the argument true
and you will draw the body of the view target.
void ncView::SetSeatID | ( | int | new_id | ) |
Sets the seat id of the ncView.
void ncView::SetSensitivity | ( | float | new_fov | ) |
Sets the sensitivity multiplier of the ncView.
void ncView::SetSoundScape | ( | ncSoundScape | newSoundScape | ) |
|
virtual |
the only method we we want to call setproperty()
Reimplemented in ncRadar.
void ncView::SetViewMode | ( | viewmode_t | new_mode | ) |
Sets the viewmode_t of the ncView.
void ncView::SetViewPosition | ( | vector | new_pos | ) |
Sets the position of the ncView on the screen.
void ncView::SetViewSize | ( | vector | new_size | ) |
Sets the canvas of the ncView.
void ncView::SetViewTarget | ( | ncEntity | new_target | ) |
Sets the view target of the ncView.
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