Scanframe Modular Application
0.1.0
Loading...
Searching...
No Matches
Cone.h
Go to the documentation of this file.
1
#pragma once
2
#include <
xgl/TVertexArray.h
>
3
#include <
xgl/global.h
>
4
5
namespace
sf::xgl
6
{
7
12
class
_XGL_CLASS
Cone
final :
public
TVertexArray
<VertexArrayBase::vmPosition | VertexArrayBase::vmNormal>
13
{
14
public
:
15
// Use the constructors from the base class.
16
using
TVertexArray::TVertexArray
;
17
21
struct
Parameters
22
{
24
float
height
;
26
float
angle
;
28
int
lines
;
30
int
slices
;
31
} parameters{0.5f, 30, 40, 10};
32
33
protected
:
37
void
generate
()
override
;
38
};
39
40
}
// namespace sf::xgl
TVertexArray.h
sf::xgl::Cone
Class to render a cone in OpenGL. Height of the cone is along the Z-axis where the tip is at (0,...
Definition
Cone.h:13
sf::xgl::Cone::TVertexArray
TVertexArray(ShaderProgram *sp)
Constructor.
sf::xgl::Cone::generate
void generate() override
Overridden from base class.
sf::xgl::TVertexArray::TVertexArray
TVertexArray(ShaderProgram *sp)
Constructor.
sf::xgl
Definition
DemoRenderer.h:6
sf::xgl::Cone::Parameters
Parameters for generating the data.
Definition
Cone.h:22
sf::xgl::Cone::Parameters::slices
int slices
Definition
Cone.h:30
sf::xgl::Cone::Parameters::lines
int lines
Definition
Cone.h:28
sf::xgl::Cone::Parameters::height
float height
Definition
Cone.h:24
sf::xgl::Cone::Parameters::angle
float angle
Definition
Cone.h:26
global.h
_XGL_CLASS
#define _XGL_CLASS
Definition
xgl/global.h:35
src
com
xgl
Cone.h
Generated by
1.16.1