Assimp  v4.1. (December 2018)
glTF::Camera Struct Reference

Inherits glTF::Object.

Public Types

enum  Type { Perspective , Orthographic }
 

Public Member Functions

 Camera ()
 
void Read (Value &obj, Asset &r)
 
- Public Member Functions inherited from glTF::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
 
}; 
 
Type type
 
- Public Attributes inherited from glTF::Object
std::string id
 The globally unique ID used to reference this object. More...
 
std::string name
 The user-defined name of this object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from glTF::Object
static const char * TranslateId (Asset &, const char *id)
 Maps special IDs to another ID, where needed. Subclasses may override it (statically) More...
 

Member Enumeration Documentation

◆ Type

Enumerator
Perspective 
Orthographic 

Constructor & Destructor Documentation

◆ Camera()

glTF::Camera::Camera ( )
inline

Member Function Documentation

◆ Read()

void Camera::Read ( Value obj,
Asset r 
)
inline

Member Data Documentation

◆ 

union { ... }

◆ aspectRatio

float glTF::Camera::aspectRatio

The floating - point aspect ratio of the field of view. (0 = undefined = use the canvas one)

◆ 

struct { ... } glTF::Camera::ortographic

◆ 

struct { ... } glTF::Camera::perspective

◆ type

Type glTF::Camera::type

◆ xmag

float glTF::Camera::xmag

◆ yfov

float glTF::Camera::yfov

The floating - point vertical field of view in radians. (required)

◆ ymag

float glTF::Camera::ymag

The floating-point horizontal magnification of the view. (required)

◆ zfar

float glTF::Camera::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: