Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (24 sloc) 513 Bytes
#pragma once
#include <string>
#include "snoutlib/fx.h"
using namespace std;
class FX_Moving_Text : public FX
{
string m_text;
vec2 m_startpos;
vec2 m_dir;
vec2 m_speed;
float m_textsize;
vec4 m_textcolor;
vec2 m_pos;
float m_start_time;
float m_duration;
bool m_running;
public:
FX_Moving_Text(const string& text,const vec2& startpos, const vec2& dir, const vec2& speed);
~FX_Moving_Text();
void update(void);
void draw(void);
bool finished(void);
bool running(void);
};