BARE2D
BARE2D::Line Struct Reference

#include <DebugRenderer.hpp>

+ Collaboration diagram for BARE2D::Line:

Public Member Functions

void construct (glm::vec2 p0, glm::vec2 p1, float &thick, Colour &col)
 

Data Fields

glm::vec2 point0
 
glm::vec2 point1
 
float thickness
 
Colour colour
 

Detailed Description

Definition at line 12 of file DebugRenderer.hpp.

Member Function Documentation

◆ construct()

void BARE2D::Line::construct ( glm::vec2  p0,
glm::vec2  p1,
float &  thick,
Colour col 
)

Definition at line 30 of file DebugRenderer.cpp.

References colour, point0, point1, and thickness.

Referenced by BARE2D::Circle::construct(), and BARE2D::Rectangle::construct().

+ Here is the caller graph for this function:

Field Documentation

◆ colour

Colour BARE2D::Line::colour

Definition at line 18 of file DebugRenderer.hpp.

Referenced by construct().

◆ point0

glm::vec2 BARE2D::Line::point0

Definition at line 15 of file DebugRenderer.hpp.

Referenced by construct().

◆ point1

glm::vec2 BARE2D::Line::point1

Definition at line 16 of file DebugRenderer.hpp.

Referenced by construct().

◆ thickness

float BARE2D::Line::thickness

Definition at line 17 of file DebugRenderer.hpp.

Referenced by construct().


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