فهرست منبع

remove more unused api

David Rose 17 سال پیش
والد
کامیت
451a0fa4d6
3فایلهای تغییر یافته به همراه0 افزوده شده و 29 حذف شده
  1. 0 1
      panda/src/tinydisplay/clip.c
  2. 0 16
      panda/src/tinydisplay/init.c
  3. 0 12
      panda/src/tinydisplay/zgl.h

+ 0 - 1
panda/src/tinydisplay/clip.c

@@ -235,7 +235,6 @@ void gl_draw_triangle(GLContext *c,
       if (norm == 0) return;
       if (norm == 0) return;
 
 
       front = norm < 0.0;
       front = norm < 0.0;
-      front = front ^ c->current_front_face;
   
   
       /* back face culling */
       /* back face culling */
       if (c->cull_face_enabled) {
       if (c->cull_face_enabled) {

+ 0 - 16
panda/src/tinydisplay/init.c

@@ -39,35 +39,19 @@ void glInit(GLContext *c, ZBuffer *zbuffer)
   c->current_color.Y=1.0;
   c->current_color.Y=1.0;
   c->current_color.Z=1.0;
   c->current_color.Z=1.0;
   c->current_color.W=1.0;
   c->current_color.W=1.0;
-  c->longcurrent_color[0] = 65535;
-  c->longcurrent_color[1] = 65535;
-  c->longcurrent_color[2] = 65535;
 
 
   c->current_normal.X=1.0;
   c->current_normal.X=1.0;
   c->current_normal.Y=0.0;
   c->current_normal.Y=0.0;
   c->current_normal.Z=0.0;
   c->current_normal.Z=0.0;
   c->current_normal.W=0.0;
   c->current_normal.W=0.0;
 
 
-  c->current_edge_flag=1;
-  
   c->current_tex_coord.X=0;
   c->current_tex_coord.X=0;
   c->current_tex_coord.Y=0;
   c->current_tex_coord.Y=0;
   c->current_tex_coord.Z=0;
   c->current_tex_coord.Z=0;
   c->current_tex_coord.W=1;
   c->current_tex_coord.W=1;
 
 
-  c->current_front_face=0; /* 0 = GL_CCW  1 = GL_CW */
   c->cull_face_enabled=0;
   c->cull_face_enabled=0;
   
   
-  /* clear */
-  c->clear_color.v[0]=0;
-  c->clear_color.v[1]=0;
-  c->clear_color.v[2]=0;
-  c->clear_color.v[3]=0;
-  c->clear_depth=0;
-  
-  /* opengl 1.1 polygon offset */
-  c->offset_states = 0;
-  
   /* specular buffer */
   /* specular buffer */
   c->specbuf_first = NULL;
   c->specbuf_first = NULL;
   c->specbuf_used_counter = 0;
   c->specbuf_used_counter = 0;

+ 0 - 12
panda/src/tinydisplay/zgl.h

@@ -171,7 +171,6 @@ typedef struct GLContext {
   GLViewport viewport;
   GLViewport viewport;
 
 
   /* current state */
   /* current state */
-  int current_front_face;
   int smooth_shade_model;
   int smooth_shade_model;
   int cull_face_enabled;
   int cull_face_enabled;
   int cull_clockwise;
   int cull_clockwise;
@@ -179,21 +178,10 @@ typedef struct GLContext {
   gl_draw_triangle_func draw_triangle_front,draw_triangle_back;
   gl_draw_triangle_func draw_triangle_front,draw_triangle_back;
   ZB_fillTriangleFunc zb_fill_tri;
   ZB_fillTriangleFunc zb_fill_tri;
 
 
-  /* clear */
-  float clear_depth;
-  V4 clear_color;
-
   /* current vertex state */
   /* current vertex state */
   V4 current_color;
   V4 current_color;
-  unsigned int longcurrent_color[3]; /* precomputed integer color */
   V4 current_normal;
   V4 current_normal;
   V4 current_tex_coord;
   V4 current_tex_coord;
-  int current_edge_flag;
-  
-  /* opengl 1.1 polygon offset */
-  float offset_factor;
-  float offset_units;
-  int offset_states;
 
 
   /* depth test */
   /* depth test */
   int depth_test;
   int depth_test;