Use forward declaration in libgui
This commit is contained in:
parent
92d42fc551
commit
bc1e6762c9
14 changed files with 91 additions and 30 deletions
|
@ -22,13 +22,16 @@
|
|||
#include "game/game.h"
|
||||
#include "graphics/context.h"
|
||||
#include "graphics/features.h"
|
||||
#include "graphics/fonts.h"
|
||||
#include "graphics/lip/lips.h"
|
||||
#include "graphics/materials.h"
|
||||
#include "graphics/mesh/meshes.h"
|
||||
#include "graphics/model/models.h"
|
||||
#include "graphics/pbribl.h"
|
||||
#include "graphics/renderbuffer.h"
|
||||
#include "graphics/services.h"
|
||||
#include "graphics/walkmesh/walkmeshes.h"
|
||||
#include "graphics/window.h"
|
||||
#include "resource/resourceprovider.h"
|
||||
#include "resource/services.h"
|
||||
#include "scene/services.h"
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "../graphics/pbribl.h"
|
||||
#include "../graphics/renderbuffer.h"
|
||||
#include "../graphics/walkmesh/walkmeshes.h"
|
||||
#include "../graphics/window.h"
|
||||
#include "../scene/pipeline/world.h"
|
||||
#include "../video/bikreader.h"
|
||||
|
||||
|
|
|
@ -17,20 +17,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "types.h"
|
||||
|
||||
namespace reone {
|
||||
|
||||
namespace graphics {
|
||||
|
||||
enum class TextGravity {
|
||||
LeftCenter,
|
||||
CenterBottom,
|
||||
CenterCenter,
|
||||
CenterTop,
|
||||
RightBottom,
|
||||
RightCenter,
|
||||
RightTop
|
||||
};
|
||||
|
||||
class Context;
|
||||
class Meshes;
|
||||
class Shaders;
|
||||
|
|
|
@ -96,6 +96,16 @@ enum class BlendMode {
|
|||
Lighten
|
||||
};
|
||||
|
||||
enum class TextGravity {
|
||||
LeftCenter,
|
||||
CenterBottom,
|
||||
CenterCenter,
|
||||
CenterTop,
|
||||
RightBottom,
|
||||
RightCenter,
|
||||
RightTop
|
||||
};
|
||||
|
||||
struct TextureUnits {
|
||||
static constexpr int diffuseMap { 0 };
|
||||
static constexpr int lightmap { 1 };
|
||||
|
|
|
@ -23,10 +23,13 @@
|
|||
#include "../../graphics/mesh/mesh.h"
|
||||
#include "../../graphics/mesh/meshes.h"
|
||||
#include "../../graphics/renderbuffer.h"
|
||||
#include "../../graphics/services.h"
|
||||
#include "../../graphics/shader/shaders.h"
|
||||
#include "../../graphics/texture/textures.h"
|
||||
#include "../../graphics/textutil.h"
|
||||
#include "../../graphics/window.h"
|
||||
#include "../../resource/gffstruct.h"
|
||||
#include "../../resource/services.h"
|
||||
#include "../../resource/strings.h"
|
||||
|
||||
#include "../gui.h"
|
||||
|
|
|
@ -17,18 +17,30 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "../../graphics/font.h"
|
||||
#include "../../graphics/framebuffer.h"
|
||||
#include "../../graphics/texture/texture.h"
|
||||
#include "../../resource/format/gffreader.h"
|
||||
#include "../../scene/node/model.h"
|
||||
#include "../../graphics/types.h"
|
||||
#include "../../scene/pipeline/control.h"
|
||||
#include "../../scene/scenegraph.h"
|
||||
|
||||
#include "../types.h"
|
||||
|
||||
namespace reone {
|
||||
|
||||
namespace resource {
|
||||
|
||||
class GffStruct;
|
||||
|
||||
}
|
||||
|
||||
namespace graphics {
|
||||
|
||||
class Font;
|
||||
class Texture;
|
||||
|
||||
}
|
||||
|
||||
namespace gui {
|
||||
|
||||
class GUI;
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
#include "../../graphics/mesh/mesh.h"
|
||||
#include "../../graphics/mesh/meshes.h"
|
||||
#include "../../graphics/renderbuffer.h"
|
||||
#include "../../graphics/services.h"
|
||||
#include "../../graphics/shader/shaders.h"
|
||||
#include "../../graphics/texture/texture.h"
|
||||
#include "../../graphics/window.h"
|
||||
|
||||
#include "../gui.h"
|
||||
|
||||
|
|
|
@ -18,10 +18,12 @@
|
|||
#include "listbox.h"
|
||||
|
||||
#include "../../common/log.h"
|
||||
#include "../../graphics/font.h"
|
||||
#include "../../graphics/mesh/meshes.h"
|
||||
#include "../../graphics/renderbuffer.h"
|
||||
#include "../../graphics/shader/shaders.h"
|
||||
#include "../../graphics/textutil.h"
|
||||
#include "../../resource/gffstruct.h"
|
||||
#include "../../resource/resources.h"
|
||||
|
||||
#include "../gui.h"
|
||||
|
|
|
@ -21,7 +21,12 @@
|
|||
#include "../../graphics/mesh/mesh.h"
|
||||
#include "../../graphics/mesh/meshes.h"
|
||||
#include "../../graphics/renderbuffer.h"
|
||||
#include "../../graphics/services.h"
|
||||
#include "../../graphics/shader/shaders.h"
|
||||
#include "../../graphics/texture/texture.h"
|
||||
#include "../../graphics/texture/textures.h"
|
||||
#include "../../graphics/window.h"
|
||||
#include "../../resource/gffstruct.h"
|
||||
|
||||
#include "../gui.h"
|
||||
|
||||
|
|
|
@ -21,8 +21,12 @@
|
|||
#include "../../graphics/mesh/mesh.h"
|
||||
#include "../../graphics/mesh/meshes.h"
|
||||
#include "../../graphics/renderbuffer.h"
|
||||
#include "../../graphics/services.h"
|
||||
#include "../../graphics/shader/shaders.h"
|
||||
#include "../../graphics/texture/texture.h"
|
||||
#include "../../graphics/texture/textures.h"
|
||||
#include "../../graphics/window.h"
|
||||
#include "../../resource/gffstruct.h"
|
||||
#include "../../resource/resources.h"
|
||||
|
||||
#include "../gui.h"
|
||||
|
|
|
@ -17,13 +17,19 @@
|
|||
|
||||
#include "gui.h"
|
||||
|
||||
#include "../common/guardutil.h"
|
||||
#include "../common/log.h"
|
||||
#include "../graphics/context.h"
|
||||
#include "../graphics/mesh/mesh.h"
|
||||
#include "../graphics/mesh/meshes.h"
|
||||
#include "../graphics/services.h"
|
||||
#include "../graphics/shader/shaders.h"
|
||||
#include "../graphics/texture/texture.h"
|
||||
#include "../graphics/texture/textures.h"
|
||||
#include "../graphics/window.h"
|
||||
#include "../resource/gffstruct.h"
|
||||
#include "../resource/resources.h"
|
||||
#include "../resource/services.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace std::placeholders;
|
||||
|
|
|
@ -17,23 +17,32 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "../audio/services.h"
|
||||
#include "../graphics/fonts.h"
|
||||
#include "../graphics/mesh/meshes.h"
|
||||
#include "../graphics/services.h"
|
||||
#include "../graphics/shader/shaders.h"
|
||||
#include "../graphics/texture/textures.h"
|
||||
#include "../graphics/window.h"
|
||||
#include "../resource/format/gffreader.h"
|
||||
#include "../resource/resources.h"
|
||||
#include "../resource/services.h"
|
||||
#include "../resource/strings.h"
|
||||
#include "../resource/types.h"
|
||||
#include "../graphics/options.h"
|
||||
|
||||
#include "control/control.h"
|
||||
|
||||
namespace reone {
|
||||
|
||||
namespace resource {
|
||||
|
||||
class GffStruct;
|
||||
class ResourceServices;
|
||||
|
||||
}
|
||||
|
||||
namespace audio {
|
||||
|
||||
class AudioServices;
|
||||
|
||||
}
|
||||
|
||||
namespace graphics {
|
||||
|
||||
class GraphicsServices;
|
||||
class Texture;
|
||||
|
||||
}
|
||||
|
||||
namespace gui {
|
||||
|
||||
constexpr int kDefaultResolutionX = 640;
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "../scene/node/camera.h"
|
||||
#include "../scene/node/mesh.h"
|
||||
#include "../scene/node/model.h"
|
||||
#include "../scene/scenegraph.h"
|
||||
|
||||
using namespace std;
|
||||
|
|
|
@ -18,13 +18,22 @@
|
|||
#pragma once
|
||||
|
||||
#include "../graphics/options.h"
|
||||
#include "../graphics/services.h"
|
||||
|
||||
#include "../scene/node/model.h"
|
||||
#include "../scene/scenegraph.h"
|
||||
|
||||
namespace reone {
|
||||
|
||||
namespace graphics {
|
||||
|
||||
class GraphicsServices;
|
||||
|
||||
}
|
||||
|
||||
namespace scene {
|
||||
|
||||
class ModelSceneNode;
|
||||
class SceneGraph;
|
||||
|
||||
}
|
||||
|
||||
namespace gui {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue