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

Reflective Sphere

Analytical reflections in OpenGL

/ Source / qe_ogl.h

#ifndef _MLGL_H
#define _MLGL_H

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <GL/gl.h>
#include <GL/glu.h>

#ifdef __cplusplus
extern "C" {
#endif


//
// Globals
//


extern const char	*gl_error;

extern HWND			gl_hWnd;
extern HDC			gl_dc;
extern HGLRC		gl_rc;

extern GLsizei		gl_width, gl_height;

extern char			gl_vendor[128], gl_renderer[128], gl_version[128], *gl_extensions;

//
// Implementation
//


BOOL GL_InitGL (HWND hWnd, HDC dc);
void GL_DoneGL ();
void GL_Initialise (GLsizei width, GLsizei height);
void GL_GetDriverInfo (void);

BOOL GL_ChangeResolution (unsigned width, unsigned height, unsigned bits);
void GL_RestoreResolution (void);



////// Opengl Extension function pointers
extern void (APIENTRY *glLockArraysEXT)(int,int);
extern void (APIENTRY *glUnlockArraysEXT)();



#ifdef __cplusplus
};
#endif

#endif // _MLGL_H
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