OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_PGL_PGL_H | 5 #ifndef GPU_PGL_PGL_H |
6 #define GPU_PGL_PGL_H | 6 #define GPU_PGL_PGL_H |
7 | 7 |
8 #include <npapi.h> | 8 #include <npapi.h> |
9 #include <npapi_extensions.h> | 9 #include <npapi_extensions.h> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 PGLContext pglCreateContext(NPP npp, | 42 PGLContext pglCreateContext(NPP npp, |
43 NPDevice* device, | 43 NPDevice* device, |
44 NPDeviceContext3D* device_context); | 44 NPDeviceContext3D* device_context); |
45 | 45 |
46 // Set the current PGL context for the calling thread. | 46 // Set the current PGL context for the calling thread. |
47 PGLBoolean pglMakeCurrent(PGLContext pgl_context); | 47 PGLBoolean pglMakeCurrent(PGLContext pgl_context); |
48 | 48 |
49 // Get the calling thread's current PGL context. | 49 // Get the calling thread's current PGL context. |
50 PGLContext pglGetCurrentContext(void); | 50 PGLContext pglGetCurrentContext(void); |
51 | 51 |
| 52 // Gets the address of a function. |
| 53 void (*pglGetProcAddress(char const * procname))(); |
| 54 |
52 // Display everything that has been rendered since the last call. | 55 // Display everything that has been rendered since the last call. |
53 PGLBoolean pglSwapBuffers(void); | 56 PGLBoolean pglSwapBuffers(void); |
54 | 57 |
55 // Destroy the given PGL context. | 58 // Destroy the given PGL context. |
56 PGLBoolean pglDestroyContext(PGLContext pgl_context); | 59 PGLBoolean pglDestroyContext(PGLContext pgl_context); |
57 | 60 |
58 // Return the current PGL error. | 61 // Return the current PGL error. |
59 PGLInt pglGetError(); | 62 PGLInt pglGetError(); |
60 | 63 |
61 #ifdef __cplusplus | 64 #ifdef __cplusplus |
62 } // extern "C" | 65 } // extern "C" |
63 #endif | 66 #endif |
64 | 67 |
65 #endif // GPU_PGL_PGL_H | 68 #endif // GPU_PGL_PGL_H |
OLD | NEW |