#include <GL/glx.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <X11/keysym.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <stdio.h>
Go to the source code of this file.
Defines |
#define | BLACK_INDEX 0 |
#define | BLUE_INDEX 4 |
#define | CONE 3 |
#define | CYLINDER 2 |
#define | GLOBE 1 |
#define | GREEN_INDEX 2 |
#define | HEIGHT 200 |
#define | RED_INDEX 1 |
#define | SWAPBUFFERS glXSwapBuffers(dpy, glwin) |
#define | WIDTH 300 |
Functions |
GLvoid | createObjects () |
GLvoid | drawScene (GLvoid) |
GLvoid | initializeGL (GLsizei, GLsizei) |
void | main (int argc, char **argv) |
void | polarView (GLdouble, GLdouble, GLdouble, GLdouble) |
GLvoid | resize (GLsizei, GLsizei) |
static Bool | WaitForMapNotify (Display *d, XEvent *e, char *arg) |
Variables |
static int | attributes [] = {GLX_RGBA, GLX_RED_SIZE, 8, GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, GLX_DEPTH_SIZE, 1, 0} |
Display * | dpy |
Window | glwin |
GLfloat | latinc |
GLfloat | latitude |
GLfloat | longinc |
GLfloat | longitude |
GLdouble | radius |
Define Documentation
Function Documentation
void main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
void polarView |
( |
GLdouble |
radius, |
|
|
GLdouble |
twist, |
|
|
GLdouble |
latitude, |
|
|
GLdouble |
longitude |
|
) |
| |
GLvoid resize |
( |
GLsizei |
width, |
|
|
GLsizei |
height |
|
) |
| |
Variable Documentation
int attributes[] = {GLX_RGBA, GLX_RED_SIZE, 8, GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, GLX_DEPTH_SIZE, 1, 0} [static] |