mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-26 09:58:45 +02:00
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
//
|
|
// RenderableTextEntityItem.h
|
|
// interface/src/entities
|
|
//
|
|
// Created by Brad Hefta-Gaub on 8/6/14.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_RenderableTextEntityItem_h
|
|
#define hifi_RenderableTextEntityItem_h
|
|
|
|
#include <TextEntityItem.h>
|
|
#include <TextRenderer.h>
|
|
|
|
const int FIXED_FONT_POINT_SIZE = 40;
|
|
|
|
class RenderableTextEntityItem : public TextEntityItem {
|
|
public:
|
|
static EntityItem* factory(const EntityItemID& entityID, const EntityItemProperties& properties);
|
|
|
|
RenderableTextEntityItem(const EntityItemID& entityItemID, const EntityItemProperties& properties) :
|
|
TextEntityItem(entityItemID, properties)
|
|
{ }
|
|
~RenderableTextEntityItem() { delete _textRenderer; }
|
|
|
|
virtual void render(RenderArgs* args);
|
|
|
|
private:
|
|
TextRenderer* _textRenderer = TextRenderer::getInstance(SANS_FONT_FAMILY, FIXED_FONT_POINT_SIZE / 2.0f);
|
|
};
|
|
|
|
|
|
#endif // hifi_RenderableTextEntityItem_h
|