Mercurial > hg > Game > Cerium
comparison Renderer/Engine/task/DrawSpan.cc @ 1256:880f989ce52a draft
fix rsync
author | Yuhi TOMARI <e095740@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Nov 2011 17:40:12 +0900 |
parents | b417abf82193 |
children | 4ba9b622073d |
comparison
equal
deleted
inserted
replaced
1255:39016616cc26 | 1256:880f989ce52a |
---|---|
63 static int drawDot1(SchedTask *smanager, Gptr g, SpanPtr span, int startx, int endx, int wait_tag); | 63 static int drawDot1(SchedTask *smanager, Gptr g, SpanPtr span, int startx, int endx, int wait_tag); |
64 //static void drawDot2(SchedTask *smanager, SpanPtr span, int startx, int endx, int js, int wait_tag); | 64 //static void drawDot2(SchedTask *smanager, SpanPtr span, int startx, int endx, int js, int wait_tag); |
65 static int drawLine1(SchedTask *smanager, Gptr g, SpanPtr span, int startx, int endx, int wait_tag); | 65 static int drawLine1(SchedTask *smanager, Gptr g, SpanPtr span, int startx, int endx, int wait_tag); |
66 // static void drawLine2(SchedTask *smanager, SpanPtr span, int startx, int endx, int js, int wait_tag); | 66 // static void drawLine2(SchedTask *smanager, SpanPtr span, int startx, int endx, int js, int wait_tag); |
67 | 67 |
68 static int getDrawParam(SchedTask *smanager, Gptr g, SpanPtr span, int localy, int startx, | 68 //static int getDrawParam(SchedTask *smanager, Gptr g, SpanPtr span, int localy, int startx, int endx, int index, int j, DrawParamPtr param); |
69 int endx, int index, int j, DrawParamPtr param); | |
70 | 69 |
71 static int infinity_light_calc(int color,float normal_x, float normal_y, float normal_z, | 70 static int infinity_light_calc(int color,float normal_x, float normal_y, float normal_z, |
72 SchedTask *smanager,int x, int y, float z, int world_x, int world_y, float world_z); | 71 SchedTask *smanager,int x, int y, float z, int world_x, int world_y, float world_z); |
73 | 72 |
74 | 73 |
467 | 466 |
468 #endif | 467 #endif |
469 | 468 |
470 return ret; | 469 return ret; |
471 } | 470 } |
472 | 471 #if 0 |
473 static int | 472 static int |
474 getDrawParam(SchedTask *smanager, Gptr g, SpanPtr span, int localy, int startx, int endx, int index, int j, DrawParamPtr param) { | 473 getDrawParam(SchedTask *smanager, Gptr g, SpanPtr span, int localy, int startx, int endx, int index, int j, DrawParamPtr param) { |
475 | 474 |
476 int x = span->x; | 475 int x = span->x; |
477 int rangex = endx - startx + 1; | 476 int rangex = endx - startx + 1; |
534 param->display = 0; //z軸の前に他のオブジェクトがあるので、計算しなくていい。 | 533 param->display = 0; //z軸の前に他のオブジェクトがあるので、計算しなくていい。 |
535 | 534 |
536 return 1; | 535 return 1; |
537 | 536 |
538 } | 537 } |
538 #endif | |
539 | 539 |
540 static int | 540 static int |
541 infinity_light_calc(int color,float normal_x, float normal_y, | 541 infinity_light_calc(int color,float normal_x, float normal_y, |
542 float normal_z, SchedTask *smanager, int x, int y, float z, | 542 float normal_z, SchedTask *smanager, int x, int y, float z, |
543 int world_x, int world_y, float world_z) | 543 int world_x, int world_y, float world_z) |