Mercurial > fife-parpg
comparison engine/core/view/renderers/genericrenderer.h @ 31:9a9f4447af7c
add animation renderer
author | spq@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 11 Jul 2008 14:35:31 +0000 |
parents | 0cb049f291e1 |
children | 75b6394ced14 |
comparison
equal
deleted
inserted
replaced
30:9c3f37432a28 | 31:9a9f4447af7c |
---|---|
133 GenericRendererAnimationInfo(GenericRendererNode n, int animation); | 133 GenericRendererAnimationInfo(GenericRendererNode n, int animation); |
134 virtual ~GenericRendererAnimationInfo() {}; | 134 virtual ~GenericRendererAnimationInfo() {}; |
135 private: | 135 private: |
136 GenericRendererNode m_anchor; | 136 GenericRendererNode m_anchor; |
137 int m_animation; | 137 int m_animation; |
138 unsigned int m_start_time; | |
139 float m_time_scale; | |
138 }; | 140 }; |
139 class GenericRendererTextInfo : public GenericRendererElementInfo { | 141 class GenericRendererTextInfo : public GenericRendererElementInfo { |
140 public: | 142 public: |
141 void render(Camera* cam, Layer* layer, std::vector<Instance*>& instances, RenderBackend* renderbackend, ImagePool* imagepool, AnimationPool* animpool); | 143 void render(Camera* cam, Layer* layer, std::vector<Instance*>& instances, RenderBackend* renderbackend, ImagePool* imagepool, AnimationPool* animpool); |
142 GenericRendererTextInfo(GenericRendererNode n, AbstractFont* font, std::string text); | 144 GenericRendererTextInfo(GenericRendererNode n, AbstractFont* font, std::string text); |