Browse Source

Initial support for Text library.

pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
a208a289ba
  1. 1
      CMakeLists.txt
  2. 9
      doc/namespaces.dox
  3. 6
      modules/FindMagnum.cmake
  4. 4
      src/CMakeLists.txt
  5. 0
      src/Text/CMakeLists.txt

1
CMakeLists.txt

@ -15,6 +15,7 @@ cmake_dependent_option(WITH_PHYSICS "Build Physics library" OFF "NOT WITH_EVERYT
cmake_dependent_option(WITH_PRIMITIVES "Builf Primitives library" OFF "NOT WITH_EVERYTHING;NOT WITH_DEBUGTOOLS" ON) cmake_dependent_option(WITH_PRIMITIVES "Builf Primitives library" OFF "NOT WITH_EVERYTHING;NOT WITH_DEBUGTOOLS" ON)
cmake_dependent_option(WITH_SCENEGRAPH "Build SceneGraph library" OFF "NOT WITH_EVERYTHING;NOT WITH_DEBUGTOOLS" ON) cmake_dependent_option(WITH_SCENEGRAPH "Build SceneGraph library" OFF "NOT WITH_EVERYTHING;NOT WITH_DEBUGTOOLS" ON)
cmake_dependent_option(WITH_SHADERS "Build Shaders library" OFF "NOT WITH_EVERYTHING;NOT WITH_DEBUGTOOLS" ON) cmake_dependent_option(WITH_SHADERS "Build Shaders library" OFF "NOT WITH_EVERYTHING;NOT WITH_DEBUGTOOLS" ON)
cmake_dependent_option(WITH_TEXT "Build Text library" OFF "NOT WITH_EVERYTHING" ON)
cmake_dependent_option(WITH_TEXTURETOOLS "Build TextureTools library" OFF "NOT WITH_EVERYTHING" ON) cmake_dependent_option(WITH_TEXTURETOOLS "Build TextureTools library" OFF "NOT WITH_EVERYTHING" ON)
cmake_dependent_option(WITH_MAGNUMINFO "Build magnum-info utility" OFF "NOT WITH_EVERYTHING" ON) cmake_dependent_option(WITH_MAGNUMINFO "Build magnum-info utility" OFF "NOT WITH_EVERYTHING" ON)

9
doc/namespaces.dox

@ -104,6 +104,15 @@ Collision detection system and rigid body objects. See @ref collision-detection
for introduction. for introduction.
*/ */
/** @dir Text
* @brief Namespace Magnum::Text
*/
/** @namespace Magnum::Text
@brief %Text rendering
Font texture creation and text layouting.
*/
/** @dir TextureTools /** @dir TextureTools
* @brief Namespace Magnum::TextureTools * @brief Namespace Magnum::TextureTools
*/ */

6
modules/FindMagnum.cmake

@ -22,6 +22,7 @@
# Primitives - Library with stock geometric primitives (static) # Primitives - Library with stock geometric primitives (static)
# SceneGraph - Scene graph library # SceneGraph - Scene graph library
# Shaders - Library with stock shaders # Shaders - Library with stock shaders
# Text - Text rendering library
# TextureTools - TextureTools library # TextureTools - TextureTools library
# GlxApplication - GLX application (depends on X11 libraries) # GlxApplication - GLX application (depends on X11 libraries)
# XEglApplication - X/EGL application (depends on EGL and X11 libraries) # XEglApplication - X/EGL application (depends on EGL and X11 libraries)
@ -198,6 +199,11 @@ foreach(component ${Magnum_FIND_COMPONENTS})
set(_MAGNUM_${_COMPONENT}_INCLUDE_PATH_NAMES PhongShader.h) set(_MAGNUM_${_COMPONENT}_INCLUDE_PATH_NAMES PhongShader.h)
endif() endif()
# Text library
if(${component} STREQUAL Text)
set(_MAGNUM_${_COMPONENT}_INCLUDE_PATH_NAMES Font.h)
endif()
# TextureTools library # TextureTools library
if(${component} STREQUAL TextureTools) if(${component} STREQUAL TextureTools)
set(_MAGNUM_${_COMPONENT}_INCLUDE_PATH_NAMES Atlas.h) set(_MAGNUM_${_COMPONENT}_INCLUDE_PATH_NAMES Atlas.h)

4
src/CMakeLists.txt

@ -162,6 +162,10 @@ if(WITH_SHADERS)
add_subdirectory(Shaders) add_subdirectory(Shaders)
endif() endif()
if(WITH_TEXT)
add_subdirectory(Text)
endif()
if(WITH_TEXTURETOOLS) if(WITH_TEXTURETOOLS)
add_subdirectory(TextureTools) add_subdirectory(TextureTools)
endif() endif()

0
src/Text/CMakeLists.txt

Loading…
Cancel
Save