|
Overture
Version 25
|
#include "GL_GraphicsInterface.h"#include <assert.h>#include <math.h>#include <stdio.h>#include <stdlib.h>
Classes | |
| struct | _Feedback3Dcolor |
| struct | _DepthIndex |
Macros | |
| #define | depthr(i, j) depthBuffer[i+width*(height-j-1)] |
| #define | depth(i, j) depthBuffer[i+width*j] |
| #define | EPS_GOURAUD_THRESHOLD 0.1 /* Lower for better (slower) smooth shading. */ |
Typedefs | |
| typedef struct _Feedback3Dcolor | Feedback3Dcolor |
| typedef struct _DepthIndex | DepthIndex |
Functions | |
| void | print3DcolorVertex (GLint size, GLint *count, GLfloat *buffer) |
| void | printBuffer (GLint size, GLfloat *buffer) |
| GLfloat * | spewPrimitiveEPS (FILE *file, GLfloat *loc, const int &plotPolygons=TRUE) |
| void | spewUnsortedFeedback (FILE *file, GLint size, GLfloat *buffer) |
| void | spewSortedFeedback (FILE *file, GLint size, GLfloat *buffer) |
| void | spewWireFrameEPS (FILE *file, int doSort, GLint size, GLfloat *buffer, char *creator) |
| void | display (void) |
| void | init (void) |
Variables | |
| GLfloat | pointSize |
| #define depth | ( | i, | |
| j | |||
| ) | depthBuffer[i+width*j] |
Referenced by __GeometricADTiterator< dataT >__GeometricADTiterator(), __GeometricADTtraversor< dataT >__GeometricADTtraversor(), GeometricADT3dInt::delElement(), GeometricADT< dataT >::delElement(), GeometricADTIterator3dInt::GeometricADTIterator3dInt(), GeometricADTIterator3dInt::getDepth(), __GeometricADTiterator< dataT >::getDepth(), GeometricADTTraversor3dInt::getDepth(), __GeometricADTtraversor< dataT >::getDepth(), GeometricADTIterator3dInt::isTerminal(), __GeometricADTiterator< dataT >::isTerminal(), __GeometricADTiterator< dataT >::operator++(), __GeometricADTtraversor< dataT >::operator++(), __GeometricADTiterator< dataT >::operator=(), __GeometricADTtraversor< dataT >::operator=(), DepthMapping::put(), MappingsFromCAD::readSomeNurbs(), __GeometricADTtraversor< dataT >::setTarget(), and spewPrimitiveEPS().
| #define depthr | ( | i, | |
| j | |||
| ) | depthBuffer[i+width*(height-j-1)] |
| #define EPS_GOURAUD_THRESHOLD 0.1 /* Lower for better (slower) smooth shading. */ |
Referenced by spewWireFrameEPS().
| typedef struct _DepthIndex DepthIndex |
| typedef struct _Feedback3Dcolor Feedback3Dcolor |
| void display | ( | void | ) |
| void init | ( | void | ) |
| void print3DcolorVertex | ( | GLint | size, |
| GLint * | count, | ||
| GLfloat * | buffer | ||
| ) |
Referenced by printBuffer().
| void printBuffer | ( | GLint | size, |
| GLfloat * | buffer | ||
| ) |
References print3DcolorVertex().
Referenced by GL_GraphicsInterface::renderPS().
| GLfloat* spewPrimitiveEPS | ( | FILE * | file, |
| GLfloat * | loc, | ||
| const int & | plotPolygons = TRUE |
||
| ) |
References bb, _Feedback3Dcolor::blue, depth, dx, fabs(), FALSE, fPrintF(), GL_DISABLE_TOKEN, GL_ENABLE_TOKEN, GL_LINE_STIPPLE_TOKEN, GL_LINE_WIDTH_TOKEN, GL_POINT_SIZE_TOKEN, _Feedback3Dcolor::green, i2, max(), min(), pointSize, _Feedback3Dcolor::red, SQR, SQRT, TRUE, _Feedback3Dcolor::x, x, _Feedback3Dcolor::y, and _Feedback3Dcolor::z.
Referenced by spewSortedFeedback(), and spewUnsortedFeedback().
| void spewSortedFeedback | ( | FILE * | file, |
| GLint | size, | ||
| GLfloat * | buffer | ||
| ) |
References assert, _DepthIndex::depth, FALSE, _DepthIndex::ptr, spewPrimitiveEPS(), and _Feedback3Dcolor::z.
Referenced by spewWireFrameEPS().
| void spewUnsortedFeedback | ( | FILE * | file, |
| GLint | size, | ||
| GLfloat * | buffer | ||
| ) |
References spewPrimitiveEPS().
Referenced by spewWireFrameEPS().
| void spewWireFrameEPS | ( | FILE * | file, |
| int | doSort, | ||
| GLint | size, | ||
| GLfloat * | buffer, | ||
| char * | creator | ||
| ) |
References EPS_GOURAUD_THRESHOLD, fPrintF(), max(), pointSize, spewSortedFeedback(), and spewUnsortedFeedback().
Referenced by GL_GraphicsInterface::renderPS().
| GLfloat pointSize |
1.8.3