Garry's Mod Wiki

Revision Difference

Structures/RenderCamData#512062

<cat>struct</cat>⤶ <structure>⤶ <description>⤶ Used for <page>cam.Start</page>.⤶ ⤶ Unless stated otherwise, the default values for all these keys would be inherited from the engine's current CViewSetup and do not have static representations.⤶ </description>⤶ <fields>{{StructureField|number|x|The x position of the view port</fields>⤶ ⤶ </structure>⤶ ⤶ {{StructureField|number|y|The y position of the view port}}{{StructureField|number|w|The width of the view port}}{{StructureField|number|h|The height of the view port}}{{StructureField|string|type|The type of cam. Valid types are:⤶ * "2D" - No additional arguments are required⤶ * "3D" - Only origin and angles are needed, all other parameters are optional.|"3D"⤶ }}{{StructureField|Vector|origin|The position to render from}}{{StructureField|Angle|angles|The angles to render from}}{{StructureField|number|fov|The field of view}}{{StructureField|number|aspect|The aspect ratio of the view port (Note that this is NOT set to w/h by default)}}{{StructureField|number|zfar|The distance to the far clipping plane}}{{StructureField|number|znear|The distance to the near clipping plane}}{{StructureField|boolean|subrect|Set to true if this is to draw into a subrect of the larger screen.|false}}{{StructureField|boolean|bloomtone|m_bDoBloomAndToneMapping|false}}{{StructureField|table|offcenter|A table having these keys: ( all floats )⤶ * left⤶ * right⤶ * bottom⤶ * top⤶ }}{{StructureField|table|ortho|If set, makes the view/camera orthogonal. A table having these keys: ( all floats )⤶ * left⤶ * right⤶ * bottom⤶ * top⤶ }}⤶ }}