Functions | Variables

test/sphere.cpp File Reference

#include <iostream>
#include <fstream>
#include "glut/frustum.h"
#include "glut/texture.h"
#include "glut-demo/glut-demo.h"
#include "opengl-effects/opengl-effects.h"
#include "perf/perf.h"
Include dependency graph for test/sphere.cpp:

Go to the source code of this file.

Functions

static float randomX (float x)
static void jitter (point3d_t &p, float dx) throw ()
static void checkLimit (float &x, float &v) throw ()
static void drawLightningRing (const point3d_t &center, float radius, const point3d_t &axis, float phi, const glut_color_t &color) throw ()
static int compareSpheres (const void *p1, const void *p2) throw ()
static void drawCoolSphere (const cool_sphere_t &sphere, const glut::render_context_t &rc, glut::RenderQueue *rq) throw ()
int main (int argc, const char *argv[])

Variables

static const float s_bounds = 20.0
static const int s_nRings = 7

Function Documentation

static float randomX ( float  x  )  [static]

Definition at line 35 of file test/sphere.cpp.

static void jitter ( point3d_t p,
float  dx 
) throw () [static]

Definition at line 46 of file test/sphere.cpp.

static void checkLimit ( float &  x,
float &  v 
) throw () [static]

Definition at line 61 of file test/sphere.cpp.

static void drawLightningRing ( const point3d_t center,
float  radius,
const point3d_t axis,
float  phi,
const glut_color_t color 
) throw () [static]

Definition at line 109 of file test/sphere.cpp.

static int compareSpheres ( const void *  p1,
const void *  p2 
) throw () [static]

Definition at line 240 of file test/sphere.cpp.

static void drawCoolSphere ( const cool_sphere_t &  sphere,
const glut::render_context_t rc,
glut::RenderQueue rq 
) throw () [static]

Definition at line 261 of file test/sphere.cpp.

int main ( int  argc,
const char *  argv[] 
)

Definition at line 447 of file test/sphere.cpp.


Variable Documentation

const float s_bounds = 20.0 [static]

Definition at line 22 of file test/sphere.cpp.

const int s_nRings = 7 [static]

Definition at line 24 of file test/sphere.cpp.