gCAD3D 2.40
tessbug1.c File Reference
#include <GL/glut.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>

Data Structures

struct  Point
 3D-point, Typ_PT More...
 
struct  Triangle
 triangle, Typ_Tria More...
 

Macros

#define GL_FAC_PLANAR   16
 
#define COL_RED   0
 
#define COL_YELLOW   1
 
#define COL_SUR   2
 
#define GLC_PT_MAX   1000
 
#define GLP_PT_MAX   1000
 
#define GLP_TRI_MAX   300
 
#define GLU_CB   static void
 

Functions

GLU_CB GLCB2_error (GLenum errNo)
 
GLU_CB GLCB2_begin (GLenum type)
 
GLU_CB GLCB2_vertex (GLdouble *)
 
GLU_CB GLCB2_combi (GLdouble *, GLdouble **, GLfloat *, GLdouble **)
 
GLU_CB GLCB2_edge (GLboolean flag)
 
int TX_Error (char *txt,...)
 
int UTRI_triaNr_glpat (int ptNr, int patchTyp)
 
int UTRI_ntria_glpat (Triangle *tTab, int *tSiz, Point *pTab, int pNr, int pTyp)
 
int tst_gl2_point_d (Point *GLC_pab, int pNr, GLfloat *glCol)
 
int tst_gl2_patch__ (Point *GLC_pab, int pNr, int pTyp)
 
GLU_CB GLCB2_end ()
 
GLU_CB GLCB2_combi (GLdouble newPt[3], GLdouble *data[4], GLfloat weight[4], GLdouble **dataOut)
 
static void init (void)
 
static void display (void)
 
static void reshape (int w, int h)
 
static void keyboard (unsigned char key, int x, int y)
 
int main (int argc, char **argv)
 

Variables

GLuint startList
 
static GLfloat colTab [][4]
 
static int GLU_Err =0
 
static Point GLC_pa [GLC_PT_MAX]
 
static int GLC_pNr
 
static Point GLP_pa [GLP_PT_MAX]
 
static int GLP_pNr
 
static int GLP_typ
 
static Triangle GLP_ta [GLP_TRI_MAX]
 

Macro Definition Documentation

#define GL_FAC_PLANAR   16
#define COL_RED   0
#define COL_YELLOW   1
#define COL_SUR   2
#define GLC_PT_MAX   1000
#define GLP_PT_MAX   1000
#define GLP_TRI_MAX   300
#define GLU_CB   static void

Function Documentation

GLU_CB GLCB2_error ( GLenum  errNo)
GLU_CB GLCB2_begin ( GLenum  type)
GLU_CB GLCB2_vertex ( GLdouble *  vertex)
GLU_CB GLCB2_combi ( GLdouble *  ,
GLdouble **  ,
GLfloat *  ,
GLdouble **   
)
GLU_CB GLCB2_edge ( GLboolean  flag)
int TX_Error ( char *  txt,
  ... 
)
int UTRI_triaNr_glpat ( int  ptNr,
int  patchTyp 
)
* UTRI_triaNr_glpat get nr of triangles for opengl-patch
* Input:
* ptNr nr of points
* patchTyp GL_TRIANGLE_STRIP|GL_TRIANGLE_FAN|GL_QUAD_STRIP
*
* see tess_siz2
*
int UTRI_ntria_glpat ( Triangle tTab,
int *  tSiz,
Point pTab,
int  pNr,
int  pTyp 
)
int tst_gl2_point_d ( Point GLC_pab,
int  pNr,
GLfloat *  glCol 
)
int tst_gl2_patch__ ( Point GLC_pab,
int  pNr,
int  pTyp 
)
GLU_CB GLCB2_end ( )
GLU_CB GLCB2_combi ( GLdouble  newPt[3],
GLdouble *  data[4],
GLfloat  weight[4],
GLdouble **  dataOut 
)
static void init ( void  )
static
static void display ( void  )
static
static void reshape ( int  w,
int  h 
)
static
static void keyboard ( unsigned char  key,
int  x,
int  y 
)
static
int main ( int  argc,
char **  argv 
)

Variable Documentation

GLuint startList
GLfloat colTab[][4]
static
Initial value:
= {
1.0, 0.0, 0.0, 1.0,
1.0, 1.0, 0.0, 1.0,
0.6, 0.5, 0.5, 1.0}
int GLU_Err =0
static
Point GLC_pa[GLC_PT_MAX]
static
int GLC_pNr
static
Point GLP_pa[GLP_PT_MAX]
static
int GLP_pNr
static
int GLP_typ
static
Triangle GLP_ta[GLP_TRI_MAX]
static