gCAD3D 2.40
tst_gl2.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "../ut/ut_geo.h"

Macros

#define GLU_CB   static void
 
#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
 

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)
 
GLU_CB GLCB2_combi (GLdouble newPt[3], GLdouble *data[4], GLfloat weight[4], GLdouble **dataOut)
 
GLU_CB GLCB2_end ()
 
int tst_gl2_point_d (Point *GLC_pab, int pNr, GLfloat *glCol)
 
int tst_gl2_patch__ (int pTyp, Point *pa, int pNr)
 
int tst_gl2_2Dtess3 ()
 
int tst_gl2_2Dtess2 ()
 
int tst_gl2_2Dtess1 ()
 
int tst_gl2 ()
 
int gCad_fini ()
 
int gCad_main ()
 

Variables

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 GLU_CB   static void
#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

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)
GLU_CB GLCB2_combi ( GLdouble  newPt[3],
GLdouble *  data[4],
GLfloat  weight[4],
GLdouble **  dataOut 
)
GLU_CB GLCB2_end ( )
int tst_gl2_point_d ( Point GLC_pab,
int  pNr,
GLfloat *  glCol 
)
int tst_gl2_patch__ ( int  pTyp,
Point pa,
int  pNr 
)
int tst_gl2_2Dtess3 ( )
int tst_gl2_2Dtess2 ( )
int tst_gl2_2Dtess1 ( )
int tst_gl2 ( )
int gCad_fini ( )
int gCad_main ( )

Variable Documentation

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