> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GLTFCamera.h

```cpp theme={null}
/*
 * Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
 *
 * Restricted Rights Legend
 *
 * Use, duplication, or disclosure of this
 * software and its documentation by the
 * Government is subject to restrictions as
 * set forth in subdivision [(b)(3)(ii)] of
 * the Rights in Technical Data and Computer
 * Software clause at 52.227-7013.
 */
#ifndef __INCLUDED_GLTF_GLTFCAMERA__
#define __INCLUDED_GLTF_GLTFCAMERA__

#include "GLTFCommon.h"
#include "GLTFObject.h"

namespace ANSYS { namespace AVZ { namespace GLTFWriter {
 class GLTF;

 class Camera : public Object
    {
 protected:
 virtual ~Camera() {}

 public:
 static GLTFWRITERSPEC Camera *CreateOrthographic(GLTF *gltf,
 const char *name = 0,
 float xmag = 1,
 float ymag = 1,
 float zfar = 1000,
 float znear = -1000
        );
 static GLTFWRITERSPEC Camera *CreatePerspective(GLTF *gltf,
 const char *name = 0,
 float yfov = 22.619864948,
 float aspectRatio = 1,
 float zfar = 100000,
 float znear = 0.1
        );
    };

} } }

#endif
```
