home dev games gallery work
Lewpen.com»Research & Development»3D Graphics»OpenGL»Reflective Sphere

Reflective Sphere

Analytical reflections in OpenGL

/ Source / common / 001 / stack.h

/*

  Implements simple stacks for storing and retrieving variables

  Used for the environment vars for the functions


*/



#ifndef __STACK_H__
#define __STACK_H__




#define STACK_MAXLENGTH 1024*32




void stack_push_double( double* the_env_var, double newValue );
void stack_pop_double( double* the_env_var );

void stack_push_int( int* the_env_var, int newValue );
void stack_pop_int( int* the_env_var );

void stack_push_ptr( void** the_env_var, void* newValue );
void stack_pop_ptr( void** the_env_var );




#endif
Related Articles

Procedural city block layout

Animated 4-dimensional objects mapped down to 3D

Simulating a cloth falling and slipping over objects

Windows C++ OpenGL example

Games

The Dodge Game
Flatspace

2-Player Games:

Quake 2D
Meteora

Puzzle Games:

Mini Tetris
Sudoku Solver

Development

3D Graphics:

3D Graphics Articles
WebGL Examples
OpenGL Examples
Flash 3D Engine
Java 3D Engine

Development:

Programming Articles
Game Development Examples

Work

Portfolio
Clients
Startups & Projects
Expertise

Links

CubeLogix Studios
PHP Charts & Graphs
Local Legends Football