Removed old tools.h/c

This commit is contained in:
Michaël Lemaire 2013-11-19 12:16:33 +01:00 committed by Michael Lemaire
parent 051766d1d5
commit 82defc96f6
18 changed files with 7 additions and 43 deletions

View file

@ -10,7 +10,6 @@
#include <QMutex> #include <QMutex>
#include <cassert> #include <cassert>
#include <cmath> #include <cmath>
#include "tools.h"
#include "System.h" #include "System.h"
#include "PackStream.h" #include "PackStream.h"
#include "Base2dPreviewRenderer.h" #include "Base2dPreviewRenderer.h"

View file

@ -12,7 +12,6 @@
#include "System.h" #include "System.h"
#include "PackStream.h" #include "PackStream.h"
#include "AtmosphereDefinition.h" #include "AtmosphereDefinition.h"
#include "tools.h"
#include "tools/cache.h" #include "tools/cache.h"
#include "tools/texture.h" #include "tools/texture.h"
#include "tools/parallel.h" #include "tools/parallel.h"

View file

@ -3,7 +3,6 @@
#include <math.h> #include <math.h>
#include <stdlib.h> #include <stdlib.h>
#include "../tools.h"
#include "../renderer.h" #include "../renderer.h"
#include "clouds/public.h" #include "clouds/public.h"

View file

@ -2,7 +2,6 @@
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include "../tools.h"
#include "../renderer.h" #include "../renderer.h"
#include "clo_density.h" #include "clo_density.h"
#include "clo_walking.h" #include "clo_walking.h"

View file

@ -1,7 +1,6 @@
#include "geoarea.h" #include "geoarea.h"
#include "PackStream.h" #include "PackStream.h"
#include "tools.h"
GeoArea geoareaCreate() GeoArea geoareaCreate()
{ {

View file

@ -5,7 +5,6 @@
#include "Thread.h" #include "Thread.h"
#include "render.h" #include "render.h"
#include "RenderingScenery.h" #include "RenderingScenery.h"
#include "tools.h"
#include "CameraDefinition.h" #include "CameraDefinition.h"
#include "atmosphere/public.h" #include "atmosphere/public.h"
#include "clouds/public.h" #include "clouds/public.h"

View file

@ -9,7 +9,6 @@ DEFINES += RENDERING_LIBRARY
include(../common.pri) include(../common.pri)
SOURCES += main.cpp \ SOURCES += main.cpp \
tools.cpp \
renderer.cpp \ renderer.cpp \
render.cpp \ render.cpp \
opencl.cpp \ opencl.cpp \
@ -43,7 +42,6 @@ SOURCES += main.cpp \
RenderingScenery.cpp RenderingScenery.cpp
HEADERS += \ HEADERS += \
tools.h \
renderer.h \ renderer.h \
render.h \ render.h \
opencl.h \ opencl.h \

View file

@ -1,6 +1,5 @@
#include "public.h" #include "public.h"
#include "../tools.h"
#include "../tools/lighting.h" #include "../tools/lighting.h"
#include "../renderer.h" #include "../renderer.h"
#include "NoiseGenerator.h" #include "NoiseGenerator.h"

View file

@ -2,9 +2,8 @@
#include "private.h" #include "private.h"
#include "ter_raster.h" #include "ter_raster.h"
#include <stdlib.h> #include <cstdlib>
#include <math.h> #include <cmath>
#include "../tools.h"
#include "BoundingBox.h" #include "BoundingBox.h"
#include "../tools/parallel.h" #include "../tools/parallel.h"
#include "../renderer.h" #include "../renderer.h"

View file

@ -2,7 +2,6 @@
#include <cstdlib> #include <cstdlib>
#include <cmath> #include <cmath>
#include "../tools.h"
#include "../renderer.h" #include "../renderer.h"
#include "textures/public.h" #include "textures/public.h"
#include "TerrainDefinition.h" #include "TerrainDefinition.h"

View file

@ -1,9 +0,0 @@
#include "tools.h"
#include <cmath>
#include <cstdlib>
double toolsRandom()
{
return ((double)rand()) / (double)RAND_MAX;
}

View file

@ -1,8 +0,0 @@
#ifndef _PAYSAGES_TOOLS_H_
#define _PAYSAGES_TOOLS_H_
#include "rendering_global.h"
RENDERINGSHARED_EXPORT double toolsRandom();
#endif

View file

@ -1,8 +1,7 @@
#include "cache.h" #include "cache.h"
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include "../tools.h"
struct CacheFile struct CacheFile
{ {

View file

@ -2,7 +2,6 @@
#include "../terrain/public.h" #include "../terrain/public.h"
#include "../renderer.h" #include "../renderer.h"
#include "../tools.h"
void waterAlterPreviewCoverageRenderer(Renderer* renderer) void waterAlterPreviewCoverageRenderer(Renderer* renderer)
{ {

View file

@ -1,10 +1,8 @@
#include "public.h" #include "public.h"
#include "private.h" #include "private.h"
#include <stdlib.h> #include <cmath>
#include <math.h>
#include "../renderer.h" #include "../renderer.h"
#include "../tools.h"
#include "../tools/parallel.h" #include "../tools/parallel.h"
static Color _postProcessFragment(Renderer* renderer, Vector3 location, void*) static Color _postProcessFragment(Renderer* renderer, Vector3 location, void*)

View file

@ -1,7 +1,6 @@
#include "private.h" #include "private.h"
#include <cmath> #include <cmath>
#include "../tools.h"
#include "../renderer.h" #include "../renderer.h"
#include "WaterDefinition.h" #include "WaterDefinition.h"
#include "SurfaceMaterial.h" #include "SurfaceMaterial.h"

View file

@ -1,5 +1 @@
#include "RandomGenerator.h" #include "RandomGenerator.h"
RandomGenerator::RandomGenerator()
{
}

View file

@ -2,12 +2,13 @@
#define RANDOMGENERATOR_H #define RANDOMGENERATOR_H
#include "system_global.h" #include "system_global.h"
#include <cstdlib> #include <cstdlib>
namespace paysages { namespace paysages {
namespace system { namespace system {
class RandomGenerator class SYSTEMSHARED_EXPORT RandomGenerator
{ {
public: public:
RandomGenerator(); RandomGenerator();