|
Vulkan2D
2D renderer written in C using Vulkan and SDL2
|
Represents a user's draw command which will later be processed into an instance. More...
#include <Structs.h>
Data Fields | |
| vec4 | texturePos |
| x in tex, y in tex, w in tex, and h in tex | |
| vec4 | colour |
| Colour mod of this draw. | |
| vec2 | pos |
| X/Y in game world for this instance. | |
| vec2 | origin |
| X/Y Origin of this draw. | |
| vec2 | scale |
| X/Y Scale of this draw. | |
| float | rotation |
| Rotation of the draw centered around the origin. | |
| uint32_t | textureIndex |
| Texture index for this draw (use vk2dTextureGetID) | |
Represents a user's draw command which will later be processed into an instance.