Inherits glTF::Object.
|
| union { |
| struct { |
| float xmag |
| |
| float ymag |
| | The floating-point horizontal magnification of the view. (required) More...
|
| |
| float zfar |
| | The floating-point vertical magnification of the view. (required) More...
|
| |
| float znear |
| | The floating-point distance to the far clipping plane. (required) More...
|
| |
| } ortographic |
| |
| struct { |
| float aspectRatio |
| | The floating - point aspect ratio of the field of view. (0 = undefined = use the canvas one) More...
|
| |
| float yfov |
| | The floating - point vertical field of view in radians. (required) More...
|
| |
| float zfar |
| | The floating - point distance to the far clipping plane. (required) More...
|
| |
| float znear |
| | The floating - point distance to the near clipping plane. (required) More...
|
| |
| } perspective |
| |
| }; | |
| |
| Type | type |
| |
| std::string | id |
| | The globally unique ID used to reference this object. More...
|
| |
| std::string | name |
| | The user-defined name of this object. More...
|
| |
|
| static const char * | TranslateId (Asset &, const char *id) |
| | Maps special IDs to another ID, where needed. Subclasses may override it (statically) More...
|
| |
◆ Type
| Enumerator |
|---|
| Perspective | |
| Orthographic | |
◆ Camera()
◆ Read()
◆ @9
◆ aspectRatio
| float glTF::Camera::aspectRatio |
The floating - point aspect ratio of the field of view. (0 = undefined = use the canvas one)
◆ ortographic
| struct { ... } glTF::Camera::ortographic |
◆ perspective
| struct { ... } glTF::Camera::perspective |
◆ type
◆ xmag
◆ yfov
The floating - point vertical field of view in radians. (required)
◆ ymag
The floating-point horizontal magnification of the view. (required)
◆ zfar
The floating - point distance to the far clipping plane. (required)
The floating-point vertical magnification of the view. (required)
◆ znear
| float glTF::Camera::znear |
The floating - point distance to the near clipping plane. (required)
The floating-point distance to the far clipping plane. (required)
The documentation for this struct was generated from the following files: