NWengine 0.9
Loading...
Searching...
No Matches
Quad Class Reference

The Quad class represents a quad shape. More...

#include <Primitives.h>

Public Member Functions

void UpdateSize (float width, float height)
 Updates the size of the quad.
 
 Quad (float width=1.0f, float height=1.0f)
 Constructs a new Quad object.
 
void Draw ()
 Draws the quad.
 

Public Attributes

int width = 0
 
int height = 0
 

Detailed Description

The Quad class represents a quad shape.

Constructor & Destructor Documentation

◆ Quad()

Quad::Quad ( float width = 1.0f,
float height = 1.0f )

Constructs a new Quad object.

Parameters
widthThe width of the quad.
heightThe height of the quad.

Member Function Documentation

◆ UpdateSize()

void Quad::UpdateSize ( float width,
float height )

Updates the size of the quad.

Parameters
widthThe new width of the quad.
heightThe new height of the quad.

Member Data Documentation

◆ height

int Quad::height = 0

The height of the quad.

◆ width

int Quad::width = 0

The width of the quad.


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