You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
545 B
42 lines
545 B
/* |
|
* Rick van Vonderen |
|
* 0945444 |
|
* TI2B |
|
*/ |
|
|
|
#ifndef TEXT_H |
|
#define TEXT_H |
|
|
|
#include <iostream> |
|
|
|
#include <glm/glm.hpp> |
|
|
|
#include "object.h" |
|
|
|
class Shader; |
|
|
|
class Text : public Object { |
|
public: |
|
Text(); |
|
~Text(); |
|
|
|
// ----------------------------------------- |
|
|
|
void initialize(); |
|
void update(); |
|
void render(); |
|
void destroy(); |
|
|
|
// ----------------------------------------- |
|
|
|
void setText(std::string text); |
|
|
|
private: |
|
unsigned int m_vao; |
|
unsigned int m_vbo; |
|
glm::vec3 m_color; |
|
Shader *m_shader; |
|
std::string m_text; |
|
}; |
|
|
|
#endif // TEXT_H
|
|
|