1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
#include <core/core.h> #include <opengl/opengl.h> // A rectangular bubble that appears class Bubble { public: Bubble(); ~Bubble(); void CreateRoundedRectangle(int, float); void Render(int); void FadeIn(int total) { m_fadein_time = m_fadein_remaining = total; } private: // Pointer to vertex and index data GLfloat * m_vertices; GLuint * m_indices; // Current transition int m_fadein_time; int m_fadein_remaining; }; |