Ankush's Garage
A collection of stuff made by Ankush Roy
Loading...
Searching...
No Matches
Triangle Class Reference

#include <Triangle.h>

Inheritance diagram for Triangle:
Common::BaseProject

Private Member Functions

bool Init () override
 
bool Update () override
 
bool Draw () override
 
void Quit () override
 
const std::string & getName () override
 

Private Attributes

std::string name = "Triangle"
 

Static Private Attributes

static SDL_GPUViewport SmallViewport = {160, 120, 320, 240, 0.1f, 1.0f}
 
static SDL_Rect ScissorRect = {320, 240, 320, 240}
 
static SDL_GPUGraphicsPipeline * FillPipeline {}
 
static SDL_GPUGraphicsPipeline * LinePipeline {}
 
static bool UseWireframeMode = false
 
static bool UseSmallViewport = false
 
static bool UseScissorRect = false
 

Additional Inherited Members

- Public Member Functions inherited from Common::BaseProject
virtual ~BaseProject ()=default
 
- Static Public Attributes inherited from Common::BaseProject
static bool hasUI = false
 

Member Function Documentation

◆ Draw()

bool Triangle::Draw ( )
overrideprivatevirtual

Implements Common::BaseProject.

◆ getName()

const std::string & Triangle::getName ( )
inlinenodiscardoverrideprivatevirtual

Implements Common::BaseProject.

◆ Init()

bool Triangle::Init ( )
overrideprivatevirtual

Implements Common::BaseProject.

◆ Quit()

void Triangle::Quit ( )
overrideprivatevirtual

Implements Common::BaseProject.

◆ Update()

bool Triangle::Update ( )
overrideprivatevirtual

Implements Common::BaseProject.

Member Data Documentation

◆ FillPipeline

SDL_GPUGraphicsPipeline * Triangle::FillPipeline {}
staticprivate

◆ LinePipeline

SDL_GPUGraphicsPipeline * Triangle::LinePipeline {}
staticprivate

◆ name

std::string Triangle::name = "Triangle"
private

◆ ScissorRect

SDL_Rect Triangle::ScissorRect = {320, 240, 320, 240}
staticprivate

◆ SmallViewport

SDL_GPUViewport Triangle::SmallViewport = {160, 120, 320, 240, 0.1f, 1.0f}
staticprivate

◆ UseScissorRect

bool Triangle::UseScissorRect = false
staticprivate

◆ UseSmallViewport

bool Triangle::UseSmallViewport = false
staticprivate

◆ UseWireframeMode

bool Triangle::UseWireframeMode = false
staticprivate

The documentation for this class was generated from the following files: