Nuclide
Software Development Kit for id Tech
NSView.h File Reference

NSView handles camera and viewpoints. More...

Go to the source code of this file.

Classes

class  NSView
 This class represents 3D views, used for rendering the game. More...
 

Enumerations

enum  viewmode_t { VIEWMODE_NORMAL , VIEWMODE_FPS , VIEWMODE_THIRDPERSON , VIEWMODE_SPECTATING }
 The view mode type of the NSView. More...
 

Variables

NSView g_viewSeats [4]
 one NSView for each seat More...
 
NSView g_view
 the current seat run for each draw call, for each player. More...
 

Detailed Description

NSView handles camera and viewpoints.

The job of the NSView is to draw a 3D view into an area of the screen. It can contain a player seat. It can also be used to simply render another view anywhere on the screen.

The NSView has a target, which may or may not have prediction

run on them. Things such as stair smoothing and viewmodel handling is done in the NSView.

Enumeration Type Documentation

◆ viewmode_t

enum viewmode_t

The view mode type of the NSView.

Enumerator
VIEWMODE_NORMAL 

just a regular camera with no special logic

VIEWMODE_FPS 

uses view target position + view offset

VIEWMODE_THIRDPERSON 

third person view, fixed

VIEWMODE_SPECTATING 

spectating, mixed viewmodes inside

Variable Documentation

◆ g_view

NSView g_view

the current seat run for each draw call, for each player.

always use talk to this!

◆ g_viewSeats

NSView g_viewSeats[4]

one NSView for each seat