|
JMGraphics
|
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 | |
| JMGraphics * | parent = nullptr |
Object that stores an array of lines and can render them much more efficiently than calling line() multiple times.