Gl Graph
Gl Graph Source of glxwin.h
#ifndef GLX_WIN_H
#define GLX_WIN_H
#include <X11/X.h>
#include <X11/Xatom.h>
#include <glwindow.h>
class GlxWin : public GlWindow {
private:
Display *dpy;
Window xWin;
XEvent event;
XVisualInfo *vInfo;
XSetWindowAttributes swa;
GLXFBConfig *fbConfigs;
GLXContext context;
GLXWindow win;
XTextProperty name;
Atom wmDeleteMessage;
MouseButton currentButton;
public:
GlxWin(unsigned int width, unsigned int height);
GlxWin(unsigned int width, unsigned int height, bool debug);
void processMotion(int x, int y, unsigned int state);
void processButtonPress(int x, int y, unsigned int state, unsigned int button);
void processButtonRelease(int x, int y, unsigned int state);
void initGl();
void initAfterGl(DrawableSet * set);
void swapBuffers();
void setTitle(const char* title);
void checkEvent();
void destroyWindow();
void run();
void processButtonPressFX(int key);
Atom getDeleteMsg();
};
#endif