Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
Rectangle.h
Go to the documentation of this file.
1#pragma once
2#include <xgl/TVertexArray.h>
3#include <xgl/global.h>
4
5namespace sf::xgl
6{
7
12class _XGL_CLASS Rectangle final : public TVertexArray<VertexArrayBase::vmPosition | VertexArrayBase::vmNormal>
13{
14 public:
15 // Use the constructors from the base class.
16 using TVertexArray::TVertexArray;
17
22 {
24 float width;
26 float height;
28 float wire_dist;
33
34 } parameters{1.0f, 0.5f, 0.05f, false, false};
35
36 protected:
40 void generate() override;
41};
42
43}// namespace sf::xgl
Class to render a rectangle in OpenGL. Height of the cone is along the Z-axis where the tip is at (0,...
Definition Rectangle.h:13
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 Rectangle.h:22
float height
Definition Rectangle.h:26
float width
Definition Rectangle.h:24
bool use_points
Definition Rectangle.h:32
bool use_single
Definition Rectangle.h:30
float wire_dist
Definition Rectangle.h:28
#define _XGL_CLASS
Definition xgl/global.h:35