move TextRender to libraries/render-utils

This commit is contained in:
ZappoMan 2014-12-17 12:32:52 -08:00
parent a465aa20ff
commit 2be3b73e8c
11 changed files with 18 additions and 15 deletions

View file

@ -73,6 +73,7 @@
#include <ProgramObject.h> #include <ProgramObject.h>
#include <ResourceCache.h> #include <ResourceCache.h>
#include <SoundCache.h> #include <SoundCache.h>
#include <TextRenderer.h>
#include <UserActivityLogger.h> #include <UserActivityLogger.h>
#include <UUID.h> #include <UUID.h>
@ -109,7 +110,6 @@
#include "ui/InfoView.h" #include "ui/InfoView.h"
#include "ui/Snapshot.h" #include "ui/Snapshot.h"
#include "ui/Stats.h" #include "ui/Stats.h"
#include "ui/TextRenderer.h"

View file

@ -19,12 +19,12 @@
#include <glm/gtx/quaternion.hpp> #include <glm/gtx/quaternion.hpp>
#include <glm/detail/func_common.hpp> #include <glm/detail/func_common.hpp>
#include <SharedUtil.h>
#include <QThread> #include <QThread>
#include <SharedUtil.h>
#include <TextRenderer.h>
#include "InterfaceConfig.h" #include "InterfaceConfig.h"
#include "ui/TextRenderer.h"
#include "VoxelConstants.h" #include "VoxelConstants.h"
#include "world.h" #include "world.h"
#include "Application.h" #include "Application.h"

View file

@ -30,6 +30,7 @@
#include <PathUtils.h> #include <PathUtils.h>
#include <PerfStat.h> #include <PerfStat.h>
#include <SharedUtil.h> #include <SharedUtil.h>
#include <TextRenderer.h>
#include <TextureCache.h> #include <TextureCache.h>
#include "Application.h" #include "Application.h"
@ -42,7 +43,6 @@
#include "Recorder.h" #include "Recorder.h"
#include "world.h" #include "world.h"
#include "devices/OculusManager.h" #include "devices/OculusManager.h"
#include "ui/TextRenderer.h"
using namespace std; using namespace std;

View file

@ -30,6 +30,7 @@
#include <PerfStat.h> #include <PerfStat.h>
#include <ShapeCollider.h> #include <ShapeCollider.h>
#include <SharedUtil.h> #include <SharedUtil.h>
#include <TextRenderer.h>
#include "Application.h" #include "Application.h"
#include "Audio.h" #include "Audio.h"
@ -41,7 +42,6 @@
#include "Recorder.h" #include "Recorder.h"
#include "devices/Faceshift.h" #include "devices/Faceshift.h"
#include "devices/OculusManager.h" #include "devices/OculusManager.h"
#include "ui/TextRenderer.h"
using namespace std; using namespace std;

View file

@ -14,11 +14,11 @@
#include <FBXReader.h> #include <FBXReader.h>
#include <PerfStat.h> #include <PerfStat.h>
#include <TextRenderer.h>
#include "Application.h" #include "Application.h"
#include "PrioVR.h" #include "PrioVR.h"
#include "scripting/JoystickScriptingInterface.h" #include "scripting/JoystickScriptingInterface.h"
#include "ui/TextRenderer.h"
#ifdef HAVE_PRIOVR #ifdef HAVE_PRIOVR
const unsigned int SERIAL_LIST[] = { 0x00000001, 0x00000000, 0x00000008, 0x00000009, 0x0000000A, const unsigned int SERIAL_LIST[] = { 0x00000001, 0x00000000, 0x00000008, 0x00000009, 0x0000000A,

View file

@ -13,9 +13,9 @@
#include <gpu/GPUConfig.h> #include <gpu/GPUConfig.h>
#include <PerfStat.h> #include <PerfStat.h>
#include <TextRenderer.h>
#include "RenderableTextEntityItem.h" #include "RenderableTextEntityItem.h"
#include "ui/TextRenderer.h"
const int FIXED_FONT_POINT_SIZE = 40; const int FIXED_FONT_POINT_SIZE = 40;
const float LINE_SCALE_RATIO = 1.2f; const float LINE_SCALE_RATIO = 1.2f;

View file

@ -16,7 +16,7 @@
#include <glm/glm.hpp> #include <glm/glm.hpp>
#include "ui/TextRenderer.h" #include <TextRenderer.h>
class BandwidthMeter { class BandwidthMeter {

View file

@ -11,9 +11,10 @@
// include this before QGLWidget, which includes an earlier version of OpenGL // include this before QGLWidget, which includes an earlier version of OpenGL
#include "InterfaceConfig.h" #include "InterfaceConfig.h"
#include <TextRenderer.h>
#include "Application.h" #include "Application.h"
#include "Text3DOverlay.h" #include "Text3DOverlay.h"
#include "ui/TextRenderer.h"
const xColor DEFAULT_BACKGROUND_COLOR = { 0, 0, 0 }; const xColor DEFAULT_BACKGROUND_COLOR = { 0, 0, 0 };
const float DEFAULT_BACKGROUND_ALPHA = 0.7f; const float DEFAULT_BACKGROUND_ALPHA = 0.7f;

View file

@ -13,9 +13,9 @@
#include <QGLWidget> #include <QGLWidget>
#include <SharedUtil.h> #include <SharedUtil.h>
#include <TextRenderer.h>
#include "TextOverlay.h" #include "TextOverlay.h"
#include "ui/TextRenderer.h"
TextOverlay::TextOverlay() : TextOverlay::TextOverlay() :
_backgroundColor(DEFAULT_BACKGROUND_COLOR), _backgroundColor(DEFAULT_BACKGROUND_COLOR),

View file

@ -9,6 +9,8 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
// //
#include <gpu/GPUConfig.h>
#include <QApplication> #include <QApplication>
#include <QDesktopWidget> #include <QDesktopWidget>
#include <QFont> #include <QFont>
@ -18,7 +20,6 @@
#include <QStringList> #include <QStringList>
#include <QWindow> #include <QWindow>
#include "InterfaceConfig.h"
#include "TextRenderer.h" #include "TextRenderer.h"
#include "glm/glm.hpp" #include "glm/glm.hpp"

View file

@ -12,6 +12,8 @@
#ifndef hifi_TextRenderer_h #ifndef hifi_TextRenderer_h
#define hifi_TextRenderer_h #define hifi_TextRenderer_h
#include <gpu/GPUConfig.h>
#include <QColor> #include <QColor>
#include <QFont> #include <QFont>
#include <QFontMetrics> #include <QFontMetrics>
@ -19,11 +21,10 @@
#include <QImage> #include <QImage>
#include <QVector> #include <QVector>
#include "gpu/Resource.h" #include <gpu/Resource.h>
#include "gpu/Stream.h" #include <gpu/Stream.h>
#include "InterfaceConfig.h"
// a special "character" that renders as a solid block // a special "character" that renders as a solid block
const char SOLID_BLOCK_CHAR = 127; const char SOLID_BLOCK_CHAR = 127;