Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions | Variables
sphere Namespace Reference

Classes

struct  vert
 

Functions

void init (int slices, int stacks)
 
void enable ()
 
void draw ()
 
void disable ()
 
void cleanup ()
 

Variables

struct sphere::vertverts = nullptr
 
GLushort * indices = nullptr
 
int numverts = 0
 
int numindices = 0
 
GLuint vbuf = 0
 
GLuint ebuf = 0
 

Class Documentation

struct sphere::vert
Class Members
vec pos
ushort s
ushort t

Function Documentation

void sphere::cleanup ( )

References ebuf, glDeleteBuffers_, and vbuf.

Referenced by fireballrenderer::cleanup().

void sphere::disable ( )
void sphere::draw ( )
void sphere::enable ( )
void sphere::init ( int  slices,
int  stacks 
)

Variable Documentation

GLuint sphere::ebuf = 0
GLushort* sphere::indices = nullptr
int sphere::numindices = 0

Referenced by draw(), and init().

int sphere::numverts = 0
GLuint sphere::vbuf = 0
struct sphere::vert * sphere::verts = nullptr