GLutils.cpp File Reference

Implementation for OpenGL-related utility classes/functions. More...

#include "standard.h"
#include <windows.h>
#include <GL/glu.h>
#include "GLutils.h"
#include <assert.h>

Include dependency graph for GLutils.cpp:

Include dependency graph

Go to the source code of this file.

Functions

void printBitmapString (const char *str, HDC hdc)
 Prints a string to an opengl-friendly screen. More...

void drawCube (GLfloat size, GLenum type)
 Draws a cube. This is based on glut's "glutSolidCube()" routine.


Detailed Description

Implementation for OpenGL-related utility classes/functions.

Author: Matt Loper

Revision:
1.2
Date:
2002/05/21 05:32:43

Definition in file GLutils.cpp.


Function Documentation

void printBitmapString const char *    str,
HDC    hdc
 

Prints a string to an opengl-friendly screen.

Todo:
To write a string, we use display lists, which we would ideally create only once. However, since we may be talking to multiple device contexts, it's a little hard to predict whether we've built the list for a particular context. Anyway, it'd be nice to just build the display list once for each context, instead of putting it up and tearing it down each time.

Definition at line 29 of file GLutils.cpp.

Referenced by Scanner::takeSnapshots().


Generated on Tue May 21 03:34:54 2002 for Archimedes by doxygen1.2.15