Changeset 215


Ignore:
Timestamp:
Jan 17, 2011, 1:28:57 PM (10 years ago)
Author:
sam
Message:

Fix M_PI usage on Win32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/debugsphere.cpp

    r210 r215  
    88#endif
    99
    10 #include <cstdio>
    11 #include <cmath>
    12 
    1310#ifdef WIN32
     11#   define _USE_MATH_DEFINES /* for M_PI */
    1412#   define WIN32_LEAN_AND_MEAN
    1513#   include <windows.h>
     
    2119#   include <GL/gl.h>
    2220#endif
     21
     22#include <cstdio>
     23#include <cmath>
    2324
    2425#include "core.h"
     
    129130    glPushAttrib(GL_COLOR_BUFFER_BIT | GL_CURRENT_BIT);
    130131    glBindTexture(GL_TEXTURE_2D, NULL);
    131     glColor4f(1.0f, b, a, 0.2f);
     132    glColor4f(1.0f, b, a, 0.1f);
    132133    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)
    134135        data->DrawSphere(2, t * (60.0f + 40.0f * a));
    135136    glTranslatef(-320.0f, -240.0f, -32.0f);
Note: See TracChangeset for help on using the changeset viewer.