diff options
Diffstat (limited to 'gpu/pgl/pgl.h')
-rw-r--r-- | gpu/pgl/pgl.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gpu/pgl/pgl.h b/gpu/pgl/pgl.h new file mode 100644 index 0000000..6914aae --- /dev/null +++ b/gpu/pgl/pgl.h @@ -0,0 +1,23 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef GPU_PGL_PGL_H +#define GPU_PGL_PGL_H + +#include "npapi.h" +#include "npapi_extensions.h" + +extern "C" { +typedef void* PGLContext; +typedef bool PGLBoolean; + +PGLContext pglCreateContext(NPP npp, + NPDevice* device, + NPDeviceContext3D* device_context); +PGLBoolean pglMakeCurrent(PGLContext pgl_context); +PGLBoolean pglSwapBuffers(); +PGLBoolean pglDestroyContext(PGLContext pgl_context); +} // extern "C" + +#endif // GPU_PGL_PGL_H |