You.i Engine
YiAtlasTextSceneNode.h
Go to the documentation of this file.
1 // © You i Labs Inc. All rights reserved.
2 #ifndef _YI_ATLAS_TEXT_SCENE_NODE_H_
3 #define _YI_ATLAS_TEXT_SCENE_NODE_H_
4 
6 
8 class CYIUnderlineSceneNode;
9 
27 {
28 public:
30  virtual ~CYIAtlasTextSceneNode();
31 
32 protected:
38  void GenerateTextMesh();
39 
40  virtual void PrepareToDraw() override;
41 
42  virtual void SpecializeTextRenderInfo(CYITextEngine::RenderInfo *pInfo) override;
43 
44 private:
45  std::shared_ptr<CYIAssetBufferObjectData> m_pVertices;
46  CYIUnderlineSceneNode *m_pUnderlineNode;
47 
49 };
50 
55 #endif // _YI_ATLAS_TEXT_SCENE_NODE_H_
Struct used to pass information when rendering text.
Definition: YiTextEngine.h:210
virtual void PrepareToDraw() override
A specialized CYITextSceneNode that uses a texture atlas.
Definition: YiAtlasTextSceneNode.h:26
A scene node type that renders text.
Definition: YiTextSceneNode.h:79
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:259
As asset container which wraps shared index or vertex buffer object data.
Definition: YiAssetBufferObjectData.h:17
virtual void SpecializeTextRenderInfo(CYITextEngine::RenderInfo *pInfo) override
virtual ~CYIAtlasTextSceneNode()