Team Fortress 2 Source Code as on 22/4/2020
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.

60 lines
1.5 KiB

  1. //
  2. // mxToolKit (c) 1999 by Mete Ciragan
  3. //
  4. // file: mxMatSysWindow.h
  5. // implementation: all
  6. // last modified: Apr 21 1999, Mete Ciragan
  7. // copyright: The programs and associated files contained in this
  8. // distribution were developed by Mete Ciragan. The programs
  9. // are not in the public domain, but they are freely
  10. // distributable without licensing fees. These programs are
  11. // provided without guarantee or warrantee expressed or
  12. // implied.
  13. //
  14. #ifndef INCLUDED_MXMATSYSWINDOW
  15. #define INCLUDED_MXMATSYSWINDOW
  16. #ifndef INCLUDED_MXWINDOW
  17. #include "mxtk/mxWindow.h"
  18. #endif
  19. class mxMatSysWindow_i;
  20. class mxMatSysWindow : public mxWindow
  21. {
  22. mxMatSysWindow_i *d_this;
  23. void (*d_drawFunc) (void);
  24. public:
  25. // ENUMS
  26. enum { FormatDouble, FormatSingle };
  27. // CREATORS
  28. mxMatSysWindow (mxWindow *parent, int x, int y, int w, int h, const char *label = 0, int style = 0);
  29. virtual ~mxMatSysWindow ();
  30. // IMaterialSystem *Init( const char *szGamedir, const char *szMaterialSystem, const char *szShader, const char *szProxy );
  31. // MANIPULATORS
  32. virtual int handleEvent (mxEvent *event);
  33. virtual void redraw ();
  34. virtual void draw ();
  35. int makeCurrent ();
  36. int swapBuffers ();
  37. // MANIPULATORS
  38. void setDrawFunc (void (*func) (void));
  39. private:
  40. // NOT IMPLEMENTED
  41. mxMatSysWindow (const mxMatSysWindow&);
  42. mxMatSysWindow& operator= (const mxMatSysWindow&);
  43. };
  44. #endif // INCLUDED_MXGLWINDOW