0023428: Extend OpenGl_Context to use Geometry Shaders extension
[occt.git] / src / OpenGl / OpenGl_ArbVBO.hxx
index 4920684..2a39131 100644 (file)
@@ -1,44 +1,36 @@
-// File:      OpenGl_ArbVBO.hxx
-// Created:   26 January 2012
-// Author:    Kirill GAVRILOV
-// Copyright: OPEN CASCADE 2012
+// Created on: 2012-01-26
+// Created by: Kirill GAVRILOV
+// Copyright (c) 2012-2012 OPEN CASCADE SAS
+//
+// The content of this file is subject to the Open CASCADE Technology Public
+// License Version 6.5 (the "License"). You may not use the content of this file
+// except in compliance with the License. Please obtain a copy of the License
+// at http://www.opencascade.org and read it completely before using this file.
+//
+// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
+// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+//
+// The Original Code and all software distributed under the License is
+// distributed on an "AS IS" basis, without warranty of any kind, and the
+// Initial Developer hereby disclaims all such warranties, including without
+// limitation, any warranties of merchantability, fitness for a particular
+// purpose or non-infringement. Please see the License for the specific terms
+// and conditions governing the rights and limitations under the License.
+
 
 #ifndef _OpenGl_ArbVBO_H__
 #define _OpenGl_ArbVBO_H__
 
-#if (defined(_WIN32) || defined(__WIN32__))
-  #include <windows.h>
-#endif
-#include <GL/gl.h>
-
-typedef ptrdiff_t GLsizeiptr;
+#include <OpenGl_GlCore12.hxx>
 
 //! VBO is part of OpenGL since 1.5
 struct OpenGl_ArbVBO
 {
-  #ifndef GL_ARRAY_BUFFER_ARB
-    #define GL_ARRAY_BUFFER_ARB          0x8892
-  #endif
-  #ifndef GL_STATIC_DRAW_ARB
-    #define GL_STATIC_DRAW_ARB           0x88E4
-  #endif
-  #ifndef GL_ELEMENTS_ARRAY_BUFFER_ARB
-    #define GL_ELEMENTS_ARRAY_BUFFER_ARB 0x8893
-  #endif
-
-public:
-
-  typedef void (APIENTRY *glBindBuffer_t)    (GLenum target, GLuint buffer);
-  typedef void (APIENTRY *glDeleteBuffers_t) (GLsizei n, const GLuint* buffers);
-  typedef void (APIENTRY *glGenBuffers_t)    (GLsizei n, GLuint* buffers);
-  typedef void (APIENTRY *glBufferData_t)    (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
-
-public:
 
-  glGenBuffers_t    glGenBuffersARB;
-  glBindBuffer_t    glBindBufferARB;
-  glBufferData_t    glBufferDataARB;
-  glDeleteBuffers_t glDeleteBuffersARB;
+  PFNGLGENBUFFERSARBPROC    glGenBuffersARB;
+  PFNGLBINDBUFFERARBPROC    glBindBufferARB;
+  PFNGLBUFFERDATAARBPROC    glBufferDataARB;
+  PFNGLDELETEBUFFERSARBPROC glDeleteBuffersARB;
 
 };