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
4
#include "
Projects/Common/BaseProject.h
"
5
#include "
Projects/Boids/src/Boids.h
"
6
#include "
Core/Common/pch.h
"
7
8
typedef
struct
SpriteInstance
9
{
10
float
x
,
y
,
z
;
11
float
rotation
;
12
float
r
,
g
,
b
,
a
;
13
}
SpriteInstance
;
14
15
typedef
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
;
21
}
Matrix4x4
;
22
23
Matrix4x4
Matrix4x4_CreateOrthographicOffCenter
(
24
float
left,
float
right,
float
bottom,
float
top,
float
zNearPlane,
float
zFarPlane);
25
26
class
Boids
:
public
Common::BaseProject
,
public
Common::ImGuiUI
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
45
BoidsContainer
boidsContainer
{};
46
};
47
48
#endif
// INCLUDE_SRC_MAIN_H_
BaseProject.h
Boids.h
Matrix4x4_CreateOrthographicOffCenter
Matrix4x4 Matrix4x4_CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane)
Definition
Main.cpp:85
BoidsContainer
Definition
Boids.h:14
Boids
Definition
Main.h:27
Boids::Init
bool Init() override
Definition
Main.cpp:7
Boids::Draw
bool Draw() override
Definition
Main.cpp:111
Boids::boidsDataTransferBuffer
SDL_GPUTransferBuffer * boidsDataTransferBuffer
Definition
Main.h:42
Boids::Quit
void Quit() override
Definition
Main.cpp:219
Boids::Update
bool Update() override
Definition
Main.cpp:78
Boids::boidsDataBuffer
SDL_GPUBuffer * boidsDataBuffer
Definition
Main.h:43
Boids::boidsContainer
BoidsContainer boidsContainer
Definition
Main.h:45
Boids::DrawUI
bool DrawUI() override
Definition
Main.cpp:226
Boids::renderPipeline
SDL_GPUGraphicsPipeline * renderPipeline
Definition
Main.h:41
Boids::name
std::string name
Definition
Main.h:33
Boids::getName
const std::string & getName() override
Definition
Main.h:34
Common::BaseProject
Structure representing an project application instance.
Definition
BaseProject.h:16
Common::ImGuiUI
Definition
BaseProject.h:30
pch.h
Matrix4x4
Definition
Main.h:16
Matrix4x4::m14
float m14
Definition
Main.h:17
Matrix4x4::m21
float m21
Definition
Main.h:18
Matrix4x4::m24
float m24
Definition
Main.h:18
Matrix4x4::m41
float m41
Definition
Main.h:20
Matrix4x4::m42
float m42
Definition
Main.h:20
Matrix4x4::m44
float m44
Definition
Main.h:20
Matrix4x4::m12
float m12
Definition
Main.h:17
Matrix4x4::m43
float m43
Definition
Main.h:20
Matrix4x4::m32
float m32
Definition
Main.h:19
Matrix4x4::m23
float m23
Definition
Main.h:18
Matrix4x4::m11
float m11
Definition
Main.h:17
Matrix4x4::m33
float m33
Definition
Main.h:19
Matrix4x4::m34
float m34
Definition
Main.h:19
Matrix4x4::m31
float m31
Definition
Main.h:19
Matrix4x4::m13
float m13
Definition
Main.h:17
Matrix4x4::m22
float m22
Definition
Main.h:18
SpriteInstance
Definition
Main.h:9
SpriteInstance::r
float r
Definition
Main.h:12
SpriteInstance::rotation
float rotation
Definition
Main.h:11
SpriteInstance::y
float y
Definition
Main.h:10
SpriteInstance::b
float b
Definition
Main.h:12
SpriteInstance::x
float x
Definition
Main.h:10
SpriteInstance::z
float z
Definition
Main.h:10
SpriteInstance::a
float a
Definition
Main.h:12
SpriteInstance::g
float g
Definition
Main.h:12
src
Projects
Boids
src
Main.h
Generated by
1.13.2