Skip to content

Commit

Permalink
GRAPHICS: Move meshutil.h/.cpp into graphics/
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Jan 28, 2014
1 parent 1af9717 commit 9b7724f
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 24 deletions.
2 changes: 2 additions & 0 deletions src/graphics/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ noinst_HEADERS = \
types.h \
util.h \
yuv_to_rgb.h \
meshutil.h \
renderer.h \
graphics.h \
textureman.h \
Expand All @@ -23,6 +24,7 @@ noinst_HEADERS = \

libgraphics_la_SOURCES = \
yuv_to_rgb.cpp \
meshutil.cpp \
renderer.cpp \
graphics.cpp \
textureman.cpp \
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 @@ -4,7 +4,6 @@ noinst_LTLIBRARIES = libaurora.la

noinst_HEADERS = \
types.h \
meshutil.h \
sceneman.h \
renderable.h \
cube.h \
Expand All @@ -16,7 +15,6 @@ noinst_HEADERS = \
$(EMPTY)

libaurora_la_SOURCES = \
meshutil.cpp \
sceneman.cpp \
renderable.cpp \
cube.cpp \
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/aurora/cube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
#include "common/uuid.h"

#include "graphics/util.h"
#include "graphics/meshutil.h"
#include "graphics/materialman.h"

#include "graphics/aurora/types.h"
#include "graphics/aurora/meshutil.h"
#include "graphics/aurora/cube.h"

static const float kSide1Vertices[] = { -1, -1, -1, 1, -1, -1, -1, 1, -1, 1, 1, -1 };
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/aurora/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
#include "common/uuid.h"

#include "graphics/util.h"
#include "graphics/meshutil.h"
#include "graphics/materialman.h"

#include "graphics/aurora/types.h"
#include "graphics/aurora/model.h"
#include "graphics/aurora/meshutil.h"

namespace Graphics {

Expand Down
3 changes: 2 additions & 1 deletion src/graphics/aurora/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
#include "common/types.h"
#include "common/ustring.h"

#include "graphics/meshutil.h"

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

namespace Ogre {
class SceneNode;
Expand Down
3 changes: 2 additions & 1 deletion src/graphics/aurora/model_kotor.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@

#include "graphics/materialman.h"

#include "graphics/meshutil.h"

#include "graphics/aurora/types.h"
#include "graphics/aurora/model.h"
#include "graphics/aurora/meshutil.h"

namespace Ogre {
class SceneNode;
Expand Down
3 changes: 2 additions & 1 deletion src/graphics/aurora/model_nwn.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@

#include "graphics/materialman.h"

#include "graphics/meshutil.h"

#include "graphics/aurora/types.h"
#include "graphics/aurora/model.h"
#include "graphics/aurora/meshutil.h"

namespace Ogre {
class SceneNode;
Expand Down
3 changes: 2 additions & 1 deletion src/graphics/aurora/model_nwn2.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@

#include "graphics/materialman.h"

#include "graphics/meshutil.h"

#include "graphics/aurora/types.h"
#include "graphics/aurora/model.h"
#include "graphics/aurora/meshutil.h"

namespace Ogre {
class SceneNode;
Expand Down
3 changes: 2 additions & 1 deletion src/graphics/aurora/model_witcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@

#include "graphics/materialman.h"

#include "graphics/meshutil.h"

#include "graphics/aurora/types.h"
#include "graphics/aurora/model.h"
#include "graphics/aurora/meshutil.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 @@ -31,9 +31,9 @@
#include "common/threads.h"

#include "graphics/util.h"
#include "graphics/meshutil.h"
#include "graphics/cameraman.h"

#include "graphics/aurora/meshutil.h"
#include "graphics/aurora/sceneman.h"
#include "graphics/aurora/renderable.h"
#include "graphics/aurora/cube.h"
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/meshutil.cpp
/** @file graphics/meshutil.cpp
* A scene manager.
*/

Expand All @@ -37,14 +37,12 @@
#include "common/error.h"
#include "common/threads.h"

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

#include "events/requests.h"

namespace Graphics {

namespace Aurora {

VertexDeclaration::VertexDeclaration() : textureUVW(false), faces(0), vertices(0), textures(0) {
}

Expand Down Expand Up @@ -219,6 +217,4 @@ Ogre::MeshManager &getOgreMeshManager() {
return Ogre::MeshManager::getSingleton();
}

} // End of namespace Aurora

} // End of namespace Graphics
12 changes: 4 additions & 8 deletions src/graphics/aurora/meshutil.h → src/graphics/meshutil.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/meshutil.h
/** @file graphics/meshutil.h
* A scene manager.
*/

#ifndef GRAPHICS_AURORA_MESHUTIL_H
#define GRAPHICS_AURORA_MESHUTIL_H
#ifndef GRAPHICS_MESHUTIL_H
#define GRAPHICS_MESHUTIL_H

#include <vector>

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

namespace Graphics {

namespace Aurora {

Ogre::MeshManager &getOgreMeshManager();

struct VertexDeclaration {
Expand Down Expand Up @@ -75,8 +73,6 @@ void createMesh(Ogre::SubMesh *mesh, uint16 vertexCount, uint16 faceCount,
const float *vertices, const float *normals, const uint16 *indices,
const float *texCoords1 = 0, const float *texCoords2 = 0, const float *texCoords3 = 0);

} // End of namespace Aurora

} // End of namespace Graphics

#endif // GRAPHICS_AURORA_MESHUTIL_H
#endif // GRAPHICS_MESHUTIL_H

0 comments on commit 9b7724f

Please sign in to comment.