Changeset 215
- Timestamp:
- Jan 17, 2011, 1:28:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/debugsphere.cpp
r210 r215 8 8 #endif 9 9 10 #include <cstdio>11 #include <cmath>12 13 10 #ifdef WIN32 11 # define _USE_MATH_DEFINES /* for M_PI */ 14 12 # define WIN32_LEAN_AND_MEAN 15 13 # include <windows.h> … … 21 19 # include <GL/gl.h> 22 20 #endif 21 22 #include <cstdio> 23 #include <cmath> 23 24 24 25 #include "core.h" … … 129 130 glPushAttrib(GL_COLOR_BUFFER_BIT | GL_CURRENT_BIT); 130 131 glBindTexture(GL_TEXTURE_2D, NULL); 131 glColor4f(1.0f, b, a, 0. 2f);132 glColor4f(1.0f, b, a, 0.1f); 132 133 glTranslatef(320.0f, 240.0f, 32.0f); 133 for (float t = 0.01f; t < 1.0f; t *= 1. 3f)134 for (float t = 0.01f; t < 1.0f; t *= 1.1f) 134 135 data->DrawSphere(2, t * (60.0f + 40.0f * a)); 135 136 glTranslatef(-320.0f, -240.0f, -32.0f);
Note: See TracChangeset
for help on using the changeset viewer.