00001 #ifndef BCPBUFFER_H
00002 #define BCPBUFFER_H
00003
00004 #if defined(HAVE_CONFIG_H)
00005 #include "config.h"
00006 #endif
00007
00008 #ifdef HAVE_GL
00009 #include <GL/glx.h>
00010 #endif
00011
00012 #include "vframe.inc"
00013
00014
00015
00016
00017
00018
00019 class BC_PBuffer
00020 {
00021 public:
00022 BC_PBuffer(int w, int h);
00023 ~BC_PBuffer();
00024
00025 friend class VFrame;
00026
00027 void reset();
00028
00029
00030
00031 void enable_opengl();
00032 #ifdef HAVE_GL
00033 GLXPbuffer get_pbuffer();
00034 #endif
00035
00036 private:
00037
00038 void new_pbuffer(int w, int h);
00039
00040 #ifdef HAVE_GL
00041 GLXPbuffer pbuffer;
00042 GLXContext gl_context;
00043 #endif
00044 int w;
00045 int h;
00046 int window_id;
00047 };
00048
00049
00050
00051
00052
00053 #endif