io.qt.opengl.QOpenGLVersionFunctionsFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi-opengl Show documentation
Show all versions of qtjambi-opengl Show documentation
Classes that make it easy to use OpenGL in Qt applications.
The newest version!
package io.qt.opengl;
import io.qt.*;
/**
* Provides access to OpenGL functions for a specified version and profile
* Java wrapper for Qt class QOpenGLVersionFunctionsFactory
* @since This class was introduced in Qt 6.0.
*/
public class QOpenGLVersionFunctionsFactory extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QOpenGLVersionFunctionsFactory:: QOpenGLVersionFunctionsFactory()
*/
public QOpenGLVersionFunctionsFactory(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QOpenGLVersionFunctionsFactory instance);
/**
* See QOpenGLVersionFunctionsFactory:: get(QOpenGLVersionProfile, QOpenGLContext*)
* @param versionProfile
* @param context
* @return
*/
public static io.qt.opengl.@Nullable QAbstractOpenGLFunctions get(io.qt.opengl.@NonNull QOpenGLVersionProfile versionProfile, io.qt.gui.@Nullable QOpenGLContext context){
return get_native_cref_QOpenGLVersionProfile_QOpenGLContext_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(versionProfile), QtJambi_LibraryUtilities.internal.checkedNativeId(context));
}
private native static io.qt.opengl.QAbstractOpenGLFunctions get_native_cref_QOpenGLVersionProfile_QOpenGLContext_ptr(long versionProfile, long context);
/**
* See QOpenGLVersionFunctionsFactory:: get<TYPE>(QOpenGLContext*)
* @param type
* @param context
* @return
*/
public static T get(java.lang.Class type, io.qt.gui.@Nullable QOpenGLContext context){
return get_native_QOpenGLContext_ptr(type, QtJambi_LibraryUtilities.internal.checkedNativeId(context));
}
private native static T get_native_QOpenGLContext_ptr(java.lang.Class type, long context);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QOpenGLVersionFunctionsFactory(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #get(io.qt.opengl.QOpenGLVersionProfile, io.qt.gui.QOpenGLContext)}
* with context = null
.
*/
public static io.qt.opengl.@Nullable QAbstractOpenGLFunctions get(io.qt.opengl.@NonNull QOpenGLVersionProfile versionProfile) {
return get(versionProfile, (io.qt.gui.QOpenGLContext)null);
}
/**
* Overloaded function for {@link #get(io.qt.opengl.QOpenGLVersionProfile, io.qt.gui.QOpenGLContext)}
* with:
* versionProfile = new io.qt.opengl.QOpenGLVersionProfile()
* context = null
*
*/
public static io.qt.opengl.@Nullable QAbstractOpenGLFunctions get() {
return get(new io.qt.opengl.QOpenGLVersionProfile(), (io.qt.gui.QOpenGLContext)null);
}
/**
* Overloaded function for {@link #get(java.lang.Class, io.qt.gui.QOpenGLContext)}
* with context = null
.
*/
public static T get(java.lang.Class type) {
return get(type, (io.qt.gui.QOpenGLContext)null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy