summaryrefslogtreecommitdiffstats
path: root/gpu/pgl/pgl.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/pgl/pgl.h')
-rw-r--r--gpu/pgl/pgl.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/gpu/pgl/pgl.h b/gpu/pgl/pgl.h
index 6914aae..f848968 100644
--- a/gpu/pgl/pgl.h
+++ b/gpu/pgl/pgl.h
@@ -8,16 +8,32 @@
#include "npapi.h"
#include "npapi_extensions.h"
+#ifdef __cplusplus
extern "C" {
+#endif
+
typedef void* PGLContext;
typedef bool PGLBoolean;
+// Create A PGL context from a Pepper 3D device context.
PGLContext pglCreateContext(NPP npp,
NPDevice* device,
NPDeviceContext3D* device_context);
+
+// Set the current PGL context for the calling thread.
PGLBoolean pglMakeCurrent(PGLContext pgl_context);
-PGLBoolean pglSwapBuffers();
+
+// Get the calling thread's current PGL context.
+PGLContext pglGetCurrentContext(void);
+
+// Display everything that has been rendered since the last call.
+PGLBoolean pglSwapBuffers(void);
+
+// Destroy the given PGL context.
PGLBoolean pglDestroyContext(PGLContext pgl_context);
+
+#ifdef __cplusplus
} // extern "C"
+#endif
#endif // GPU_PGL_PGL_H