#ifndef _CORERAVEN_OPENGL_H #define _CORERAVEN_OPENGL_H #include "common.h" #include "keymap.h" #include "core.h" using namespace std; LRESULT APIENTRY WindowProcGL(HWND hwnd,UINT msg,WPARAM wp,LPARAM lp); class CoreOpenGL: public Core { protected: HINSTANCE instance; HWND hwnd; HDC device; HGLRC context; void SetupPixelFormat(); friend class RendererOpenGL; friend LRESULT APIENTRY WindowProcGL(HWND hwnd,UINT msg,WPARAM wp,LPARAM lp); bool BindGLContext(); // 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