- Timestamp:
- 02/19/07 09:16:59 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/vmi/src/color.cpp
r2090 r2127 7 7 using namespace VMI; 8 8 9 Color *VMI::initColors( GLuint numColors) {9 Color *VMI::initColors(int numColors) { 10 10 Color *colors; 11 11 … … 25 25 } 26 26 27 void VMI::fillAllColors(Color *colors, GLuint numColors, GLuint begin, GLuint end, GLubyte color) {28 GLuint i;27 void VMI::fillAllColors(Color *colors, int numColors, int begin, int end, GLubyte color) { 28 int i; 29 29 30 30 if (end > numColors) return; … … 40 40 } 41 41 42 void VMI::setColors(Color *colors, GLuint numPasses, GLuint begin, GLuint end) {43 GLuint i, step = numPasses * MAX_NUM_COLORS;42 void VMI::setColors(Color *colors, int numPasses, int begin, int end) { 43 int i, step = numPasses * MAX_NUM_COLORS; 44 44 GLubyte r = 1, 45 45 g = 1, … … 86 86 } 87 87 88 void VMI::setColors2(Color *colors, GLuint numColors, GLuint begin, GLuint end) {89 GLuint i,88 void VMI::setColors2(Color *colors, int numColors, int begin, int end) { 89 int i, 90 90 channel = 0, 91 91 step = (numColors < MAX_NUM_COLORS) ? (MAX_NUM_COLORS / numColors) : 1; … … 133 133 } 134 134 135 void VMI::setColors3(Color *colors, GLuint numColors, GLubyte color) {136 GLuint i;135 void VMI::setColors3(Color *colors, int numColors, GLubyte color) { 136 int i; 137 137 138 138 for (i = 0; i < numColors; i++) { … … 148 148 } 149 149 150 void VMI::setColors4(Color *colors, GLuint numColors) {151 GLuint i, c = 1;150 void VMI::setColors4(Color *colors, int numColors) { 151 int i, c = 1; 152 152 153 153 for (i = 0; i < numColors; i++) { … … 164 164 } 165 165 166 void VMI::viewColors(Color *colors, GLuint numColors) {167 GLuint i;166 void VMI::viewColors(Color *colors, int numColors) { 167 int i; 168 168 169 169 printf("\n");
Note: See TracChangeset
for help on using the changeset viewer.