Shader program having a default vertex and fragment shader.
Definition ShaderProgram.h:13
Class to render a sphere in OpenGL. Center of the sphere is in (0,0,0). Has a single color.
Definition Sphere.h:14
Sphere(ShaderProgram *sp)
Qt constructor only accepting a shader program.
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 Sphere.h:20
float radius
Definition Sphere.h:24
int stacks_used
Definition Sphere.h:30
unsigned sectors
Definition Sphere.h:28
unsigned stacks
Definition Sphere.h:26
#define _XGL_CLASS
Definition xgl/global.h:35