view generator/typesystem_opengl-java.xml @ 399:e40f33cc0bf5

Explicitly include qglobal.h before all the ?master includes?. This makes sure that macros like Q_CORE_EXPORT are already defined for all parsed header files. Starting with this commit, QtD should build successfully against the pre-built Cocoa packages on OS X 10.6.
author David Nadlinger <code@klickverbot.at>
date Sun, 16 Jan 2011 00:56:21 +0100
parents 34a37904ff77
children
line wrap: on
line source

<?xml version="1.0"?>
<typesystem package="qt.opengl" default-superclass="QtdObject">
  <inject-code>
    qt.Utilities.loadQtLibrary("QtGui");
    qt.Utilities.loadQtLibrary("QtOpenGL");
  </inject-code>

  <primitive-type name="GLuint" java-name="int" preferred-conversion="no" jni-name="jint"/>
  <primitive-type name="GLint" java-name="int" preferred-conversion="no" jni-name="jint"/>
  <primitive-type name="GLenum" java-name="int" preferred-conversion="no" jni-name="jint"/>


    <value-type name="QGLColormap">
        <inject-code>
            <import-file name="typesystem_opengl-java.java" quote-after-line="class QGLColormap___" quote-before-line="}// class"/>
        </inject-code>

  </value-type>
</typesystem>