15 using TVertexArray::TVertexArray;
34 } parameters{0.25f, 0.3f, 0.05f, 36, 7};
Class to render a donut around the z-axis in OpenGL. Uses sectors and stacks for the generation of po...
Definition Donut.h:12
void generate() override
Overridden from base class.
void setSize(float height, float radius)
OpenGL base class and wrapper template for vertex arrays. Automates most of the things needed for pri...
Definition TVertexArray.h:19
Definition DemoRenderer.h:6
Parameters for generating the data.
Definition Donut.h:23
float height
Height of the donut.
Definition Donut.h:29
float outerRadius
Outer radius of the donut.
Definition Donut.h:27
int sectors
Number of sectors.
Definition Donut.h:31
int stacks
Number of stacks.
Definition Donut.h:33
float innerRadius
Inner radius of the donut.
Definition Donut.h:25
#define _XGL_CLASS
Definition xgl/global.h:35