00001 #ifndef __RE_EGLVisual_h__ 00002 #define __RE_EGLVisual_h__ 00003 00004 #include "RE_API.h" 00005 #include "RE_Visual.h" 00006 00007 class RE_EGLServer; 00008 class RE_EGLWindow; 00009 00010 class RE_API RE_EGLVisual : public RE_Visual 00011 { 00012 public: 00013 RE_EGLVisual(RE_Server *newserver, 00014 RE_DisplayMode newmode, 00015 int hasover=1); 00016 virtual ~RE_EGLVisual(); 00017 00018 // Visuals share the context with their parent window in this setup. 00019 void setWindow(RE_EGLWindow *win); 00020 00021 virtual RE_OGLContext getGraphicsContext(bool &needs_initialization, 00022 RE_Window *win); 00023 virtual RE_OGLContext getAlternateContext(bool &needs_initialization, 00024 RE_Window *win); 00025 00026 private: 00027 void initializeAltVisual(); 00028 00029 RE_EGLServer *myServer; 00030 EGLContext myContext; 00031 bool myContextInit; 00032 }; 00033 00034 #endif
1.5.9