From 327d649731a7904495a3a24d38be7f3fff2ce010 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 10 Jul 2008 15:04:46 +0000 Subject: [PATCH] Fixed StencilFuncSeparate parameters types (StencilFace and StencilFunction instead of StencilFunction). Added StencilFace enum. --- Source/Bind/Specifications/GL2/enum.spec | 7 ++++++- Source/Bind/Specifications/GL2/gl.spec | 10 ++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Source/Bind/Specifications/GL2/enum.spec b/Source/Bind/Specifications/GL2/enum.spec index 40e21091..73f6fa93 100644 --- a/Source/Bind/Specifications/GL2/enum.spec +++ b/Source/Bind/Specifications/GL2/enum.spec @@ -173,10 +173,15 @@ Extensions define: ############################################################################### # -# Edited by Stefanos Apostolopoulos for OpenTK. Revision 2 +# Edited by Stefanos Apostolopoulos for OpenTK. Revision 3 # ############################################################################### +StencilFace enum: + use DrawBufferMode FRONT + use DrawBufferMode BACK + use DrawBufferMode FRONT_AND_BACK + DrawElementsType enum: use DataType UNSIGNED_BYTE use DataType UNSIGNED_SHORT diff --git a/Source/Bind/Specifications/GL2/gl.spec b/Source/Bind/Specifications/GL2/gl.spec index 981eb5a5..e2eb0332 100644 --- a/Source/Bind/Specifications/GL2/gl.spec +++ b/Source/Bind/Specifications/GL2/gl.spec @@ -5868,12 +5868,14 @@ StencilOpSeparate(face, sfail, dpfail, dppass) glsopcode ? offset ? -StencilFuncSeparate(frontfunc, backfunc, ref, mask) + +# Edited for OpenTK +StencilFuncSeparate(face, func, ref, mask) return void - param frontfunc StencilFunction in value - param backfunc StencilFunction in value + param face StencilFace in value + param func StencilFunction in value param ref ClampedStencilValue in value - param mask MaskedStencilValue in value + param mask MaskedStencilValue in value category VERSION_2_0 version 2.0 extension