|
Assimp
v4.1. (December 2018)
|
Inherits glTF2::Object.
Public Types | |
| enum | Type { Perspective, Orthographic } |
Public Member Functions | |
| Camera () | |
| void | Read (Value &obj, Asset &r) |
Public Member Functions inherited from glTF2::Object | |
| virtual bool | IsSpecial () const |
| Objects marked as special are not exported (used to emulate the binary body buffer) More... | |
| virtual | ~Object () |
Public Attributes | |
| 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 | |
| } | cameraProperties |
| Type | type |
Public Attributes inherited from glTF2::Object | |
| std::string | id |
| The globally unique ID used to reference this object. More... | |
| int | index |
| The index of this object within its property container. More... | |
| std::string | name |
| The user-defined name of this object. More... | |
| int | oIndex |
| The original index of this object defined in the JSON. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from glTF2::Object | |
| static const char * | TranslateId (Asset &, const char *id) |
| Maps special IDs to another ID, where needed. Subclasses may override it (statically) More... | |
| enum glTF2::Camera::Type |
|
inline |
| float glTF2::Camera::aspectRatio |
The floating - point aspect ratio of the field of view. (0 = undefined = use the canvas one)
| union { ... } glTF2::Camera::cameraProperties |
| struct { ... } glTF2::Camera::ortographic |
| struct { ... } glTF2::Camera::perspective |
| Type glTF2::Camera::type |
| float glTF2::Camera::xmag |
| float glTF2::Camera::yfov |
The floating - point vertical field of view in radians. (required)
| float glTF2::Camera::ymag |
The floating-point horizontal magnification of the view. (required)
| float glTF2::Camera::zfar |
The floating - point distance to the far clipping plane. (required)
The floating-point vertical magnification of the view. (required)
| float glTF2::Camera::znear |
The floating - point distance to the near clipping plane. (required)
The floating-point distance to the far clipping plane. (required)