JMGraphics
Loading...
Searching...
No Matches
JMGraphics::LineArray Class Reference

Object that stores an array of lines and can render them much more efficiently than calling line() multiple times. More...

#include <JMGraphics.h>

Public Member Functions

 LineArray (JMGraphics *Parent)
 LineArray (const LineArray &)=delete
LineArray & operator= (const LineArray &)=delete
 LineArray (LineArray &&)=default
LineArray & operator= (LineArray &&)=default
bool addLine (glm::vec3 start, glm::vec3 end)
bool addLine (glm::vec3 start, glm::vec3 end, glm::vec4 color)
void clearLines ()
void display ()
int totalLines () const

Public Attributes

JMGraphicsparent = nullptr

Detailed Description

Object that stores an array of lines and can render them much more efficiently than calling line() multiple times.


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