Macros | Functions | Variables
auxdemo.c File Reference
#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>
Include dependency graph for auxdemo.c:

Go to the source code of this file.

Macros

#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
 

Macro Definition Documentation

#define BLACK_INDEX   0

Definition at line 23 of file auxdemo.c.

#define BLUE_INDEX   4

Definition at line 26 of file auxdemo.c.

#define CONE   3

Definition at line 37 of file auxdemo.c.

#define CYLINDER   2

Definition at line 36 of file auxdemo.c.

#define GLOBE   1

Definition at line 35 of file auxdemo.c.

#define GREEN_INDEX   2

Definition at line 25 of file auxdemo.c.

#define HEIGHT   200

Definition at line 28 of file auxdemo.c.

#define RED_INDEX   1

Definition at line 24 of file auxdemo.c.

#define SWAPBUFFERS   glXSwapBuffers(dpy, glwin)

Definition at line 22 of file auxdemo.c.

#define WIDTH   300

Definition at line 27 of file auxdemo.c.

Function Documentation

GLvoid createObjects ( )

Definition at line 162 of file auxdemo.c.

GLvoid drawScene ( GLvoid  )

Definition at line 229 of file auxdemo.c.

GLvoid initializeGL ( GLsizei  width,
GLsizei  height 
)

Definition at line 191 of file auxdemo.c.

void main ( int  argc,
char **  argv 
)

Definition at line 53 of file auxdemo.c.

void polarView ( GLdouble  radius,
GLdouble  twist,
GLdouble  latitude,
GLdouble  longitude 
)

Definition at line 219 of file auxdemo.c.

GLvoid resize ( GLsizei  width,
GLsizei  height 
)

Definition at line 148 of file auxdemo.c.

static Bool WaitForMapNotify ( Display *  d,
XEvent *  e,
char *  arg 
)
static

Definition at line 44 of file auxdemo.c.

Variable Documentation

int attributes[] = {GLX_RGBA, GLX_RED_SIZE, 8, GLX_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, GLX_DEPTH_SIZE, 1, 0}
static

Definition at line 20 of file auxdemo.c.

Display* dpy

Definition at line 16 of file auxdemo.c.

Window glwin

Definition at line 17 of file auxdemo.c.

GLfloat latinc

Definition at line 32 of file auxdemo.c.

GLfloat latitude

Definition at line 32 of file auxdemo.c.

GLfloat longinc

Definition at line 32 of file auxdemo.c.

GLfloat longitude

Definition at line 32 of file auxdemo.c.

GLdouble radius

Definition at line 33 of file auxdemo.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Fri Feb 21 2020 03:20:54