GraphicsContext3DInternal.h [plain text]
#ifndef GraphicsContext3DInternal_h
#define GraphicsContext3DInternal_h
typedef struct __GLXcontextRec *GLXContext;
typedef unsigned long GLXPbuffer;
typedef unsigned long GLXPixmap;
typedef unsigned char GLubyte;
typedef unsigned long Pixmap;
namespace WebCore {
class GraphicsContext3D;
class GraphicsContext3DInternal {
public:
static PassOwnPtr<GraphicsContext3DInternal> create();
~GraphicsContext3DInternal();
void makeContextCurrent();
private:
friend class GraphicsContext3D;
static GraphicsContext3DInternal* createPbufferContext();
static GraphicsContext3DInternal* createPixmapContext();
GraphicsContext3DInternal(GLXContext, GLXPbuffer);
GraphicsContext3DInternal(GLXContext, Pixmap, GLXPixmap);
static void addActiveGraphicsContext(GraphicsContext3D*);
static void removeActiveGraphicsContext(GraphicsContext3D*);
static void cleanupActiveContextsAtExit();
GLXContext m_context;
GLXPbuffer m_pbuffer;
Pixmap m_pixmap;
GLXPixmap m_glxPixmap;
};
}
#endif // GraphicsContext3DIternal_h