Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
Axes.h
Go to the documentation of this file.
1#pragma once
2#include <xgl/Color.h>
3#include <xgl/TVertexArray.h>
4#include <xgl/global.h>
5
6namespace sf::xgl
7{
8
14class _XGL_CLASS Axes final : public TVertexArray<VertexArrayBase::vmPosition>
15{
16 public:
17 // Use the constructors from the base class.
18 using TVertexArray::TVertexArray;
19
24 {
26 float length;
27 } parameters{2.0f};
28
29 protected:
33 void generate() override;
34};
35
36}// namespace sf::xgl
Class to render axis lines in OpenGL. All axis have the same color. Length is both positive and negat...
Definition Axes.h:15
void generate() override
Overridden from base class.
OpenGL base class and wrapper template for vertex arrays. Automates most of the things needed for pri...
Definition TVertexArray.h:20
Definition DemoRenderer.h:6
Parameters for generating the data.
Definition Axes.h:24
float length
Definition Axes.h:26
#define _XGL_CLASS
Definition xgl/global.h:35