Ankush's Garage
A collection of stuff made by Ankush Roy
Loading...
Searching...
No Matches
Triangle.h
Go to the documentation of this file.
1#ifndef INCLUDE_TRIANGLE_TRIANGLE_H_
2
3#define INCLUDE_TRIANGLE_TRIANGLE_H_
4
6#include <SDL3/SDL_gpu.h>
7
9{
10 static SDL_GPUViewport SmallViewport;
11 static SDL_Rect ScissorRect;
13 static SDL_GPUGraphicsPipeline *FillPipeline;
14 static SDL_GPUGraphicsPipeline *LinePipeline;
16 static bool UseWireframeMode;
17 static bool UseSmallViewport;
18 static bool UseScissorRect;
19
20 bool Init() override;
21 bool Update() override;
22 bool Draw() override;
23 void Quit() override;
24
25 std::string name = "Triangle";
26 [[nodiscard]] const std::string &getName() override {
27 return name;
28 }
29};
30
31#endif // INCLUDE_TRIANGLE_TRIANGLE_H_
Structure representing an project application instance.
Definition BaseProject.h:16
Definition Triangle.h:9
const std::string & getName() override
Definition Triangle.h:26
static SDL_GPUGraphicsPipeline * FillPipeline
Definition Triangle.h:14
bool Draw() override
Definition Triangle.cpp:84
static bool UseSmallViewport
Definition Triangle.h:17
bool Update() override
Definition Triangle.cpp:72
void Quit() override
Definition Triangle.cpp:149
static bool UseScissorRect
Definition Triangle.h:18
bool Init() override
Definition Triangle.cpp:21
std::string name
Definition Triangle.h:25
static bool UseWireframeMode
Definition Triangle.h:16
static SDL_GPUGraphicsPipeline * LinePipeline
Definition Triangle.h:15
static SDL_Rect ScissorRect
Definition Triangle.h:12
static SDL_GPUViewport SmallViewport
Definition Triangle.h:11