Functions | Variables

test/sphere.cpp File Reference

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

Go to the source code of this file.

Functions

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

Variables

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

Function Documentation

static float randomX ( IN float  x  )  [static]

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

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

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

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

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

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

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

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

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

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

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

int main ( IN int  argc,
IN 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.