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

Reflective Sphere

Analytical reflections in OpenGL

/ Source / Pattern.h

#include <windows.h>



typedef struct _PATTERN_A {
  unsigned char buf[256][256];
} PATTERN_A;

typedef struct _PATTERN_RGB {
  unsigned char buf[256][256][3];
} PATTERN_RGB;



void Pattern_Startup();

void Pattern_Display(HDC dc, PATTERN_RGB *rgb);

PATTERN_A *Pattern_Create_A();
PATTERN_RGB *Pattern_Create_RGB();

void Pattern_Fn_A_Plasma1(PATTERN_A *a, int time);
void Pattern_Fn_A_Plasma2(PATTERN_A *a, int time);
void Pattern_Fn_A_Plasma3(PATTERN_A *a, int time);

void Pattern_Fn_RGB_A(PATTERN_RGB *rgb, PATTERN_A *a);
void Pattern_Fn_RGB_A3(PATTERN_RGB *rgb, PATTERN_A *a1, PATTERN_A *a2, PATTERN_A *a3);
void Pattern_Fn_RGB2_A2_Lookup(PATTERN_RGB *rgb1, PATTERN_RGB *rgb2, PATTERN_A *a1, PATTERN_A *a2);
void Pattern_Fn_A2_A2_Lookup(PATTERN_A *aa1, PATTERN_A *aa2, PATTERN_A *a1, PATTERN_A *a2);

void Pattern_Fn_A_Checkers(PATTERN_A *a);
void Pattern_Fn_RGB_Checkers(PATTERN_RGB *rgb);
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