Optimized imports.

--HG--
branch : dev-2.1
This commit is contained in:
Martín Lucas Golini
2018-01-11 18:43:24 -03:00
parent c470008104
commit 3a4a51423f
49 changed files with 111 additions and 28 deletions

View File

@@ -1,6 +1,7 @@
#ifndef EE_AUDIOCAUDIODEVICE_H
#define EE_AUDIOCAUDIODEVICE_H
#include <string>
#include <eepp/audio/audiolistener.hpp>
namespace EE { namespace Audio {

View File

@@ -1,7 +1,8 @@
#ifndef EE_AUDIOCLISTENER_H
#define EE_AUDIOCLISTENER_H
#include <eepp/audio/base.hpp>
#include <eepp/math/vector3.hpp>
using namespace EE::Math;
namespace EE { namespace Audio {

View File

@@ -3,16 +3,6 @@
#include <eepp/core.hpp>
#include <eepp/system/log.hpp>
#include <eepp/system/pack.hpp>
#include <eepp/system/thread.hpp>
#include <eepp/system/filesystem.hpp>
#include <eepp/system/time.hpp>
using namespace EE::System;
#include <eepp/math/vector3.hpp>
using namespace EE::Math;
/**
This module is based on the sfml-audio module.

View File

@@ -1,8 +1,11 @@
#ifndef EE_AUDIOCSOUNDBUFFER_H
#define EE_AUDIOCSOUNDBUFFER_H
#include <eepp/audio/base.hpp>
#include <set>
#include <eepp/system/time.hpp>
#include <eepp/system/pack.hpp>
using namespace EE::System;
namespace EE { namespace Audio {

View File

@@ -1,8 +1,9 @@
#ifndef EE_AUDIOCSOUNDSTREAM_H
#define EE_AUDIOCSOUNDSTREAM_H
#include <eepp/audio/base.hpp>
#include <eepp/audio/sound.hpp>
#include <eepp/system/thread.hpp>
using namespace EE::System;
namespace EE { namespace Audio {

View File

@@ -9,20 +9,7 @@
#include <eepp/math/math.hpp>
using namespace EE::Math;
#include <eepp/system/color.hpp>
#include <eepp/system/bitop.hpp>
#include <eepp/system/clock.hpp>
#include <eepp/system/singleton.hpp>
#include <eepp/system/log.hpp>
#include <eepp/system/pack.hpp>
#include <eepp/system/resourcemanager.hpp>
#include <eepp/system/container.hpp>
#include <eepp/system/filesystem.hpp>
using namespace EE::System;
#include <eepp/graphics/rendermode.hpp>
#include <eepp/graphics/blendmode.hpp>
#include <eepp/graphics/pixeldensity.hpp>
#ifndef EE_MAX_TEXTURE_UNITS
#define EE_MAX_TEXTURE_UNITS 4

View File

@@ -3,9 +3,13 @@
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/primitivetype.hpp>
#include <eepp/graphics/blendmode.hpp>
#include <eepp/math/polygon2.hpp>
#include <eepp/math/originpoint.hpp>
#include <eepp/system/color.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
struct eeTexCoord {

View File

@@ -4,6 +4,10 @@
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/font.hpp>
#include <eepp/system/singleton.hpp>
#include <eepp/system/resourcemanager.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
/** @brief The Font Manager is a singleton class that manages all the instance of fonts instanciated.

View File

@@ -4,6 +4,10 @@
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/framebuffer.hpp>
#include <eepp/system/singleton.hpp>
#include <eepp/system/container.hpp>
using namespace EE::System;
namespace EE { namespace Graphics { namespace Private {
class EE_API FrameBufferManager : public Container<FrameBuffer> {

View File

@@ -4,6 +4,9 @@
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/batchrenderer.hpp>
#include <eepp/system/singleton.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
/** @brief The global Batch Renderer class. This class will be used by the engine for the rendering. */

View File

@@ -4,6 +4,9 @@
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/textureatlas.hpp>
#include <eepp/system/singleton.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
/** @brief Any SubTexture that doesn't belong to an specific TextureAtlas ( a real texture atlas texture ), goes here.

View File

@@ -4,6 +4,10 @@
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/ninepatch.hpp>
#include <eepp/system/singleton.hpp>
#include <eepp/system/resourcemanager.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
class EE_API NinePatchManager : public ResourceManager<NinePatch> {

View File

@@ -3,6 +3,9 @@
#include <eepp/graphics/base.hpp>
#include <eepp/system/color.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
/** @brief A simple particle class used by the particle system.

View File

@@ -3,6 +3,10 @@
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/particle.hpp>
#include <eepp/graphics/blendmode.hpp>
#include <eepp/system/time.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {

View File

@@ -4,6 +4,10 @@
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/primitivetype.hpp>
#include <eepp/math/polygon2.hpp>
#include <eepp/graphics/blendmode.hpp>
#include <eepp/system/color.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {

View File

@@ -5,6 +5,9 @@
#include <eepp/graphics/texture.hpp>
#include <eepp/graphics/subtexture.hpp>
#include <eepp/system/clock.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
/** @brief The scroll parallax renders a SubTexture to the screen from a position and a size specified. If the size is bigger than the SubTexture, the SubTexture is rendered as a repeated SubTexture until it covers all the size of the parallax, adding movement to more than one Scroll Parallax will generate the ilusion of depth.

View File

@@ -3,6 +3,9 @@
#include <eepp/graphics/base.hpp>
#include <eepp/system/pack.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
/** @brief The basic shader class. */

View File

@@ -4,6 +4,10 @@
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/shaderprogram.hpp>
#include <eepp/system/singleton.hpp>
#include <eepp/system/resourcemanager.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
/** @brief The Shader Program Manager is a singleton class that manages all the instances of Shader Programs instanciated.

View File

@@ -6,6 +6,9 @@
#include <eepp/graphics/subtexture.hpp>
#include <eepp/graphics/textureatlas.hpp>
#include <eepp/system/time.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
/** @brief A Sprite controller class, can hold and control sprites animations. */

View File

@@ -3,6 +3,8 @@
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/subtexture.hpp>
#include <eepp/system/resourcemanager.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {

View File

@@ -5,6 +5,10 @@
#include <eepp/graphics/subtexture.hpp>
#include <eepp/graphics/textureatlas.hpp>
#include <eepp/system/singleton.hpp>
#include <eepp/system/pack.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
/** @brief The Texture Atlas Manager is a singleton class that manages all the instances of Texture Atlases instanciated.

View File

@@ -1,9 +1,14 @@
#ifndef EECTEXTUREFACTORY_H
#define EECTEXTUREFACTORY_H
#include <list>
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/texture.hpp>
#include <eepp/system/pack.hpp>
#include <eepp/system/singleton.hpp>
#include <eepp/system/mutex.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {

View File

@@ -5,6 +5,10 @@
#include <eepp/graphics/texture.hpp>
#include <eepp/system/objectloader.hpp>
#include <eepp/system/pack.hpp>
#include <eepp/system/clock.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
/** @brief The Texture loader loads a texture in synchronous or asynchronous mode.

View File

@@ -31,9 +31,11 @@
** Implementation differs from the original, but i used the base texture atlas algorithm.
*/
#include <list>
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/packerhelper.hpp>
#include <eepp/graphics/image.hpp>
#include <eepp/graphics/pixeldensity.hpp>
namespace EE { namespace Graphics {

View File

@@ -5,6 +5,9 @@
#include <eepp/graphics/primitivetype.hpp>
#include <eepp/graphics/vertexbufferhelper.hpp>
#include <eepp/system/color.hpp>
using namespace EE::System;
namespace EE { namespace Graphics {
/** @brief The vertex buffer class holds vertex data. The vertex position, colors, texture coordinates and indexes.

View File

@@ -4,6 +4,10 @@
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/vertexbuffer.hpp>
#include <eepp/system/singleton.hpp>
#include <eepp/system/container.hpp>
using namespace EE::System;
namespace EE { namespace Graphics { namespace Private {
class EE_API VertexBufferManager : public Container<VertexBuffer> {

View File

@@ -2,6 +2,7 @@
#define EE_PHYSICS_PHYSICSMANAGER_HPP
#include <eepp/physics/base.hpp>
#include <list>
CP_NAMESPACE_BEGIN

View File

@@ -1,6 +1,7 @@
#ifndef EE_PHYSICS_CSPACE_HPP
#define EE_PHYSICS_CSPACE_HPP
#include <list>
#include <eepp/physics/base.hpp>
#include <eepp/physics/body.hpp>
#include <eepp/physics/shape.hpp>

View File

@@ -29,6 +29,7 @@
../../include/eepp/graphics/vertexbufferhelper.hpp
../../include/eepp/math/interpolation1d.hpp
../../include/eepp/math/interpolation2d.hpp
../../include/eepp/math/transform.hpp
../../include/eepp/system/color.hpp
../../include/eepp/system/directorypack.hpp
../../include/eepp/system/iostreampak.hpp
@@ -83,6 +84,7 @@
../../src/eepp/graphics/text.cpp
../../src/eepp/math/interpolation1d.cpp
../../src/eepp/math/interpolation2d.cpp
../../src/eepp/math/transform.cpp
../../src/eepp/system/color.cpp
../../src/eepp/system/directorypack.cpp
../../src/eepp/system/iostreampak.cpp

View File

@@ -1,6 +1,7 @@
#include <eepp/audio/music.hpp>
#include <eepp/audio/soundfile.hpp>
#include <eepp/system/packmanager.hpp>
#include <eepp/system/filesystem.hpp>
namespace EE { namespace Audio {

View File

@@ -2,8 +2,9 @@
#include <eepp/audio/sound.hpp>
#include <eepp/audio/soundfile.hpp>
#include <eepp/audio/audiodevice.hpp>
#include <eepp/system/packmanager.hpp>
#include <eepp/audio/openal.hpp>
#include <eepp/system/packmanager.hpp>
#include <eepp/system/filesystem.hpp>
#include <memory>
namespace EE { namespace Audio {

View File

@@ -1,7 +1,9 @@
#ifndef EE_AUDIOCSOUNDFILE_H
#define EE_AUDIOCSOUNDFILE_H
#include <eepp/audio/base.hpp>
#include <eepp/core.hpp>
#include <eepp/system/time.hpp>
using namespace EE::System;
namespace EE { namespace Audio {

View File

@@ -1,10 +1,12 @@
#include <eepp/graphics/console.hpp>
#include <eepp/window/engine.hpp>
#include <eepp/graphics/renderer/renderer.hpp>
#include <eepp/graphics/pixeldensity.hpp>
#include <eepp/audio/audiolistener.hpp>
#include <eepp/window/input.hpp>
#include <eepp/window/cursormanager.hpp>
#include <eepp/window/window.hpp>
#include <eepp/system/filesystem.hpp>
#include <algorithm>
#include <cstdarg>

View File

@@ -2,6 +2,7 @@
#include <eepp/system/iostream.hpp>
#include <eepp/system/pack.hpp>
#include <eepp/system/packmanager.hpp>
#include <eepp/system/filesystem.hpp>
#include <eepp/graphics/texturefactory.hpp>
#include <ft2build.h>

View File

@@ -1,5 +1,6 @@
#include <eepp/graphics/ninepatch.hpp>
#include <eepp/graphics/texturefactory.hpp>
#include <eepp/graphics/pixeldensity.hpp>
namespace EE { namespace Graphics {

View File

@@ -3,6 +3,8 @@
#ifdef EE_GL3_ENABLED
#include <eepp/system/log.hpp>
#include <eepp/system/filesystem.hpp>
#include <eepp/graphics/renderer/rendererstackhelper.hpp>
namespace EE { namespace Graphics {

View File

@@ -1,4 +1,5 @@
#include <eepp/graphics/scrollparallax.hpp>
#include <eepp/graphics/pixeldensity.hpp>
namespace EE { namespace Graphics {

View File

@@ -5,6 +5,8 @@
#include <eepp/graphics/renderer/renderergl3cp.hpp>
#include <eepp/graphics/renderer/renderergles2.hpp>
#include <eepp/system/packmanager.hpp>
#include <eepp/system/filesystem.hpp>
#include <eepp/system/log.hpp>
namespace EE { namespace Graphics {

View File

@@ -5,6 +5,7 @@
#include <jpeg-compressor/jpge.h>
#include <eepp/graphics/texturesaver.hpp>
#include <eepp/graphics/renderer/opengl.hpp>
#include <eepp/graphics/pixeldensity.hpp>
using namespace EE::Graphics::Private;
namespace EE { namespace Graphics {

View File

@@ -4,6 +4,7 @@
#include <eepp/graphics/renderer/opengl.hpp>
#include <eepp/graphics/globalbatchrenderer.hpp>
#include <eepp/graphics/texturefactory.hpp>
#include <eepp/graphics/pixeldensity.hpp>
#include <algorithm>
#include <cmath>

View File

@@ -1,6 +1,7 @@
#include <eepp/graphics/texture.hpp>
#include <eepp/graphics/texturefactory.hpp>
#include <eepp/graphics/globalbatchrenderer.hpp>
#include <eepp/graphics/pixeldensity.hpp>
#include <SOIL2/src/SOIL2/SOIL2.h>
#include <eepp/graphics/renderer/openglext.hpp>
#include <eepp/graphics/renderer/renderer.hpp>

View File

@@ -6,6 +6,7 @@
#include <eepp/system/packmanager.hpp>
#include <eepp/system/iostreamfile.hpp>
#include <eepp/system/iostreammemory.hpp>
#include <eepp/system/filesystem.hpp>
#include <eepp/graphics/packerhelper.hpp>
#include <SOIL2/src/SOIL2/stb_image.h>

View File

@@ -1,6 +1,8 @@
#include <eepp/graphics/textureatlasmanager.hpp>
#include <eepp/graphics/globaltextureatlas.hpp>
#include <eepp/graphics/textureatlasloader.hpp>
#include <eepp/system/filesystem.hpp>
namespace EE { namespace Graphics {
SINGLETON_DECLARE_IMPLEMENTATION(TextureAtlasManager)

View File

@@ -3,6 +3,7 @@
#include <eepp/graphics/renderer/openglext.hpp>
#include <eepp/graphics/renderer/renderer.hpp>
#include <eepp/graphics/texture.hpp>
#include <eepp/system/filesystem.hpp>
#include <SOIL2/src/SOIL2/stb_image.h>
#include <SOIL2/src/SOIL2/SOIL2.h>
#include <jpeg-compressor/jpge.h>

View File

@@ -6,6 +6,7 @@
#include <eepp/graphics/renderer/renderer.hpp>
#include <eepp/system/iostreamfile.hpp>
#include <eepp/system/packmanager.hpp>
#include <eepp/system/filesystem.hpp>
#include <SOIL2/src/SOIL2/stb_image.h>
#include <SOIL2/src/SOIL2/SOIL2.h>
#include <jpeg-compressor/jpgd.h>

View File

@@ -1,5 +1,7 @@
#include <eepp/graphics/texturepacker.hpp>
#include <eepp/system/iostreamfile.hpp>
#include <eepp/system/filesystem.hpp>
#include <eepp/system/sys.hpp>
#include <eepp/graphics/texturepackernode.hpp>
#include <eepp/graphics/texturepackertex.hpp>
#include <SOIL2/src/SOIL2/stb_image.h>

View File

@@ -7,6 +7,7 @@
#include <eepp/ui/uicommondialog.hpp>
#include <eepp/ui/uimessagebox.hpp>
#include <eepp/ui/uiwidgetcreator.hpp>
#include <eepp/system/filesystem.hpp>
#include <algorithm>
namespace EE { namespace UI { namespace Tools {

View File

@@ -5,6 +5,7 @@
#include <eepp/graphics/framebuffer.hpp>
#include <eepp/graphics/renderer/renderer.hpp>
#include <eepp/system/packmanager.hpp>
#include <eepp/system/filesystem.hpp>
#include <pugixml/pugixml.hpp>
#include <eepp/ui/uiwidgetcreator.hpp>
#include <algorithm>

View File

@@ -2,6 +2,7 @@
#include <eepp/system/packmanager.hpp>
#include <eepp/system/virtualfilesystem.hpp>
#include <eepp/system/inifile.hpp>
#include <eepp/system/thread.hpp>
#include <eepp/graphics/texturefactory.hpp>
#include <eepp/graphics/fontmanager.hpp>
#include <eepp/graphics/globalbatchrenderer.hpp>