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.1
Show newest version
package io.qt.gui.rhi;

import io.qt.*;


/**
 * 

OpenGL specific initialization parameters

*

Java wrapper for Qt class QRhiGles2InitParams

* @since This class was introduced in Qt 6.6. */ public class QRhiGles2InitParams extends io.qt.gui.rhi.QRhiInitParams { @QtPropertyMember(enabled=false) private Object __rcfallbackSurface; @QtPropertyMember(enabled=false) private Object __rcshareContext; @QtPropertyMember(enabled=false) private Object __rcwindow; /** *

See QRhiGles2InitParams::QRhiGles2InitParams()

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

See QRhiGles2InitParams::newFallbackSurface(QSurfaceFormat)

* @param format * @return */ 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

* @param fallbackSurface */ @QtUninvokable public final void setFallbackSurface(io.qt.gui.@Nullable QSurface fallbackSurface){ InternalAccess.NativeIdInfo __fallbackSurface__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(fallbackSurface); setFallbackSurface_native_QSurface_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __fallbackSurface__NativeIdInfo.nativeId()); if (__fallbackSurface__NativeIdInfo.needsReferenceCounting()) { __rcfallbackSurface = fallbackSurface; }else{ __rcfallbackSurface = null; } } @QtUninvokable private native void setFallbackSurface_native_QSurface_ptr(long __this__nativeId, long fallbackSurface); /** *

See QRhiGles2InitParams::fallbackSurface

* @return */ @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

* @param 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

* @return */ @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

* @param shareContext */ @QtUninvokable public final void setShareContext(io.qt.gui.@Nullable QOpenGLContext shareContext){ InternalAccess.NativeIdInfo __shareContext__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(shareContext); setShareContext_native_QOpenGLContext_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __shareContext__NativeIdInfo.nativeId()); if (__shareContext__NativeIdInfo.needsReferenceCounting()) { __rcshareContext = shareContext; }else{ __rcshareContext = null; } } @QtUninvokable private native void setShareContext_native_QOpenGLContext_ptr(long __this__nativeId, long shareContext); /** *

See QRhiGles2InitParams::shareContext

* @return */ @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

* @param window */ @QtUninvokable public final void setWindow(io.qt.gui.@Nullable QWindow window){ InternalAccess.NativeIdInfo __window__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(window); setWindow_native_QWindow_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __window__NativeIdInfo.nativeId()); if (__window__NativeIdInfo.needsReferenceCounting()) { __rcwindow = window; }else{ __rcwindow = null; } } @QtUninvokable private native void setWindow_native_QWindow_ptr(long __this__nativeId, long window); /** *

See QRhiGles2InitParams::window

* @return */ @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 - 2025 Weber Informatics LLC | Privacy Policy