more windows build work

This commit is contained in:
Brad Hefta-Gaub 2014-01-12 15:31:06 -08:00
parent 08bb783777
commit ff72e25a34
4 changed files with 16 additions and 2 deletions

View file

@ -9,6 +9,11 @@
#ifndef __interface__Audio__
#define __interface__Audio__
#ifdef _WIN32
#define WANT_TIMEVAL
#include <Systime.h>
#endif
#include <fstream>
#include <vector>

View file

@ -66,8 +66,7 @@ void PieMenu::render() {
float start = M_PI / 2.0f;
float end = start + 2.0f * M_PI;
float step = 2.0f * M_PI / 100.0f;
float distance = sqrt((_mouseX - _x) * (_mouseX - _x) +
(_mouseY - _y) * (_mouseY - _y));
float distance = sqrt((float)(_mouseX - _x) * (_mouseX - _x) + (_mouseY - _y) * (_mouseY - _y));
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, _textureID);

View file

@ -7,6 +7,11 @@
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
//
#ifdef _WIN32
#define WANT_TIMEVAL
#include <Systime.h>
#endif
#include "starfield/Controller.h"
using namespace starfield;

View file

@ -6,6 +6,11 @@
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
//
#ifdef _WIN32
#define WANT_TIMEVAL
#include <Systime.h>
#endif
#include "starfield/Generator.h"
using namespace starfield;