Vulkan2D
2D renderer written in C using Vulkan and SDL2
Loading...
Searching...
No Matches
Camera.h
Go to the documentation of this file.
1
4#pragma once
5#include "VK2D/Structs.h"
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
17
26
31
38
43
44#ifdef __cplusplus
45}
46#endif
void vk2dCameraSetState(VK2DCameraIndex index, VK2DCameraState state)
Sets the state of a camera.
VK2DCameraIndex vk2dCameraCreate(VK2DCameraSpec spec)
Creates a new camera and returns the index, or returns VK2D_INVALID_CAMERA if no more cameras can be ...
VK2DCameraSpec vk2dCameraGetSpec(VK2DCameraIndex index)
Returns the spec of a specified camera.
VK2DCameraState vk2dCameraGetState(VK2DCameraIndex index)
Gets the state of a camera.
void vk2dCameraUpdate(VK2DCameraIndex index, VK2DCameraSpec spec)
Updates a camera with new positional data.
Forward declares struct typedefs.
VK2DCameraState
The state a camera is in.
Definition Structs.h:88
int32_t VK2DCameraIndex
Type used for referencing cameras.
Definition Structs.h:185
Camera information.
Definition Structs.h:272