SUMO - Simulation of Urban MObility
gl2psTest.c File Reference
#include "gl2ps.h"
#include <string.h>
#include <GL/glut.h>
Include dependency graph for gl2psTest.c:

Go to the source code of this file.

Functions

void cube ()
 
void display ()
 
void draw_multi ()
 
void draw_single ()
 
void extras ()
 
void image (float x, float y, GLboolean opaque)
 
void keyboard (unsigned char key, int x, int y)
 
int main (int argc, char **argv)
 
void motion (int x, int y)
 
void objects ()
 
void printstring (const char *string, float angle)
 
void reshape (int w, int h)
 
void text ()
 
void triangles ()
 
void writefile (int format, int sort, int options, int nbcol, const char *filename, const char *extension)
 

Variables

static GLboolean blend = GL_FALSE
 
static GLboolean display_multi = GL_TRUE
 
static const char * format_string = "Postscript"
 
static const char * pixmap []
 
static float rotation = -58.
 
static GLboolean teapot = GL_FALSE
 
static GLsizei window_h = 0
 
static GLsizei window_w = 0
 

Function Documentation

void cube ( )

Definition at line 299 of file gl2psTest.c.

Referenced by draw_multi().

void display ( void  )

Definition at line 461 of file gl2psTest.c.

References blend, display_multi, draw_multi(), and draw_single().

Referenced by keyboard(), main(), motion(), and writefile().

void draw_multi ( )
void draw_single ( )

Definition at line 389 of file gl2psTest.c.

References extras(), objects(), text(), triangles(), window_h, and window_w.

Referenced by display().

void extras ( )

Definition at line 158 of file gl2psTest.c.

References GL2PS_LINE_STIPPLE, gl2psDisable(), gl2psEnable(), gl2psLineWidth(), and gl2psPointSize().

Referenced by draw_multi(), and draw_single().

void image ( float  x,
float  y,
GLboolean  opaque 
)

Definition at line 335 of file gl2psTest.c.

References gl2psDrawPixels(), and pixmap.

Referenced by draw_multi(), and gl2psCopyPixmap().

int main ( int  argc,
char **  argv 
)

Definition at line 621 of file gl2psTest.c.

References display(), keyboard(), motion(), and reshape().

void motion ( int  x,
int  y 
)

Definition at line 615 of file gl2psTest.c.

References display(), and rotation.

Referenced by main().

void objects ( )

Definition at line 227 of file gl2psTest.c.

References rotation, and teapot.

Referenced by draw_multi(), and draw_single().

void printstring ( const char *  string,
float  angle 
)

Definition at line 243 of file gl2psTest.c.

References GL2PS_TEXT_BL, and gl2psTextOpt().

Referenced by text().

void reshape ( int  w,
int  h 
)

Definition at line 488 of file gl2psTest.c.

References window_h, and window_w.

Referenced by keyboard(), and main().

void triangles ( )
void writefile ( int  format,
int  sort,
int  options,
int  nbcol,
const char *  filename,
const char *  extension 
)

Definition at line 503 of file gl2psTest.c.

References display(), GL2PS_OVERFLOW, gl2psBeginPage(), gl2psEndPage(), window_h, and window_w.

Referenced by keyboard().

Variable Documentation

GLboolean blend = GL_FALSE
static

Definition at line 66 of file gl2psTest.c.

Referenced by display(), and keyboard().

GLboolean display_multi = GL_TRUE
static

Definition at line 65 of file gl2psTest.c.

Referenced by display(), and keyboard().

const char* format_string = "Postscript"
static

Definition at line 61 of file gl2psTest.c.

Referenced by keyboard(), and text().

const char* pixmap[]
static

Definition at line 68 of file gl2psTest.c.

Referenced by gl2psFreePixmap(), and image().

float rotation = -58.
static

Definition at line 62 of file gl2psTest.c.

Referenced by draw_multi(), motion(), and objects().

GLboolean teapot = GL_FALSE
static

Definition at line 67 of file gl2psTest.c.

Referenced by keyboard(), and objects().

GLsizei window_h = 0
static

Definition at line 64 of file gl2psTest.c.

Referenced by draw_multi(), draw_single(), keyboard(), reshape(), and writefile().

GLsizei window_w = 0
static

Definition at line 63 of file gl2psTest.c.

Referenced by draw_multi(), draw_single(), keyboard(), reshape(), and writefile().