GUIPolygon2D.cpp File Reference


Detailed Description

Author:
Daniel Krajzewicz
Date:
June 2006
Version:
Id
GUIPolygon2D.cpp 8459 2010-03-17 22:02:19Z behrisch

Definition in file GUIPolygon2D.cpp.

#include <config.h>
#include <string>
#include "GUIPolygon2D.h"
#include <utils/gui/globjects/GUIGlObject.h>
#include <utils/gui/div/GUIParameterTableWindow.h>
#include <utils/gui/globjects/GUIGLObjectPopupMenu.h>
#include <utils/gui/settings/GUIVisualizationSettings.h>
#include <utils/gui/div/GLHelper.h>
#include <foreign/polyfonts/polyfonts.h>
#include <GL/gl.h>
#include <GL/glu.h>

Go to the source code of this file.

Defines

#define APIENTRY

Functions

void APIENTRY beginCallback (GLenum which)
void APIENTRY combineCallback (GLdouble coords[3], GLdouble *vertex_data[4], GLfloat weight[4], GLdouble **dataOut)
void APIENTRY endCallback (void)
void APIENTRY errorCallback (GLenum errorCode)
void APIENTRY vertexCallback (GLvoid *vertex)

Variables

double glvert [6]


Define Documentation

#define APIENTRY

Definition at line 45 of file GUIPolygon2D.cpp.

Referenced by GUIPolygon2D::drawGL().


Function Documentation

void APIENTRY beginCallback ( GLenum  which  ) 

Definition at line 107 of file GUIPolygon2D.cpp.

Referenced by GUIPolygon2D::drawGL().

00107                                           {
00108     glBegin(which);
00109 }

void APIENTRY combineCallback ( GLdouble  coords[3],
GLdouble *  vertex_data[4],
GLfloat  weight[4],
GLdouble **  dataOut 
)

Definition at line 130 of file GUIPolygon2D.cpp.

Referenced by GUIPolygon2D::drawGL().

00132                                                                      {
00133     GLdouble *vertex;
00134 
00135     vertex = (GLdouble *) malloc(7 * sizeof(GLdouble));
00136 
00137     vertex[0] = coords[0];
00138     vertex[1] = coords[1];
00139     vertex[2] = coords[2];
00140     *dataOut = vertex;
00141 }

void APIENTRY endCallback ( void   ) 

Definition at line 119 of file GUIPolygon2D.cpp.

Referenced by GUIPolygon2D::drawGL().

00119                                 {
00120     glEnd();
00121 }

void APIENTRY errorCallback ( GLenum  errorCode  ) 

Definition at line 111 of file GUIPolygon2D.cpp.

00111                                               {
00112     const GLubyte *estring;
00113 
00114     estring = gluErrorString(errorCode);
00115     fprintf(stderr, "Tessellation Error: %s\n", estring);
00116     exit(0);
00117 }

void APIENTRY vertexCallback ( GLvoid *  vertex  ) 

Definition at line 123 of file GUIPolygon2D.cpp.

00123                                              {
00124     const GLdouble *pointer;
00125 
00126     pointer = (GLdouble *) vertex;
00127     glVertex3dv((GLdouble *) vertex);
00128 }


Variable Documentation

double glvert[6]

Definition at line 143 of file GUIPolygon2D.cpp.


Generated on Wed May 5 00:06:37 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6