<?xml version="1.0" encoding="UTF-8"?>
<!--
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt for Python.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
-->
<typesystem package="PySide2.QtOpenGLFunctions">
  <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
  <load-typesystem name="templates/openglfunctions_common.xml" generate="no"/>

  <rejection class="^QOpenGL.*$" argument-type="^(const )?GLboolean ?\*$"/>
  <rejection class="^QOpenGL.*$" argument-type="^GLchar\*$"/>
  <rejection class="^QOpenGL.*$" argument-type="^(const )?GLchar ?\*(const)?\*$"/>
  <rejection class="^QOpenGL.*$" argument-type="^char\*$"/>
  <rejection class="^QOpenGL.*$" argument-type="^(const )?char ?\*\*$"/>
  <rejection class="^QOpenGL.*$" argument-type="GLintptr"/>
  <rejection class="^QOpenGL.*$" argument-type="GLsizeiptr"/>
  <rejection class="^QOpenGL.*$" argument-type="GLsync"/>
  <rejection class="^QOpenGL.*$" argument-type="^GLubyte( const)?\*$"/>
  <rejection class="^QOpenGL.*$" argument-type="^(const )?QMatrix.x. ?\*$"/>
  <rejection class="^QOpenGL.*$" argument-type="qopengl_GLintptr"/>
  <rejection class="^QOpenGL.*$" argument-type="qopengl_GLsizeiptr"/>
  <rejection class="^QOpenGL.*$" argument-type="QOpenGLTextureHelper*"/>
  <rejection class="^QOpenGL.*$" argument-type="^(const )?QVector.D ?\*$"/>
  <rejection class="^QOpenGL.*$" argument-type="^(const )?void ?\*\*$"/>
  <rejection class="^QOpenGLFunctions.*$" function-name="^glGet(Buffer|VertexAttrib)?Pointer.*$"/>
  <rejection class="^QOpenGLFunctions.*$" function-name="^glMultiDrawElements.*$"/>
  <!-- Reject any non-const array of the version functions -->
  <rejection class="^QOpenGLFunctions_\d_\d.*$" argument-type="^GL\w+ ?\*$"/>

  <object-type name="QOpenGLFunctions_1_0" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
  </object-type>
  <object-type name="QOpenGLFunctions_1_1" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
  </object-type>
  <object-type name="QOpenGLFunctions_1_2" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
  </object-type>
  <object-type name="QOpenGLFunctions_1_3" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
  </object-type>
  <object-type name="QOpenGLFunctions_1_4" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
  </object-type>
  <object-type name="QOpenGLFunctions_1_5" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
  </object-type>
  <object-type name="QOpenGLFunctions_2_0" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_0_compat;
  </object-type>
  <object-type name="QOpenGLFunctions_2_1" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_0_compat;
      &openglfunctions_modifications2_1;
  </object-type>
  <object-type name="QOpenGLFunctions_3_0" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_0_compat;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
  </object-type>
  <object-type name="QOpenGLFunctions_3_1" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
  </object-type>
  <object-type name="QOpenGLFunctions_3_2_Compatibility" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_0_compat;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
  </object-type>
  <object-type name="QOpenGLFunctions_3_2_Core" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
  </object-type>
  <object-type name="QOpenGLFunctions_3_3_Compatibility" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_0_compat;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
  </object-type>
  <object-type name="QOpenGLFunctions_3_3_Core" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
  </object-type>
  <object-type name="QOpenGLFunctions_4_0_Compatibility" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_0_compat;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
      &openglfunctions_modifications4_0;
  </object-type>
  <object-type name="QOpenGLFunctions_4_0_Core" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
      &openglfunctions_modifications4_0;
 </object-type>
  <object-type name="QOpenGLFunctions_4_1_Compatibility" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_0_compat;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
      &openglfunctions_modifications4_1;
      &openglfunctions_modifications4_0;
  </object-type>
  <object-type name="QOpenGLFunctions_4_1_Core" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
      &openglfunctions_modifications4_0;
      &openglfunctions_modifications4_1;
      &openglfunctions_modifications_va;
  </object-type>
  <object-type name="QOpenGLFunctions_4_2_Compatibility" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_0_compat;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
      &openglfunctions_modifications4_0;
      &openglfunctions_modifications4_1;
  </object-type>
  <object-type name="QOpenGLFunctions_4_2_Core" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
      &openglfunctions_modifications4_0;
      &openglfunctions_modifications4_1;
      &openglfunctions_modifications_va;
  </object-type>
  <object-type name="QOpenGLFunctions_4_3_Compatibility" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_0_compat;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
      &openglfunctions_modifications4_0;
      &openglfunctions_modifications4_1;
      &openglfunctions_modifications4_3;
  </object-type>
  <object-type name="QOpenGLFunctions_4_3_Core" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
      &openglfunctions_modifications4_0;
      &openglfunctions_modifications4_3;
      &openglfunctions_modifications4_1;
      &openglfunctions_modifications_va;
  </object-type>
  <object-type name="QOpenGLFunctions_4_4_Compatibility" since="5.5">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_0_compat;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
      &openglfunctions_modifications4_0;
      &openglfunctions_modifications4_1;
      &openglfunctions_modifications4_3;
      &openglfunctions_modifications4_4;
      &openglfunctions_modifications4_4_core;
  </object-type>
  <object-type name="QOpenGLFunctions_4_4_Core" since="5.5">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications4_0;
      &openglfunctions_modifications4_1;
      &openglfunctions_modifications_va;
      &openglfunctions_modifications4_3;
      &openglfunctions_modifications4_4;
      &openglfunctions_modifications4_4_core;
  </object-type>
  <object-type name="QOpenGLFunctions_4_5_Compatibility" since="5.5">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_0_compat;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_1_compat;
      &openglfunctions_modifications1_2_compat;
      &openglfunctions_modifications1_3_compat;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications1_4_compat;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_0_compat;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications3_3a;
      &openglfunctions_modifications4_0;
      &openglfunctions_modifications4_1;
      &openglfunctions_modifications4_3;
      &openglfunctions_modifications4_4;
      &openglfunctions_modifications4_4_core;
      &openglfunctions_modifications4_5;
  </object-type>
  <object-type name="QOpenGLFunctions_4_5_Core" since="5.5">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_1;
      &openglfunctions_modifications1_4;
      &openglfunctions_modifications2_0;
      &openglfunctions_modifications2_1;
      &openglfunctions_modifications3_0;
      &openglfunctions_modifications3_3;
      &openglfunctions_modifications4_0;
      &openglfunctions_modifications4_1;
      &openglfunctions_modifications4_3;
      &openglfunctions_modifications4_4;
      &openglfunctions_modifications4_4_core;
      &openglfunctions_modifications4_5;
      &openglfunctions_modifications_va;
  </object-type>
  <object-type name="QOpenGLFunctions_ES2" since="5.1">
      &openglfunctions_modifications1_0;
      &openglfunctions_modifications1_1;
  </object-type>
  <suppress-warning text="^There's no user provided way.*QOpenGLFunctions_\d_\d.*::glIndex.*$"/>

</typesystem>
