Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
Disk.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{
10class _XGL_CLASS Disk final : public TVertexArray<VertexArrayBase::vmPosition | VertexArrayBase::vmNormal>
11{
12 public:
13 // Use the constructors from the base class.
14 using TVertexArray::TVertexArray;
15
20 {
22 float radius;
25 } parameters{0.25f, 36};
26
27 protected:
31 void generate() override;
32};
33
34}// namespace sf::xgl
Class to render a circle in OpenGL.
Definition Disk.h:11
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 Disk.h:20
int sectors
Definition Disk.h:24
float radius
Definition Disk.h:22
#define _XGL_CLASS
Definition xgl/global.h:35