]> git.cworth.org Git - apitrace/blobdiff - retrace/glws.hpp
stash: Trace and replay of glx-tfp works
[apitrace] / retrace / glws.hpp
index c76e19321706a5c8a02fca80dfcce7774ad2ce6f..d07eeb4db88c9132ac07db566c2ed57a5165bf93 100644 (file)
@@ -95,7 +95,6 @@ public:
     virtual ~Visual() {}
 };
 
-
 class Drawable
 {
 public:
@@ -130,7 +129,6 @@ public:
     virtual void swapBuffers(void) = 0;
 };
 
-
 class Context
 {
 public:
@@ -170,6 +168,36 @@ createContext(const Visual *visual, Context *shareContext = 0, Profile profile =
 bool
 makeCurrent(Drawable *drawable, Context *context);
 
+void
+createWindow(Drawable *drawable, const Visual *visual);
+
+void
+destroyWindow(Drawable *drawable);
+
+Drawable *
+createPixmap(unsigned width, unsigned height, unsigned depth);
+
+Drawable *
+createGLPixmap(GLXFBConfig fbconfig, Drawable *pixmap,
+               unsigned width, unsigned height, int *attrib_list);
+
+void
+bindTexImage(glws::Drawable *pixmap, int buffer);
+
+void
+releaseTexImage(glws::Drawable *pixmap, int buffer);
+
+void
+copySubBuffer(glws::Drawable *drawable, int x, int y, int width, int height);
+
+void
+putImageData(glws::Drawable *drawable, char *data,
+             int width, int height, int depth,
+             int bits_per_pixel, int bytes_per_line, int byte_order);
+
+GLXFBConfig
+chooseConfig(int *attrib_list);
+
 bool
 processEvents(void);