Skip to content

Commit

Permalink
Merge pull request AtomicGameEngine#1564 from AtomicGameEngine/JME-AT…
Browse files Browse the repository at this point in the history
…OMIC-260

Text3D port to Graphics module
  • Loading branch information
JoshEngebretson authored Jun 12, 2017
2 parents 3bd27a0 + 3c5810c commit 9d05fa9
Show file tree
Hide file tree
Showing 18 changed files with 4,589 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Script/Packages/Atomic/Graphics.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "Graphics",
"sources" : ["Source/Atomic/Graphics"],
"sources" : ["Source/Atomic/Graphics", "Source/Atomic/Graphics/Text3D"],
"includes" : ["<Atomic/Scene/Scene.h>", "<Atomic/Graphics/OcclusionBuffer.h>", "<Atomic/Scene/ValueAnimation.h>",
"<Atomic/Container/ArrayPtr.h>", "<Atomic/Graphics/Animation.h>",
"<Atomic/Graphics/Material.h>", "<Atomic/Resource/Image.h>", "<Atomic/Graphics/VertexBuffer.h>"],
Expand All @@ -14,7 +14,8 @@
"StaticModel",
"Animation", "AnimatedModel", "AnimationController", "AnimationState", "Billboard", "BillboardSet", "CustomGeometry",
"DecalSet", "ParticleEffect", "ParticleEmitter", "RibbonTrail",
"Skybox", "StaticModelGroup", "Terrain", "TerrainPatch"],
"Skybox", "StaticModelGroup", "Terrain", "TerrainPatch",
"Text3D", "Text3DFont"],
"overloads" : {
"Viewport" : {
"Viewport" : ["Context", "Scene", "Camera", "RenderPath"],
Expand Down
2 changes: 1 addition & 1 deletion Source/Atomic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ file (GLOB SYSTEM_UI_SOURCE UI/SystemUI/*.cpp UI/SystemUI/*.h)
file (GLOB PHYSICS_SOURCE Physics/*.cpp Physics/*.h)
file (GLOB NAVIGATION_SOURCE Navigation/*.cpp Navigation/*.h)
file (GLOB ENVIRONMENT_SOURCE Environment/*.cpp Environment/*.h)
file (GLOB GRAPHICS_SOURCE Graphics/*.cpp Graphics/*.h)
file (GLOB GRAPHICS_SOURCE Graphics/*.cpp Graphics/*.h Graphics/Text3D/*.cpp Graphics/Text3D/*.h)
if (ATOMIC_IK)
file (GLOB IK_SOURCE IK/*.cpp IK/*.h)
endif ()
Expand Down
11 changes: 11 additions & 0 deletions Source/Atomic/Graphics/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
#include "../IO/Log.h"

// ATOMIC BEGIN

#include "Text3D/Text3DFont.h"
#include "Text3D/Text3DText.h"
#include "Text3D/Text3D.h"

#include <SDL/include/SDL.h>
#include <SDL/include/SDL_syswm.h>
// ATOMIC END
Expand Down Expand Up @@ -404,6 +409,12 @@ void RegisterGraphicsLibrary(Context* context)
DebugRenderer::RegisterObject(context);
Octree::RegisterObject(context);
Zone::RegisterObject(context);

// ATOMIC BEGIN
Text3DFont::RegisterObject(context);
Text3DText::RegisterObject(context);
Text3D::RegisterObject(context);
// ATOMIC END
}

// ATOMIC BEGIN
Expand Down
Loading

0 comments on commit 9d05fa9

Please sign in to comment.