// Message class
// celes@tecgraf.puc-rio.br
// Jul 2002

#ifndef UTL_MESSAGE_H
#define UTL_MESSAGE_H

#include "defines.h"

#ifdef _WIN32
#include <windows.h>
#endif
#include "glut.h"

class UTL_API UtlMessage
{
  uchar m_red, m_green, m_blue;
  void* m_font;
  float m_x, m_y;  // normalized screen position

public:
  UtlMessage (float x=-0.9, float y=0.9)
    : m_red(255), m_green(255), m_blue(255), m_font(GLUT_BITMAP_HELVETICA_10), 
    m_x(x), m_y(y)
  {
  }

  void SetColor (float red, float green, float blue);
  void SetFont (void* font);
  void SetPosition (float x, float y);
  void Display (const char* format, ...);

private:
  void show (const char* text);
};

#endif
