Tulip  4.6.0
Better Visualization Through Research
library/tulip-ogl/include/tulip/EpsFunction.h
00001 /*
00002  *
00003  * This file is part of Tulip (www.tulip-software.org)
00004  *
00005  * Authors: David Auber and the Tulip development Team
00006  * from LaBRI, University of Bordeaux
00007  *
00008  * Tulip is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation, either version 3
00011  * of the License, or (at your option) any later version.
00012  *
00013  * Tulip is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016  * See the GNU General Public License for more details.
00017  *
00018  */
00019 ///@cond DOXYGEN_HIDDEN
00020 
00021 #ifndef EPSFUNCTION
00022 #define EPSFUNCTION
00023 #ifndef DOXYGEN_NOTFOR_DEVEL
00024 //====================================================
00025 
00026 #include <cstdio>
00027 
00028 
00029 #if defined(_MSC_VER)
00030 #include <Windows.h>
00031 #endif
00032 
00033 #if defined(__APPLE__)
00034 #include <OpenGL/gl.h>
00035 #else
00036 #include <GL/gl.h>
00037 #endif
00038 
00039 namespace tlp {
00040 
00041 class Color;
00042 
00043 void Line(float x1,float y1,float z1,float x2, float y2 ,  float z2, Color& C1, Color& C2);
00044 void Rect(float x, float y , float z, float w , float h);
00045 GLfloat *spewPrimitiveEPS(FILE * file, GLfloat * loc);
00046 void spewUnsortedFeedback(FILE * file, GLint size, GLfloat * buffer);
00047 int compare(const void *a, const void *b);
00048 void spewSortedFeedback(FILE * file, GLint size, GLfloat * buffer);
00049 void spewWireFrameEPS(FILE * file, int doSort, GLint size, GLfloat * buffer, char *creator);
00050 void print3DcolorVertex(GLint size, GLint * count, GLfloat * buffer);
00051 void printBuffer(GLint size, GLfloat * buffer);
00052 
00053 }
00054 #endif //DOXYGEN_NOTFOR_DEVEL
00055 #endif
00056 ///@endcond
 All Classes Files Functions Variables Enumerations Enumerator Properties