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

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

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

import io.qt.*;


/**
 * 

Sampler resource

*

Java wrapper for Qt class QRhiSampler

*/ public abstract class QRhiSampler extends io.qt.gui.rhi.QRhiResource { @NativeAccess private static final class ConcreteWrapper extends QRhiSampler { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public boolean create(){ return create_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean create_native(long __this__nativeId); @Override @QtUninvokable public void destroy(){ destroy_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void destroy_native(long __this__nativeId); } /** *

Java wrapper for Qt enum QRhiSampler::AddressMode

*/ public enum AddressMode implements QtEnumerator { /** *

Representing QRhiSampler::Repeat

*/ Repeat(0), /** *

Representing QRhiSampler::ClampToEdge

*/ ClampToEdge(1), /** *

Representing QRhiSampler::Mirror

*/ Mirror(2); static { QtJambi_LibraryUtilities.initialize(); } private AddressMode(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull AddressMode resolve(int value) { switch (value) { case 0: return Repeat; case 1: return ClampToEdge; case 2: return Mirror; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QRhiSampler::CompareOp

*/ public enum CompareOp implements QtEnumerator { /** *

Representing QRhiSampler::Never

*/ Never(0), /** *

Representing QRhiSampler::Less

*/ Less(1), /** *

Representing QRhiSampler::Equal

*/ Equal(2), /** *

Representing QRhiSampler::LessOrEqual

*/ LessOrEqual(3), /** *

Representing QRhiSampler::Greater

*/ Greater(4), /** *

Representing QRhiSampler::NotEqual

*/ NotEqual(5), /** *

Representing QRhiSampler::GreaterOrEqual

*/ GreaterOrEqual(6), /** *

Representing QRhiSampler::Always

*/ Always(7); static { QtJambi_LibraryUtilities.initialize(); } private CompareOp(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull CompareOp resolve(int value) { switch (value) { case 0: return Never; case 1: return Less; case 2: return Equal; case 3: return LessOrEqual; case 4: return Greater; case 5: return NotEqual; case 6: return GreaterOrEqual; case 7: return Always; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QRhiSampler::Filter

*/ public enum Filter implements QtEnumerator { /** *

Representing QRhiSampler::None

*/ None(0), /** *

Representing QRhiSampler::Nearest

*/ Nearest(1), /** *

Representing QRhiSampler::Linear

*/ Linear(2); static { QtJambi_LibraryUtilities.initialize(); } private Filter(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Filter resolve(int value) { switch (value) { case 0: return None; case 1: return Nearest; case 2: return Linear; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QRhiSampler::addressU()const

*/ @QtUninvokable public final io.qt.gui.rhi.QRhiSampler.@NonNull AddressMode addressU(){ return io.qt.gui.rhi.QRhiSampler.AddressMode.resolve(addressU_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int addressU_native_constfct(long __this__nativeId); /** *

See QRhiSampler::addressV()const

*/ @QtUninvokable public final io.qt.gui.rhi.QRhiSampler.@NonNull AddressMode addressV(){ return io.qt.gui.rhi.QRhiSampler.AddressMode.resolve(addressV_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int addressV_native_constfct(long __this__nativeId); /** *

See QRhiSampler::addressW()const

*/ @QtUninvokable public final io.qt.gui.rhi.QRhiSampler.@NonNull AddressMode addressW(){ return io.qt.gui.rhi.QRhiSampler.AddressMode.resolve(addressW_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int addressW_native_constfct(long __this__nativeId); /** *

See QRhiSampler::magFilter()const

*/ @QtUninvokable public final io.qt.gui.rhi.QRhiSampler.@NonNull Filter magFilter(){ return io.qt.gui.rhi.QRhiSampler.Filter.resolve(magFilter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int magFilter_native_constfct(long __this__nativeId); /** *

See QRhiSampler::minFilter()const

*/ @QtUninvokable public final io.qt.gui.rhi.QRhiSampler.@NonNull Filter minFilter(){ return io.qt.gui.rhi.QRhiSampler.Filter.resolve(minFilter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int minFilter_native_constfct(long __this__nativeId); /** *

See QRhiSampler::mipmapMode()const

*/ @QtUninvokable public final io.qt.gui.rhi.QRhiSampler.@NonNull Filter mipmapMode(){ return io.qt.gui.rhi.QRhiSampler.Filter.resolve(mipmapMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int mipmapMode_native_constfct(long __this__nativeId); /** *

See QRhiSampler::setAddressU(QRhiSampler::AddressMode)

*/ @QtUninvokable public final void setAddressU(io.qt.gui.rhi.QRhiSampler.@NonNull AddressMode mode){ setAddressU_native_QRhiSampler_AddressMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @QtUninvokable private native void setAddressU_native_QRhiSampler_AddressMode(long __this__nativeId, int mode); /** *

See QRhiSampler::setAddressV(QRhiSampler::AddressMode)

*/ @QtUninvokable public final void setAddressV(io.qt.gui.rhi.QRhiSampler.@NonNull AddressMode mode){ setAddressV_native_QRhiSampler_AddressMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @QtUninvokable private native void setAddressV_native_QRhiSampler_AddressMode(long __this__nativeId, int mode); /** *

See QRhiSampler::setAddressW(QRhiSampler::AddressMode)

*/ @QtUninvokable public final void setAddressW(io.qt.gui.rhi.QRhiSampler.@NonNull AddressMode mode){ setAddressW_native_QRhiSampler_AddressMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @QtUninvokable private native void setAddressW_native_QRhiSampler_AddressMode(long __this__nativeId, int mode); /** *

See QRhiSampler::setMagFilter(QRhiSampler::Filter)

*/ @QtUninvokable public final void setMagFilter(io.qt.gui.rhi.QRhiSampler.@NonNull Filter f){ setMagFilter_native_QRhiSampler_Filter(QtJambi_LibraryUtilities.internal.nativeId(this), f.value()); } @QtUninvokable private native void setMagFilter_native_QRhiSampler_Filter(long __this__nativeId, int f); /** *

See QRhiSampler::setMinFilter(QRhiSampler::Filter)

*/ @QtUninvokable public final void setMinFilter(io.qt.gui.rhi.QRhiSampler.@NonNull Filter f){ setMinFilter_native_QRhiSampler_Filter(QtJambi_LibraryUtilities.internal.nativeId(this), f.value()); } @QtUninvokable private native void setMinFilter_native_QRhiSampler_Filter(long __this__nativeId, int f); /** *

See QRhiSampler::setMipmapMode(QRhiSampler::Filter)

*/ @QtUninvokable public final void setMipmapMode(io.qt.gui.rhi.QRhiSampler.@NonNull Filter f){ setMipmapMode_native_QRhiSampler_Filter(QtJambi_LibraryUtilities.internal.nativeId(this), f.value()); } @QtUninvokable private native void setMipmapMode_native_QRhiSampler_Filter(long __this__nativeId, int f); /** *

See QRhiSampler::setTextureCompareOp(QRhiSampler::CompareOp)

*/ @QtUninvokable public final void setTextureCompareOp(io.qt.gui.rhi.QRhiSampler.@NonNull CompareOp op){ setTextureCompareOp_native_QRhiSampler_CompareOp(QtJambi_LibraryUtilities.internal.nativeId(this), op.value()); } @QtUninvokable private native void setTextureCompareOp_native_QRhiSampler_CompareOp(long __this__nativeId, int op); /** *

See QRhiSampler::textureCompareOp()const

*/ @QtUninvokable public final io.qt.gui.rhi.QRhiSampler.@NonNull CompareOp textureCompareOp(){ return io.qt.gui.rhi.QRhiSampler.CompareOp.resolve(textureCompareOp_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int textureCompareOp_native_constfct(long __this__nativeId); /** *

See QRhiSampler::create()

*/ @QtUninvokable public abstract boolean create(); @QtUninvokable private native boolean create_native(long __this__nativeId); /** *

See QRhiResource::resourceType()const

*/ @QtUninvokable @Override public io.qt.gui.rhi.QRhiResource.@NonNull Type resourceType(){ return io.qt.gui.rhi.QRhiResource.Type.resolve(resourceType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int resourceType_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QRhiSampler(QPrivateConstructor p) { super(p); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy