< prev index next >

src/java.desktop/windows/native/libawt/java2d/opengl/OGLFuncs_md.h

Print this page




  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef OGLFuncs_md_h_Included
  27 #define OGLFuncs_md_h_Included
  28 
  29 #include <windows.h>
  30 #include "J2D_GL/wglext.h"
  31 #include "OGLFuncMacros.h"
  32 #include <jdk_util.h>


  33 
  34 /**
  35  * Core WGL functions
  36  */
  37 typedef HGLRC (GLAPIENTRY *wglCreateContextType)(HDC hdc);
  38 typedef BOOL  (GLAPIENTRY *wglDeleteContextType)(HGLRC hglrc);
  39 typedef BOOL  (GLAPIENTRY *wglMakeCurrentType)(HDC hdc, HGLRC hglrc);
  40 typedef HGLRC (GLAPIENTRY *wglGetCurrentContextType)();
  41 typedef HDC   (GLAPIENTRY *wglGetCurrentDCType)();
  42 typedef PROC  (GLAPIENTRY *wglGetProcAddressType)(LPCSTR procName);
  43 typedef BOOL  (GLAPIENTRY *wglShareListsType)(HGLRC hglrc1, HGLRC hglrc2);
  44 
  45 /**
  46  * WGL extension function pointers
  47  */
  48 typedef BOOL (GLAPIENTRY *wglChoosePixelFormatARBType)(HDC hdc, const int *pAttribIList, const FLOAT *pAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
  49 typedef BOOL (GLAPIENTRY *wglGetPixelFormatAttribivARBType)(HDC, int, int, UINT, const int *, int *);
  50 typedef HPBUFFERARB (GLAPIENTRY *wglCreatePbufferARBType)(HDC, int, int, int, const int *);
  51 typedef HDC  (GLAPIENTRY *wglGetPbufferDCARBType)(HPBUFFERARB);
  52 typedef int  (GLAPIENTRY *wglReleasePbufferDCARBType)(HPBUFFERARB, HDC);




  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef OGLFuncs_md_h_Included
  27 #define OGLFuncs_md_h_Included
  28 
  29 #include <windows.h>
  30 #include "J2D_GL/wglext.h"
  31 #include "OGLFuncMacros.h"
  32 #include <jni.h>
  33 #include <jvm.h>
  34 #include <jdk_util_md.h>
  35 
  36 /**
  37  * Core WGL functions
  38  */
  39 typedef HGLRC (GLAPIENTRY *wglCreateContextType)(HDC hdc);
  40 typedef BOOL  (GLAPIENTRY *wglDeleteContextType)(HGLRC hglrc);
  41 typedef BOOL  (GLAPIENTRY *wglMakeCurrentType)(HDC hdc, HGLRC hglrc);
  42 typedef HGLRC (GLAPIENTRY *wglGetCurrentContextType)();
  43 typedef HDC   (GLAPIENTRY *wglGetCurrentDCType)();
  44 typedef PROC  (GLAPIENTRY *wglGetProcAddressType)(LPCSTR procName);
  45 typedef BOOL  (GLAPIENTRY *wglShareListsType)(HGLRC hglrc1, HGLRC hglrc2);
  46 
  47 /**
  48  * WGL extension function pointers
  49  */
  50 typedef BOOL (GLAPIENTRY *wglChoosePixelFormatARBType)(HDC hdc, const int *pAttribIList, const FLOAT *pAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
  51 typedef BOOL (GLAPIENTRY *wglGetPixelFormatAttribivARBType)(HDC, int, int, UINT, const int *, int *);
  52 typedef HPBUFFERARB (GLAPIENTRY *wglCreatePbufferARBType)(HDC, int, int, int, const int *);
  53 typedef HDC  (GLAPIENTRY *wglGetPbufferDCARBType)(HPBUFFERARB);
  54 typedef int  (GLAPIENTRY *wglReleasePbufferDCARBType)(HPBUFFERARB, HDC);


< prev index next >