KROYSDOCS
HomeWhat's newv0.1.0
C/C++ SDK / C ABI · Viewport (editor, 2.1; capability viewport-tools) / KroysCameraInfo

KroysCameraInfo

The editor viewport camera (viewport->GetCamera).

Kindstruct
Headerkroys/kroys_plugin.h
Members6
DECLARATION

Declaration

Declared in kroys/kroys_plugin.h.

kroys_plugin.h
typedef struct KroysCameraInfo { ... } KroysCameraInfo;
REFERENCE

Members

Fields
#uint32_t structSize;

Size of this struct as the writer compiled it (sizeof); the reader uses it to detect members appended by later minor versions.

field
#int32_t orthographic;

Nonzero for an orthographic view.

field
#float position[3];

Camera position (world).

field
#float viewProjection[16];

column-major

field
#float viewportWidth;

Viewport image width in pixels.

field
#float viewportHeight;

Viewport image height in pixels.

field
Members
uint32_t structSize;
int32_t orthographic;
float position[3];
float viewProjection[16];
float viewportWidth;
float viewportHeight;

KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.