mirror of
https://github.com/overte-org/overte.git
synced 2025-08-14 21:51:50 +02:00
more windows fixes
This commit is contained in:
parent
d92d043e8f
commit
a3022f538d
5 changed files with 18 additions and 8 deletions
|
@ -6,6 +6,11 @@
|
|||
// Copyright (c) 2012 High Fidelity, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#ifdef WIN32
|
||||
#define WANT_TIMEVAL
|
||||
#include <Systime.h>
|
||||
#endif
|
||||
|
||||
#include <QOpenGLFramebufferObject>
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
|
|
@ -6,12 +6,20 @@
|
|||
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
#include <QOpenGLFramebufferObject>
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "Application.h"
|
||||
#include "InterfaceConfig.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#define WANT_TIMEVAL
|
||||
#include <Systime.h>
|
||||
#endif
|
||||
|
||||
#include "Application.h"
|
||||
|
||||
#include "TV3DManager.h"
|
||||
#include "Menu.h"
|
||||
|
||||
|
|
|
@ -9,11 +9,6 @@
|
|||
|
||||
#include <QNetworkReply>
|
||||
|
||||
#ifdef WIN32
|
||||
#define WANT_TIMEVAL
|
||||
#include <Systime.h>
|
||||
#endif
|
||||
|
||||
#include "Application.h"
|
||||
#include "GeometryCache.h"
|
||||
#include "world.h"
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
using namespace starfield;
|
||||
|
||||
const float Generator::STAR_COLORIZATION = 0.1;
|
||||
const float Generator::STAR_COLORIZATION = 0.1f;
|
||||
|
||||
void Generator::computeStarPositions(InputVertices& destination, unsigned limit, unsigned seed) {
|
||||
InputVertices* vertices = & destination;
|
||||
|
@ -31,7 +31,7 @@ void Generator::computeStarPositions(InputVertices& destination, unsigned limit,
|
|||
|
||||
const unsigned MILKY_WAY_WIDTH = 12.0; // width in degrees of one half of the Milky Way
|
||||
const float MILKY_WAY_INCLINATION = 0.0f; // angle of Milky Way from horizontal in degrees
|
||||
const float MILKY_WAY_RATIO = 0.4;
|
||||
const float MILKY_WAY_RATIO = 0.4f;
|
||||
const unsigned NUM_DEGREES = 360;
|
||||
|
||||
for(int star = 0; star < floor(limit * (1 - MILKY_WAY_RATIO)); ++star) {
|
||||
|
|
|
@ -30,6 +30,8 @@ inline double roundf(double value) {
|
|||
}
|
||||
|
||||
|
||||
#define round roundf
|
||||
|
||||
#endif // WIN32
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue