Browse Source

Trade: added forward declaration header.

pull/7/head
Vladimír Vondruš 13 years ago
parent
commit
85b715e115
  1. 1
      doc/compilation-speedup.dox
  2. 20
      src/Trade/AbstractImporter.h
  3. 3
      src/Trade/CMakeLists.txt
  4. 51
      src/Trade/Trade.h

1
doc/compilation-speedup.dox

@ -26,6 +26,7 @@ available, each namespace has its own:
- SceneGraph/SceneGraph.h
- Shaders/Shaders.h
- Text/Text.h
- Trade/Trade.h
@section compilation-speedup-templates Templates

20
src/Trade/AbstractImporter.h

@ -22,28 +22,12 @@
#include <Containers/EnumSet.h>
#include <PluginManager/Plugin.h>
#include "Trade/Trade.h"
#include "magnumVisibility.h"
namespace Magnum { namespace Trade {
/** @todoc Remove `ifndef` when Doxygen is sane again */
#ifndef DOXYGEN_GENERATING_OUTPUT
class AbstractMaterialData;
class CameraData;
template<std::uint8_t> class ImageData;
class LightData;
class MeshData2D;
class MeshData3D;
class ObjectData2D;
class ObjectData3D;
class SceneData;
class TextureData;
#endif
typedef ImageData<1> ImageData1D;
typedef ImageData<2> ImageData2D;
typedef ImageData<3> ImageData3D;
/**
@brief Base for importer plugins

3
src/Trade/CMakeLists.txt

@ -12,7 +12,8 @@ set(MagnumTrade_HEADERS
ObjectData3D.h
PhongMaterialData.h
SceneData.h
TextureData.h)
TextureData.h
Trade.h)
install(FILES ${MagnumTrade_HEADERS} DESTINATION ${MAGNUM_INCLUDE_INSTALL_DIR}/Trade)
if(BUILD_TESTS)

51
src/Trade/Trade.h

@ -0,0 +1,51 @@
#ifndef Magnum_Trade_Trade_h
#define Magnum_Trade_Trade_h
/*
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz>
This file is part of Magnum.
Magnum is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
only, as published by the Free Software Foundation.
Magnum is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License version 3 for more details.
*/
/** @file
* @brief Forward declarations for Magnum::Trade namespace
*/
#include <cstdint>
namespace Magnum { namespace Trade {
/** @todoc Remove `ifndef` when Doxygen is sane again */
#ifndef DOXYGEN_GENERATING_OUTPUT
class AbstractImporter;
class AbstractMaterialData;
class CameraData;
template<std::uint8_t> class ImageData;
typedef ImageData<1> ImageData1D;
typedef ImageData<2> ImageData2D;
typedef ImageData<3> ImageData3D;
class LightData;
class MeshData2D;
class MeshData3D;
class MeshObjectData2D;
class MeshObjectData3D;
class ObjectData2D;
class ObjectData3D;
class PhongMaterialData;
class SceneData;
class TextureData;
#endif
}}
#endif
Loading…
Cancel
Save