Skip to content

Commit

Permalink
GRAPHICS: Move Renderable into graphics/
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Jan 28, 2014
1 parent 9b7724f commit bdce641
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/engines/kotor/area.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ void Area::loadObjectModels() {
}

Engines::KotOR::Object *Area::getObjectAt(int x, int y, float &distance) const {
Graphics::Aurora::Renderable *r = SceneMan.getRenderableAt(x, y, Graphics::Aurora::kSelectableRenderable, distance);
Graphics::Renderable *r = SceneMan.getRenderableAt(x, y, Graphics::Aurora::kSelectableRenderable, distance);
if (!r)
return 0;

Expand Down
2 changes: 1 addition & 1 deletion src/engines/nwn/area.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ void Area::loadCreatures(const Aurora::GFFList &list) {
}

Engines::NWN::Object *Area::getObjectAt(int x, int y, float &distance) const {
Graphics::Aurora::Renderable *r = SceneMan.getRenderableAt(x, y, Graphics::Aurora::kSelectableRenderable, distance);
Graphics::Renderable *r = SceneMan.getRenderableAt(x, y, Graphics::Aurora::kSelectableRenderable, distance);
if (!r)
return 0;

Expand Down
2 changes: 2 additions & 0 deletions src/graphics/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ noinst_HEADERS = \
cursor.h \
cursorman.h \
cameraman.h \
renderable.h \
$(EMPTY)

libgraphics_la_SOURCES = \
Expand All @@ -32,6 +33,7 @@ libgraphics_la_SOURCES = \
cursor.cpp \
cursorman.cpp \
cameraman.cpp \
renderable.cpp \
$(EMPTY)

if DARWIN
Expand Down
2 changes: 0 additions & 2 deletions src/graphics/aurora/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ noinst_LTLIBRARIES = libaurora.la
noinst_HEADERS = \
types.h \
sceneman.h \
renderable.h \
cube.h \
model.h \
model_nwn.h \
Expand All @@ -16,7 +15,6 @@ noinst_HEADERS = \

libaurora_la_SOURCES = \
sceneman.cpp \
renderable.cpp \
cube.cpp \
model.cpp \
model_nwn.cpp \
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/aurora/cube.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#ifndef GRAPHICS_AURORA_CUBE_H
#define GRAPHICS_AURORA_CUBE_H

#include "graphics/aurora/renderable.h"
#include "graphics/renderable.h"

namespace Ogre {
class Entity;
Expand Down
3 changes: 1 addition & 2 deletions src/graphics/aurora/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
#include "common/ustring.h"

#include "graphics/meshutil.h"

#include "graphics/aurora/renderable.h"
#include "graphics/renderable.h"

namespace Ogre {
class SceneNode;
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/aurora/sceneman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
#include "graphics/util.h"
#include "graphics/meshutil.h"
#include "graphics/cameraman.h"
#include "graphics/renderable.h"

#include "graphics/aurora/sceneman.h"
#include "graphics/aurora/renderable.h"
#include "graphics/aurora/cube.h"
#include "graphics/aurora/model.h"
#include "graphics/aurora/model_nwn.h"
Expand Down
3 changes: 2 additions & 1 deletion src/graphics/aurora/sceneman.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@

namespace Graphics {

class Renderable;

namespace Aurora {

class Renderable;
class Cube;
class Model;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* The Electron engine, Copyright (c) Obsidian Entertainment and BioWare corp.
*/

/** @file graphics/aurora/renderable.cpp
/** @file graphics/renderable.cpp
* Base class for renderable objects.
*/

Expand All @@ -32,13 +32,10 @@
#include <OgreSceneManager.h>

#include "graphics/util.h"

#include "graphics/aurora/renderable.h"
#include "graphics/renderable.h"

namespace Graphics {

namespace Aurora {

Renderable::Renderable() : _rootNode(0), _visible(false) {
_basePosition[0] = 0.0;
_basePosition[1] = 0.0;
Expand Down Expand Up @@ -204,6 +201,4 @@ void Renderable::destroyAnimation(Ogre::Animation *anim) {
destroyAnimation(anim->getName().c_str());
}

} // End of namespace Aurora

} // End of namespace Graphics
12 changes: 4 additions & 8 deletions src/graphics/aurora/renderable.h → src/graphics/renderable.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
* The Electron engine, Copyright (c) Obsidian Entertainment and BioWare corp.
*/

/** @file graphics/aurora/renderable.h
/** @file graphics/renderable.h
* Base class for renderable objects.
*/

#ifndef GRAPHICS_AURORA_RENDERABLE_H
#define GRAPHICS_AURORA_RENDERABLE_H
#ifndef GRAPHICS_RENDERABLE_H
#define GRAPHICS_RENDERABLE_H

#include "common/ustring.h"

Expand All @@ -39,8 +39,6 @@ namespace Ogre {

namespace Graphics {

namespace Aurora {

class Renderable {
public:
Renderable();
Expand Down Expand Up @@ -102,8 +100,6 @@ class Renderable {
void destroyAnimation(Ogre::Animation *anim);
};

} // End of namespace Aurora

} // End of namespace Graphics

#endif // GRAPHICS_AURORA_RENDERABLE_H
#endif // GRAPHICS_RENDERABLE_H

0 comments on commit bdce641

Please sign in to comment.