Ankush's Garage
A collection of stuff made by Ankush Roy
Loading...
Searching...
No Matches
Main.h
Go to the documentation of this file.
1#ifndef INCLUDE_SRC_MAIN_H_
2#define INCLUDE_SRC_MAIN_H_
3
6#include "Core/Common/pch.h"
7
8typedef struct SpriteInstance
9{
10 float x, y, z;
11 float rotation;
12 float r, g, b, a;
14
15typedef struct Matrix4x4
16{
17 float m11, m12, m13, m14;
18 float m21, m22, m23, m24;
19 float m31, m32, m33, m34;
20 float m41, m42, m43, m44;
22
24 float left, float right, float bottom, float top, float zNearPlane, float zFarPlane);
25
27{
28 bool Init() override;
29 bool Update() override;
30 bool Draw() override;
31 void Quit() override;
32
33 std::string name = "Boids";
34 [[nodiscard]] const std::string &getName() override
35 {
36 return name;
37 }
38
39 bool DrawUI() override;
40
41 SDL_GPUGraphicsPipeline *renderPipeline;
42 SDL_GPUTransferBuffer *boidsDataTransferBuffer;
43 SDL_GPUBuffer *boidsDataBuffer;
44
46};
47
48#endif // INCLUDE_SRC_MAIN_H_
Matrix4x4 Matrix4x4_CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane)
Definition Main.cpp:85
Definition Boids.h:14
Definition Main.h:27
bool Init() override
Definition Main.cpp:7
bool Draw() override
Definition Main.cpp:111
SDL_GPUTransferBuffer * boidsDataTransferBuffer
Definition Main.h:42
void Quit() override
Definition Main.cpp:219
bool Update() override
Definition Main.cpp:78
SDL_GPUBuffer * boidsDataBuffer
Definition Main.h:43
BoidsContainer boidsContainer
Definition Main.h:45
bool DrawUI() override
Definition Main.cpp:226
SDL_GPUGraphicsPipeline * renderPipeline
Definition Main.h:41
std::string name
Definition Main.h:33
const std::string & getName() override
Definition Main.h:34
Structure representing an project application instance.
Definition BaseProject.h:16
Definition BaseProject.h:30
Definition Main.h:16
float m14
Definition Main.h:17
float m21
Definition Main.h:18
float m24
Definition Main.h:18
float m41
Definition Main.h:20
float m42
Definition Main.h:20
float m44
Definition Main.h:20
float m12
Definition Main.h:17
float m43
Definition Main.h:20
float m32
Definition Main.h:19
float m23
Definition Main.h:18
float m11
Definition Main.h:17
float m33
Definition Main.h:19
float m34
Definition Main.h:19
float m31
Definition Main.h:19
float m13
Definition Main.h:17
float m22
Definition Main.h:18
Definition Main.h:9
float r
Definition Main.h:12
float rotation
Definition Main.h:11
float y
Definition Main.h:10
float b
Definition Main.h:12
float x
Definition Main.h:10
float z
Definition Main.h:10
float a
Definition Main.h:12
float g
Definition Main.h:12