Camera data

From GMod Wiki

Jump to: navigation, search
Warning 64.pngThis page needs to be edited as it contains information that is unclear or incorrect. Improvement can be discussed on the talk page. Find more pages that need work here.
Details: None given.
Structure
Name Camera Data
Available On: NewerClient.png
Description:
Passed to functions that renders the view.

Members

Type Name Description
Vector origin The place where the view should be rendered from.
Angle angles The direction the view should be rendered in.
Number x The x Coordinate of the rendered view on the current render target
Number y The y Coordinate of the rendered view on the current render target
Number w The width of the rendered view on the current render target
Number h The height of the rendered view on the current render target
Boolean drawhud Should the hud be drawn on the view?
Boolean drawviewmodel Should the player's viewmodel be drawn on the view?
Float viewmodelfov What viewmodel FOV should be used to draw it?
Float fov What fov to draw the view with
Boolean ortho If true, will enable Orthographic projection (the same as setting the fov to zero)
Number ortholeft Unknown (Added Nov 2009 Update)
Number orthoright Unknown (Added Nov 2009 Update)
Number orthotop Unknown (Added Nov 2009 Update)
Number orthobottom Unknown (Added Nov 2009 Update)
Float znear Near clipping distance
Float zfar Far clipping distance
Float znearviewmodel Near clipping distance for view model
Float zfarviewmodel Far clipping distance for view model


Additional Notes

Examples

DescriptionN/A
Used onNewerMissing.png
Code
LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputN/A


Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox