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

◆ BLACK_INDEX

#define BLACK_INDEX   0

Definition at line 23 of file auxdemo.c.

◆ BLUE_INDEX

#define BLUE_INDEX   4

Definition at line 26 of file auxdemo.c.

◆ CONE

#define CONE   3

Definition at line 37 of file auxdemo.c.

◆ CYLINDER

#define CYLINDER   2

Definition at line 36 of file auxdemo.c.

◆ GLOBE

#define GLOBE   1

Definition at line 35 of file auxdemo.c.

◆ GREEN_INDEX

#define GREEN_INDEX   2

Definition at line 25 of file auxdemo.c.

◆ HEIGHT

#define HEIGHT   200

Definition at line 28 of file auxdemo.c.

◆ RED_INDEX

#define RED_INDEX   1

Definition at line 24 of file auxdemo.c.

◆ SWAPBUFFERS

#define SWAPBUFFERS   glXSwapBuffers(dpy, glwin)

Definition at line 22 of file auxdemo.c.

◆ WIDTH

#define WIDTH   300

Definition at line 27 of file auxdemo.c.

Function Documentation

◆ createObjects()

GLvoid createObjects ( )

Definition at line 162 of file auxdemo.c.

◆ drawScene()

GLvoid drawScene ( GLvoid  )

Definition at line 229 of file auxdemo.c.

◆ initializeGL()

GLvoid initializeGL ( GLsizei  width,
GLsizei  height 
)

Definition at line 191 of file auxdemo.c.

◆ main()

void main ( int  argc,
char **  argv 
)

Definition at line 53 of file auxdemo.c.

◆ polarView()

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

Definition at line 219 of file auxdemo.c.

◆ resize()

GLvoid resize ( GLsizei  width,
GLsizei  height 
)

Definition at line 148 of file auxdemo.c.

◆ WaitForMapNotify()

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

Definition at line 44 of file auxdemo.c.

Variable Documentation

◆ attributes

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.

◆ dpy

Display* dpy

Definition at line 16 of file auxdemo.c.

◆ glwin

Window glwin

Definition at line 17 of file auxdemo.c.

◆ latinc

GLfloat latinc

Definition at line 32 of file auxdemo.c.

◆ latitude

GLfloat latitude

Definition at line 32 of file auxdemo.c.

◆ longinc

GLfloat longinc

Definition at line 32 of file auxdemo.c.

◆ longitude

GLfloat longitude

Definition at line 32 of file auxdemo.c.

◆ radius

GLdouble radius

Definition at line 33 of file auxdemo.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:43