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 27 28 29 30 31 32 33
|
#ifndef MAIN_H
#define MAIN_H
class NstWindow : public Fl_Double_Window {
private:
int handle(int e);
public:
NstWindow(int w, int h, const char* t = 0) : Fl_Double_Window(w, h, t) { }
virtual ~NstWindow() { }
};
class NstGlArea : public Fl_Gl_Window {
private:
void draw() { nst_ogl_render(); }
int handle(int e);
public:
NstGlArea(int x, int y, int w, int h, const char *l = 0) : Fl_Gl_Window(x, y, w, h, l) {
box(FL_DOWN_FRAME);
}
};
extern Fl_Color NstGreen;
extern Fl_Color NstPurple;
extern Fl_Color NstRed;
extern Fl_Color NstBlueGrey;
extern Fl_Color NstLightGrey;
void fltkui_resize();
void fltkui_fullscreen(Fl_Widget* w, void* userdata);
#endif
|