gCAD3D 2.40
tst_gl1.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 PT_MAX   1000
 
#define TRI_MAX   300
 

Functions

GLU_CB GLCB_error (GLenum errNo)
 
GLU_CB GLCB_begin (GLenum type)
 
GLU_CB GLCB_vertex (GLfloat *vertex)
 
GLU_CB GLCB_normal (GLfloat *normal)
 
GLU_CB GLCB_end ()
 
int gl_light1 ()
 
int tst_gl1_nurbCrv ()
 
int tst_gl1_patch__ (Point *pTab, int pNr, int pTyp)
 
int tst_gl1_point_d (Point *pTab, int pNr, GLfloat *glCol)
 
int tst_gl1_point_f (GLfloat *pTab, int pNr, int ptSiz, GLfloat *glCol)
 
int tst_gl1_sur_matl ()
 
int tst_gl1_nurbSur2 ()
 
int tst_gl1_nurbSur1 ()
 
int tst_gl1_bezSur ()
 
int tst_gl1_bezCurv ()
 
int tst_gl1_line_attr ()
 
int tst_gl1_ln ()
 
int gCad_fini ()
 
int gCad_main ()
 
int tst_gl1 ()
 

Variables

static GLfloat colTab [][4]
 
static Point pa [PT_MAX]
 
static int ptNr
 
static int patchTyp
 
static Triangle triTab [TRI_MAX]
 

Macro Definition Documentation

#define GLU_CB   static void
#define COL_RED   0
#define COL_YELLOW   1
#define COL_SUR   2
#define PT_MAX   1000
#define TRI_MAX   300

Function Documentation

GLU_CB GLCB_error ( GLenum  errNo)
GLU_CB GLCB_begin ( GLenum  type)
GLU_CB GLCB_vertex ( GLfloat *  vertex)
GLU_CB GLCB_normal ( GLfloat *  normal)
GLU_CB GLCB_end ( )
int gl_light1 ( )
int tst_gl1_nurbCrv ( )
int tst_gl1_patch__ ( Point pTab,
int  pNr,
int  pTyp 
)
int tst_gl1_point_d ( Point pTab,
int  pNr,
GLfloat *  glCol 
)
int tst_gl1_point_f ( GLfloat *  pTab,
int  pNr,
int  ptSiz,
GLfloat *  glCol 
)
int tst_gl1_sur_matl ( )
int tst_gl1_nurbSur2 ( )
int tst_gl1_nurbSur1 ( )
int tst_gl1_bezSur ( )
int tst_gl1_bezCurv ( )
int tst_gl1_line_attr ( )
int tst_gl1_ln ( )
int gCad_fini ( )
int gCad_main ( )
int tst_gl1 ( )

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}
Point pa[PT_MAX]
static
int ptNr
static
int patchTyp
static
Triangle triTab[TRI_MAX]
static