#ifndef _CORERAVEN_OPENGL_H #define _CORERAVEN_OPENGL_H #include "common.h" #include "keymap.h" #include "core.h" using namespace std; class CoreOpenGL: public Core { protected: Display *dpy; int screen,best_mode,modedepth; Window win; GLXContext ctx; XSetWindowAttributes attr; Bool fs; XF86VidModeModeInfo deskMode; XF86VidModeModeInfo **modes; friend class RendererOpenGL; // main constructor for use with CoreFactory friend class CoreFactory; CoreOpenGL(char *title,unsigned int width,unsigned int height,int colorsize,int depthsize,int flags); public: virtual ~CoreOpenGL(); virtual bool Start(); // initialize API for use virtual bool Stop(); // deinitialize API before deleting virtual bool Update(); // update; this handles events and updates the display }; #endif