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_2_BODY_SIMULATION_MAIN_H_
2#define INCLUDE_2_BODY_SIMULATION_MAIN_H_
3
7
8#include <SDL3/SDL_gpu.h>
9
11{
12 bool Init() override;
13 bool Update() override;
14 bool Draw() override;
15 void Quit() override;
16
17 bool DrawUI() override;
18
19 std::string name = "N-Body-Simulation";
20 [[nodiscard]] const std::string &GetName() override
21 {
22 return name;
23 }
24
25 SDL_GPUGraphicsPipeline *m_RenderPipeline;
26 SDL_GPUTransferBuffer *m_TransferBuffer;
27 SDL_GPUBuffer *m_DataBuffer;
28
31
33};
34
35#endif // INCLUDE_2_BODY_SIMULATION_MAIN_H_
This is a simple camera thingy for one proj only.
Definition Camera.h:8
Structure representing an project application instance.
Definition BaseProject.h:17
Definition BaseProject.h:31
Definition Main.h:11
bool Init() override
Definition Main.cpp:30
ParticleContainer m_Particles
Definition Main.h:29
SDL_GPUTransferBuffer * m_TransferBuffer
Definition Main.h:26
bool Update() override
Definition Main.cpp:99
std::string name
Definition Main.h:19
void Quit() override
Definition Main.cpp:214
void InitialiseTransferBuffersAndParticleContainer()
Definition Main.cpp:11
Camera m_Camera
Definition Main.h:30
SDL_GPUBuffer * m_DataBuffer
Definition Main.h:27
SDL_GPUGraphicsPipeline * m_RenderPipeline
Definition Main.h:25
const std::string & GetName() override
Definition Main.h:20
bool Draw() override
Definition Main.cpp:106
bool DrawUI() override
Definition Main.cpp:219
Definition Particle.h:33