mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +02:00
more windows build work
This commit is contained in:
parent
08bb783777
commit
ff72e25a34
4 changed files with 16 additions and 2 deletions
|
@ -9,6 +9,11 @@
|
|||
#ifndef __interface__Audio__
|
||||
#define __interface__Audio__
|
||||
|
||||
#ifdef _WIN32
|
||||
#define WANT_TIMEVAL
|
||||
#include <Systime.h>
|
||||
#endif
|
||||
|
||||
#include <fstream>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue