All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.rhi.QRhiGles2InitParams Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.gui.rhi;

import io.qt.*;


/**
 * 

OpenGL specific initialization parameters

*

Java wrapper for Qt class QRhiGles2InitParams

*

This class was introduced in Qt 6.6.

*/ public class QRhiGles2InitParams extends io.qt.gui.rhi.QRhiInitParams { @QtPropertyMember(enabled=false) private Object __rcfallbackSurface = null; @QtPropertyMember(enabled=false) private Object __rcshareContext = null; @QtPropertyMember(enabled=false) private Object __rcwindow = null; /** *

See QRhiGles2InitParams::QRhiGles2InitParams()

*/ public QRhiGles2InitParams(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QRhiGles2InitParams instance); /** *

See QRhiGles2InitParams::newFallbackSurface(QSurfaceFormat)

*/ public static io.qt.gui.@Nullable QOffscreenSurface newFallbackSurface(io.qt.gui.@NonNull QSurfaceFormat format){ return newFallbackSurface_native_cref_QSurfaceFormat(QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } private native static io.qt.gui.QOffscreenSurface newFallbackSurface_native_cref_QSurfaceFormat(long format); /** *

See QRhiGles2InitParams::fallbackSurface

*/ @QtUninvokable public final void setFallbackSurface(io.qt.gui.@Nullable QSurface fallbackSurface){ setFallbackSurface_native_QSurface_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(fallbackSurface)); __rcfallbackSurface = fallbackSurface; } @QtUninvokable private native void setFallbackSurface_native_QSurface_ptr(long __this__nativeId, long fallbackSurface); /** *

See QRhiGles2InitParams::fallbackSurface

*/ @QtUninvokable public final io.qt.gui.@Nullable QSurface fallbackSurface(){ return fallbackSurface_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QSurface fallbackSurface_native(long __this__nativeId); /** *

See QRhiGles2InitParams::format

*/ @QtUninvokable public final void setFormat(io.qt.gui.@NonNull QSurfaceFormat format){ setFormat_native_cref_QSurfaceFormat(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @QtUninvokable private native void setFormat_native_cref_QSurfaceFormat(long __this__nativeId, long format); /** *

See QRhiGles2InitParams::format

*/ @QtUninvokable public final io.qt.gui.@NonNull QSurfaceFormat format(){ return format_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QSurfaceFormat format_native(long __this__nativeId); /** *

See QRhiGles2InitParams::shareContext

*/ @QtUninvokable public final void setShareContext(io.qt.gui.@Nullable QOpenGLContext shareContext){ setShareContext_native_QOpenGLContext_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(shareContext)); __rcshareContext = shareContext; } @QtUninvokable private native void setShareContext_native_QOpenGLContext_ptr(long __this__nativeId, long shareContext); /** *

See QRhiGles2InitParams::shareContext

*/ @QtUninvokable public final io.qt.gui.@Nullable QOpenGLContext shareContext(){ return shareContext_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QOpenGLContext shareContext_native(long __this__nativeId); /** *

See QRhiGles2InitParams::window

*/ @QtUninvokable public final void setWindow(io.qt.gui.@Nullable QWindow window){ setWindow_native_QWindow_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(window)); __rcwindow = window; } @QtUninvokable private native void setWindow_native_QWindow_ptr(long __this__nativeId, long window); /** *

See QRhiGles2InitParams::window

*/ @QtUninvokable public final io.qt.gui.@Nullable QWindow window(){ return window_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QWindow window_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QRhiGles2InitParams(QPrivateConstructor p) { super(p); } /** *

Overloaded function for {@link #newFallbackSurface(io.qt.gui.QSurfaceFormat)} * with format = io.qt.gui.QSurfaceFormat.defaultFormat().

*/ public static io.qt.gui.@Nullable QOffscreenSurface newFallbackSurface() { return newFallbackSurface(io.qt.gui.QSurfaceFormat.defaultFormat()); } /** *

Overloaded function for {@link #newFallbackSurface(io.qt.gui.QSurfaceFormat)}.

*/ public static io.qt.gui.@Nullable QOffscreenSurface newFallbackSurface(io.qt.gui.QSurfaceFormat.@NonNull FormatOptions format) { return newFallbackSurface(new io.qt.gui.QSurfaceFormat(format)); } /** * @hidden *

Kotlin property getter. In Java use {@link #fallbackSurface()} instead.

*/ @QtUninvokable public final io.qt.gui.@Nullable QSurface getFallbackSurface() { return fallbackSurface(); } /** *

Overloaded function for {@link #setFormat(io.qt.gui.QSurfaceFormat)}.

*/ @QtUninvokable public final void setFormat(io.qt.gui.QSurfaceFormat.@NonNull FormatOptions format) { setFormat(new io.qt.gui.QSurfaceFormat(format)); } /** * @hidden *

Kotlin property getter. In Java use {@link #format()} instead.

*/ @QtUninvokable public final io.qt.gui.@NonNull QSurfaceFormat getFormat() { return format(); } /** * @hidden *

Kotlin property getter. In Java use {@link #shareContext()} instead.

*/ @QtUninvokable public final io.qt.gui.@Nullable QOpenGLContext getShareContext() { return shareContext(); } /** * @hidden *

Kotlin property getter. In Java use {@link #window()} instead.

*/ @QtUninvokable public final io.qt.gui.@Nullable QWindow getWindow() { return window(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy