ANSYS::Nexus::GLTFWriter::Camera Class Reference
Last update: 16.07.2025#include <GLTFWriter.h>
Inheritance diagram for ANSYS::Nexus::GLTFWriter::Camera:

Static Public Member Functions | |
| static Camera * | CreateOrthographic (GLTF *gltf, const char *name=0, float xmag=1, float ymag=1, float zfar=1000, float znear=-1000) |
| static Camera * | CreatePerspective (GLTF *gltf, const char *name=0, float yfov=22.619864948, float aspectRatio=1, float zfar=100000, float znear=0.1) |
Detailed Description
At the moment, the GLTF Viewer only cares whether the camera is Orthographic or Perspective. No camera properties are used.
- Examples
- Test001.cpp, Test004.cpp, Test006.cpp, Test007.cpp, Test008.cpp, Test009.cpp, Test012.cpp, Test013.cpp, and Test014.cpp.
Definition at line 27 of file GLTFCamera.h.
Constructor & Destructor Documentation
◆ ~Camera()
|
inlineprotectedvirtual |
Definition at line 30 of file GLTFCamera.h.
Member Function Documentation
◆ CreateOrthographic()
|
static |
Creates an orthographic camera.
- Returns
- Camera object. Do not delete this pointer.
- Parameters
-
[in] gltf GLTF object. [in] name Optional, name of camera. [in] xmag Optional, magnification in x direction (not currently used). [in] ymag Optional, magnification in y direction (not currently used). [in] zfar Optional, far clipping plane (not currently used). [in] znear Optional, near clipping plane (not currently used).
◆ CreatePerspective()
|
static |
Creates a perspective camera.
- Returns
- Camera object. Do not delete this pointer.
- Parameters
-
[in] gltf GLTF object. [in] name Optional, name of camera. [in] yfov Optional, vertical field of view in degrees (not currently used). [in] aspectRatio Optional, aspect ratio of field of view (height to width)(not currently used). [in] zfar Optional, far clipping plane (not currently used). [in] znear Optional, near clipping plane (not currently used).
The documentation for this class was generated from the following file:
- D:/Product-src/webgl_viewer/gltfwriterlib/include/GLTFCamera.h