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.
 
 
 
 
 

46 rivejä
709 B

  1. //
  2. // Neercs
  3. //
  4. // Copyright: (c) 2012 Sam Hocevar <sam@hocevar.net>
  5. //
  6. #if !defined __NEERCS_H__
  7. #define __NEERCS_H__
  8. #include <caca.h>
  9. #include "video/render.h"
  10. extern "C"
  11. {
  12. #include "old/neercs.h"
  13. }
  14. class Neercs : public WorldEntity
  15. {
  16. public:
  17. Neercs(int argc, char **argv);
  18. virtual ~Neercs();
  19. char const *GetName() { return "<neercs>"; }
  20. int hex_color(float r, float g, float b);
  21. protected:
  22. virtual void TickGame(float seconds);
  23. virtual void TickDraw(float seconds);
  24. private:
  25. bool m_ready;
  26. caca_canvas_t *m_caca;
  27. Render *m_render;
  28. float m_time;
  29. /* Old neercs stuff */
  30. char *m_buf;
  31. struct screen_list *m_screen_list;
  32. };
  33. #endif // __NEERCS_H__