From 0e26a4d0bf2a55a0addce08151ca9e9ae44a739a Mon Sep 17 00:00:00 2001 From: osa Date: Fri, 5 Oct 2012 13:28:57 +0400 Subject: [PATCH] 0023428: Extend OpenGl_Context to use Geometry Shaders extension --- src/OpenGl/FILES | 1 + src/OpenGl/OpenGl_ExtGS.hxx | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 src/OpenGl/OpenGl_ExtGS.hxx diff --git a/src/OpenGl/FILES b/src/OpenGl/FILES index 1c197ccc15..57cc492af0 100755 --- a/src/OpenGl/FILES +++ b/src/OpenGl/FILES @@ -107,6 +107,7 @@ OpenGl_ArbIns.hxx OpenGl_ArbTBO.hxx OpenGl_ArbVBO.hxx OpenGl_ExtFBO.hxx +OpenGl_ExtGS.hxx glext.h OpenGl_GlCore11.hxx OpenGl_GlCore12.hxx diff --git a/src/OpenGl/OpenGl_ExtGS.hxx b/src/OpenGl/OpenGl_ExtGS.hxx new file mode 100644 index 0000000000..da6be343b7 --- /dev/null +++ b/src/OpenGl/OpenGl_ExtGS.hxx @@ -0,0 +1,31 @@ +// Created on: 2012-09-26 +// Created by: Olga SURYANINOVA +// Copyright (c) 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_ExtGS_H__ +#define _OpenGl_ExtGS_H__ + +#include + +//! Geometry shader as extension is available on OpenGL 2.0+ +struct OpenGl_ExtGS +{ + PFNGLPROGRAMPARAMETERIEXTPROC glProgramParameteriEXT; +}; + +#endif // _OpenGl_ExtGS_H__ -- 2.20.1