[][src]Struct qt_3d_render::QSharedGLTexture

#[repr(C)]pub struct QSharedGLTexture { /* fields omitted */ }

Depending on the rendering mode used by Qt 3D, the shared context will either be:

C++ class: Qt3DRender::QSharedGLTexture.

C++ documentation:

Depending on the rendering mode used by Qt 3D, the shared context will either be:

  • qt_gl_global_share_context when letting Qt 3D drive the rendering. When setting the attribute Qt::AA_ShareOpenGLContexts on the QApplication class, this will automatically make QOpenGLWidget instances have their context shared with qt_gl_global_share_context.
  • the shared context from the QtQuick scene. You might have to subclass QWindow or use QtQuickRenderControl to have control over what that shared context is though as of 5.13 it is qt_gl_global_share_context.

Any 3rd party engine that shares its context with the Qt 3D renderer can now provide texture ids that will be referenced by the Qt 3D texture.

You can omit specifying the texture properties, Qt 3D will try at runtime to determine what they are. If you know them, you can of course provide them, avoid additional work for Qt 3D.

Keep in mind that if you are using custom materials and shaders, you need to specify the correct sampler type to be used.

Methods

impl QSharedGLTexture[src]

pub fn slot_set_texture_id(&self) -> Receiver<(c_int,)>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

The OpenGL texture id value that you want Qt3D to gain access to.

Returns a built-in Qt slot Qt3DRender::QSharedGLTexture::setTextureId that can be passed to qt_core::Signal::connect.

C++ documentation:

The OpenGL texture id value that you want Qt3D to gain access to.

Access functions:

int textureId() const
void setTextureId(int id)

Notifier signal:

void textureIdChanged(int textureId)

pub fn texture_id_changed(&self) -> Signal<(c_int,)>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

The OpenGL texture id value that you want Qt3D to gain access to.

Returns a built-in Qt signal Qt3DRender::QSharedGLTexture::textureIdChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

The OpenGL texture id value that you want Qt3D to gain access to.

Access functions:

int textureId() const
void setTextureId(int id)

Notifier signal:

void textureIdChanged(int textureId)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: virtual const QMetaObject* Qt3DRender::QSharedGLTexture::metaObject() const.

pub unsafe fn new_1a(
    parent: impl CastInto<Ptr<QNode>>
) -> QBox<QSharedGLTexture>
[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: [constructor] void Qt3DRender::QSharedGLTexture::QSharedGLTexture(Qt3DCore::QNode* parent = …).

pub unsafe fn new_0a() -> QBox<QSharedGLTexture>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Depending on the rendering mode used by Qt 3D, the shared context will either be:

Calls C++ function: [constructor] void Qt3DRender::QSharedGLTexture::QSharedGLTexture().

C++ documentation:

Depending on the rendering mode used by Qt 3D, the shared context will either be:

  • qt_gl_global_share_context when letting Qt 3D drive the rendering. When setting the attribute Qt::AA_ShareOpenGLContexts on the QApplication class, this will automatically make QOpenGLWidget instances have their context shared with qt_gl_global_share_context.
  • the shared context from the QtQuick scene. You might have to subclass QWindow or use QtQuickRenderControl to have control over what that shared context is though as of 5.13 it is qt_gl_global_share_context.

Any 3rd party engine that shares its context with the Qt 3D renderer can now provide texture ids that will be referenced by the Qt 3D texture.

You can omit specifying the texture properties, Qt 3D will try at runtime to determine what they are. If you know them, you can of course provide them, avoid additional work for Qt 3D.

Keep in mind that if you are using custom materials and shaders, you need to specify the correct sampler type to be used.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: virtual int Qt3DRender::QSharedGLTexture::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: virtual void* Qt3DRender::QSharedGLTexture::qt_metacast(const char* arg1).

pub unsafe fn set_texture_id(&self, id: c_int)[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

The OpenGL texture id value that you want Qt3D to gain access to.

Calls C++ function: [slot] void Qt3DRender::QSharedGLTexture::setTextureId(int id).

C++ documentation:

The OpenGL texture id value that you want Qt3D to gain access to.

Access functions:

int textureId() const
void setTextureId(int id)

Notifier signal:

void textureIdChanged(int textureId)

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Returns a reference to the staticMetaObject field.

pub unsafe fn texture_id(&self) -> c_int[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

The OpenGL texture id value that you want Qt3D to gain access to.

Calls C++ function: int Qt3DRender::QSharedGLTexture::textureId() const.

C++ documentation:

The OpenGL texture id value that you want Qt3D to gain access to.

Access functions:

int textureId() const
void setTextureId(int id)

Notifier signal:

void textureIdChanged(int textureId)

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: static QString Qt3DRender::QSharedGLTexture::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: static QString Qt3DRender::QSharedGLTexture::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QAbstractTexture>

pub fn slot_set_format(&self) -> Receiver<(TextureFormat,)>[src]

Set the texture format to format.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setFormat that can be passed to qt_core::Signal::connect.

C++ documentation:

Set the texture format to format.

Note: Setter function for property format.

See also format().

pub fn slot_set_generate_mip_maps(&self) -> Receiver<(bool,)>[src]

Boolean parameter gen sets a flag indicating whether the texture provider should generate mipmaps or not.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setGenerateMipMaps that can be passed to qt_core::Signal::connect.

C++ documentation:

Boolean parameter gen sets a flag indicating whether the texture provider should generate mipmaps or not.

Note: Setter function for property generateMipMaps.

See also generateMipMaps().

pub fn slot_set_width(&self) -> Receiver<(c_int,)>[src]

Set the width of the texture provider to width.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setWidth that can be passed to qt_core::Signal::connect.

C++ documentation:

Set the width of the texture provider to width.

Note: Setter function for property width.

See also width().

pub fn slot_set_height(&self) -> Receiver<(c_int,)>[src]

Set the height to height.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setHeight that can be passed to qt_core::Signal::connect.

C++ documentation:

Set the height to height.

Note: Setter function for property height.

See also height().

pub fn slot_set_depth(&self) -> Receiver<(c_int,)>[src]

Set the depth of the texture to depth.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setDepth that can be passed to qt_core::Signal::connect.

C++ documentation:

Set the depth of the texture to depth.

Note: Setter function for property depth.

See also depth().

pub fn slot_set_minification_filter(&self) -> Receiver<(Filter,)>[src]

Set the minification filter to the specified value f.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setMinificationFilter that can be passed to qt_core::Signal::connect.

C++ documentation:

Set the minification filter to the specified value f.

Note: Setter function for property minificationFilter.

See also minificationFilter().

pub fn slot_set_magnification_filter(&self) -> Receiver<(Filter,)>[src]

Set the magnification filter to f.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setMagnificationFilter that can be passed to qt_core::Signal::connect.

C++ documentation:

Set the magnification filter to f.

Note: Setter function for property magnificationFilter.

See also magnificationFilter().

pub fn slot_set_maximum_anisotropy(&self) -> Receiver<(c_float,)>[src]

Sets the maximum anisotropy to anisotropy.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setMaximumAnisotropy that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the maximum anisotropy to anisotropy.

Note: Setter function for property maximumAnisotropy.

See also maximumAnisotropy().

pub fn slot_set_comparison_function(&self) -> Receiver<(ComparisonFunction,)>[src]

Set the comparison function to function.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setComparisonFunction that can be passed to qt_core::Signal::connect.

C++ documentation:

Set the comparison function to function.

Note: Setter function for property comparisonFunction.

See also comparisonFunction().

pub fn slot_set_comparison_mode(&self) -> Receiver<(ComparisonMode,)>[src]

Set the comparison mode to mode.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setComparisonMode that can be passed to qt_core::Signal::connect.

C++ documentation:

Set the comparison mode to mode.

Note: Setter function for property comparisonMode.

See also comparisonMode().

pub fn slot_set_layers(&self) -> Receiver<(c_int,)>[src]

Set the maximum layer count to layers.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setLayers that can be passed to qt_core::Signal::connect.

C++ documentation:

Set the maximum layer count to layers.

Note: Setter function for property layers.

See also layers().

pub fn slot_set_samples(&self) -> Receiver<(c_int,)>[src]

Set the number of samples per texel to samples.

Returns a built-in Qt slot Qt3DRender::QAbstractTexture::setSamples that can be passed to qt_core::Signal::connect.

C++ documentation:

Set the number of samples per texel to samples.

Note: Setter function for property samples.

See also samples().

pub fn format_changed(&self) -> Signal<(TextureFormat,)>[src]

Holds the format of the texture provider.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::formatChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the format of the texture provider.

Access functions:

TextureFormat format() const
void setFormat(TextureFormat format)

Notifier signal:

void formatChanged(TextureFormat format)

pub fn status_changed(&self) -> Signal<(Status,)>[src]

Holds the current status of the texture provider.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::statusChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current status of the texture provider.

Access functions:

Status status() const

Notifier signal:

void statusChanged(Status status)

pub fn generate_mip_maps_changed(&self) -> Signal<(bool,)>[src]

Holds whether the texture provider should auto generate mipmaps.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::generateMipMapsChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds whether the texture provider should auto generate mipmaps.

Access functions:

bool generateMipMaps() const
void setGenerateMipMaps(bool gen)

Notifier signal:

void generateMipMapsChanged(bool generateMipMaps)

pub fn width_changed(&self) -> Signal<(c_int,)>[src]

Holds the width of the texture provider.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::widthChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the width of the texture provider.

Access functions:

int width() const
void setWidth(int width)

Notifier signal:

void widthChanged(int width)

pub fn height_changed(&self) -> Signal<(c_int,)>[src]

Holds the height of the texture provider.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::heightChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the height of the texture provider.

Access functions:

int height() const
void setHeight(int height)

Notifier signal:

void heightChanged(int height)

pub fn depth_changed(&self) -> Signal<(c_int,)>[src]

Holds the depth of the texture provider.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::depthChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the depth of the texture provider.

Access functions:

int depth() const
void setDepth(int depth)

Notifier signal:

void depthChanged(int depth)

pub fn magnification_filter_changed(&self) -> Signal<(Filter,)>[src]

Holds the magnification filter of the texture provider.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::magnificationFilterChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the magnification filter of the texture provider.

Access functions:

Filter magnificationFilter() const
void setMagnificationFilter(Filter f)

Notifier signal:

void magnificationFilterChanged(Filter magnificationFilter)

pub fn minification_filter_changed(&self) -> Signal<(Filter,)>[src]

Holds the minification filter of the texture provider.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::minificationFilterChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the minification filter of the texture provider.

Access functions:

Filter minificationFilter() const
void setMinificationFilter(Filter f)

Notifier signal:

void minificationFilterChanged(Filter minificationFilter)

pub fn maximum_anisotropy_changed(&self) -> Signal<(c_float,)>[src]

Holds the maximum anisotropy of the texture provider.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::maximumAnisotropyChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the maximum anisotropy of the texture provider.

Access functions:

float maximumAnisotropy() const
void setMaximumAnisotropy(float anisotropy)

Notifier signal:

void maximumAnisotropyChanged(float maximumAnisotropy)

pub fn comparison_function_changed(&self) -> Signal<(ComparisonFunction,)>[src]

Holds the comparison function of the texture provider.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::comparisonFunctionChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the comparison function of the texture provider.

Access functions:

ComparisonFunction comparisonFunction() const
void setComparisonFunction(ComparisonFunction function)

Notifier signal:

void comparisonFunctionChanged(ComparisonFunction comparisonFunction)

pub fn comparison_mode_changed(&self) -> Signal<(ComparisonMode,)>[src]

Holds the comparison mode of the texture provider.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::comparisonModeChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the comparison mode of the texture provider.

Access functions:

ComparisonMode comparisonMode() const
void setComparisonMode(ComparisonMode mode)

Notifier signal:

void comparisonModeChanged(ComparisonMode comparisonMode)

pub fn layers_changed(&self) -> Signal<(c_int,)>[src]

Holds the maximum layer count of the texture provider. By default, the maximum layer count is 1.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::layersChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the maximum layer count of the texture provider. By default, the maximum layer count is 1.

Note: this has a meaning only for texture providers that have 3D or array target formats.

Access functions:

int layers() const
void setLayers(int layers)

Notifier signal:

void layersChanged(int layers)

pub fn samples_changed(&self) -> Signal<(c_int,)>[src]

Holds the number of samples per texel for the texture provider. By default, the number of samples is 1.

Returns a built-in Qt signal Qt3DRender::QAbstractTexture::samplesChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the number of samples per texel for the texture provider. By default, the number of samples is 1.

Note: this has a meaning only for texture providers that have multisample formats.

Access functions:

int samples() const
void setSamples(int samples)

Notifier signal:

void samplesChanged(int samples)

pub unsafe fn add_texture_image(
    &self,
    texture_image: impl CastInto<Ptr<QAbstractTextureImage>>
)
[src]

Adds a new Qt3DCore::QAbstractTextureImage textureImage to the texture provider.

Calls C++ function: void Qt3DRender::QAbstractTexture::addTextureImage(Qt3DRender::QAbstractTextureImage* textureImage).

C++ documentation:

Adds a new Qt3DCore::QAbstractTextureImage textureImage to the texture provider.

Note: Qt3DRender::QAbstractTextureImage should never be shared between multiple Qt3DRender::QAbstractTexture instances.

pub unsafe fn comparison_function(&self) -> ComparisonFunction[src]

Holds the comparison function of the texture provider.

Calls C++ function: Qt3DRender::QAbstractTexture::ComparisonFunction Qt3DRender::QAbstractTexture::comparisonFunction() const.

C++ documentation:

Holds the comparison function of the texture provider.

Access functions:

ComparisonFunction comparisonFunction() const
void setComparisonFunction(ComparisonFunction function)

Notifier signal:

void comparisonFunctionChanged(ComparisonFunction comparisonFunction)

pub unsafe fn comparison_mode(&self) -> ComparisonMode[src]

Holds the comparison mode of the texture provider.

Calls C++ function: Qt3DRender::QAbstractTexture::ComparisonMode Qt3DRender::QAbstractTexture::comparisonMode() const.

C++ documentation:

Holds the comparison mode of the texture provider.

Access functions:

ComparisonMode comparisonMode() const
void setComparisonMode(ComparisonMode mode)

Notifier signal:

void comparisonModeChanged(ComparisonMode comparisonMode)

pub unsafe fn depth(&self) -> c_int[src]

Holds the depth of the texture provider.

Calls C++ function: int Qt3DRender::QAbstractTexture::depth() const.

C++ documentation:

Holds the depth of the texture provider.

Access functions:

int depth() const
void setDepth(int depth)

Notifier signal:

void depthChanged(int depth)

pub unsafe fn format(&self) -> TextureFormat[src]

Holds the format of the texture provider.

Calls C++ function: Qt3DRender::QAbstractTexture::TextureFormat Qt3DRender::QAbstractTexture::format() const.

C++ documentation:

Holds the format of the texture provider.

Access functions:

TextureFormat format() const
void setFormat(TextureFormat format)

Notifier signal:

void formatChanged(TextureFormat format)

pub unsafe fn generate_mip_maps(&self) -> bool[src]

Holds whether the texture provider should auto generate mipmaps.

Calls C++ function: bool Qt3DRender::QAbstractTexture::generateMipMaps() const.

C++ documentation:

Holds whether the texture provider should auto generate mipmaps.

Access functions:

bool generateMipMaps() const
void setGenerateMipMaps(bool gen)

Notifier signal:

void generateMipMapsChanged(bool generateMipMaps)

pub unsafe fn handle(&self) -> CppBox<QVariant>[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the current texture handle, if Qt 3D is using the OpenGL renderer, handle is a texture id integer.

Calls C++ function: QVariant Qt3DRender::QAbstractTexture::handle() const.

C++ documentation:

Holds the current texture handle, if Qt 3D is using the OpenGL renderer, handle is a texture id integer.

Access functions:

QVariant handle() const

Notifier signal:

void handleChanged(QVariant handle)

pub unsafe fn handle_changed(&self, handle: impl CastInto<Ref<QVariant>>)[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the current texture handle, if Qt 3D is using the OpenGL renderer, handle is a texture id integer.

Calls C++ function: void Qt3DRender::QAbstractTexture::handleChanged(QVariant handle).

C++ documentation:

Holds the current texture handle, if Qt 3D is using the OpenGL renderer, handle is a texture id integer.

Access functions:

QVariant handle() const

Notifier signal:

void handleChanged(QVariant handle)

pub unsafe fn handle_type(&self) -> HandleType[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the current texture handle type.

Calls C++ function: Qt3DRender::QAbstractTexture::HandleType Qt3DRender::QAbstractTexture::handleType() const.

C++ documentation:

Holds the current texture handle type.

Access functions:

Qt3DRender::QAbstractTexture::HandleType handleType() const

Notifier signal:

void handleTypeChanged(Qt3DRender::QAbstractTexture::HandleType handleType)

pub unsafe fn handle_type_changed(&self, handle_type: HandleType)[src]

This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Holds the current texture handle type.

Calls C++ function: void Qt3DRender::QAbstractTexture::handleTypeChanged(Qt3DRender::QAbstractTexture::HandleType handleType).

C++ documentation:

Holds the current texture handle type.

Access functions:

Qt3DRender::QAbstractTexture::HandleType handleType() const

Notifier signal:

void handleTypeChanged(Qt3DRender::QAbstractTexture::HandleType handleType)

pub unsafe fn height(&self) -> c_int[src]

Holds the height of the texture provider.

Calls C++ function: int Qt3DRender::QAbstractTexture::height() const.

C++ documentation:

Holds the height of the texture provider.

Access functions:

int height() const
void setHeight(int height)

Notifier signal:

void heightChanged(int height)

pub unsafe fn layers(&self) -> c_int[src]

Holds the maximum layer count of the texture provider. By default, the maximum layer count is 1.

Calls C++ function: int Qt3DRender::QAbstractTexture::layers() const.

C++ documentation:

Holds the maximum layer count of the texture provider. By default, the maximum layer count is 1.

Note: this has a meaning only for texture providers that have 3D or array target formats.

Access functions:

int layers() const
void setLayers(int layers)

Notifier signal:

void layersChanged(int layers)

pub unsafe fn magnification_filter(&self) -> Filter[src]

Holds the magnification filter of the texture provider.

Calls C++ function: Qt3DRender::QAbstractTexture::Filter Qt3DRender::QAbstractTexture::magnificationFilter() const.

C++ documentation:

Holds the magnification filter of the texture provider.

Access functions:

Filter magnificationFilter() const
void setMagnificationFilter(Filter f)

Notifier signal:

void magnificationFilterChanged(Filter magnificationFilter)

pub unsafe fn maximum_anisotropy(&self) -> c_float[src]

Holds the maximum anisotropy of the texture provider.

Calls C++ function: float Qt3DRender::QAbstractTexture::maximumAnisotropy() const.

C++ documentation:

Holds the maximum anisotropy of the texture provider.

Access functions:

float maximumAnisotropy() const
void setMaximumAnisotropy(float anisotropy)

Notifier signal:

void maximumAnisotropyChanged(float maximumAnisotropy)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DRender::QAbstractTexture::metaObject() const.

pub unsafe fn minification_filter(&self) -> Filter[src]

Holds the minification filter of the texture provider.

Calls C++ function: Qt3DRender::QAbstractTexture::Filter Qt3DRender::QAbstractTexture::minificationFilter() const.

C++ documentation:

Holds the minification filter of the texture provider.

Access functions:

Filter minificationFilter() const
void setMinificationFilter(Filter f)

Notifier signal:

void minificationFilterChanged(Filter minificationFilter)

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int Qt3DRender::QAbstractTexture::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* Qt3DRender::QAbstractTexture::qt_metacast(const char* arg1).

pub unsafe fn remove_texture_image(
    &self,
    texture_image: impl CastInto<Ptr<QAbstractTextureImage>>
)
[src]

Removes a Qt3DCore::QAbstractTextureImage textureImage from the texture provider.

Calls C++ function: void Qt3DRender::QAbstractTexture::removeTextureImage(Qt3DRender::QAbstractTextureImage* textureImage).

C++ documentation:

Removes a Qt3DCore::QAbstractTextureImage textureImage from the texture provider.

pub unsafe fn samples(&self) -> c_int[src]

Holds the number of samples per texel for the texture provider. By default, the number of samples is 1.

Calls C++ function: int Qt3DRender::QAbstractTexture::samples() const.

C++ documentation:

Holds the number of samples per texel for the texture provider. By default, the number of samples is 1.

Note: this has a meaning only for texture providers that have multisample formats.

Access functions:

int samples() const
void setSamples(int samples)

Notifier signal:

void samplesChanged(int samples)

pub unsafe fn set_comparison_function(&self, function: ComparisonFunction)[src]

Set the comparison function to function.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setComparisonFunction(Qt3DRender::QAbstractTexture::ComparisonFunction function).

C++ documentation:

Set the comparison function to function.

Note: Setter function for property comparisonFunction.

See also comparisonFunction().

pub unsafe fn set_comparison_mode(&self, mode: ComparisonMode)[src]

Set the comparison mode to mode.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setComparisonMode(Qt3DRender::QAbstractTexture::ComparisonMode mode).

C++ documentation:

Set the comparison mode to mode.

Note: Setter function for property comparisonMode.

See also comparisonMode().

pub unsafe fn set_depth(&self, depth: c_int)[src]

Set the depth of the texture to depth.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setDepth(int depth).

C++ documentation:

Set the depth of the texture to depth.

Note: Setter function for property depth.

See also depth().

pub unsafe fn set_format(&self, format: TextureFormat)[src]

Set the texture format to format.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setFormat(Qt3DRender::QAbstractTexture::TextureFormat format).

C++ documentation:

Set the texture format to format.

Note: Setter function for property format.

See also format().

pub unsafe fn set_generate_mip_maps(&self, gen: bool)[src]

Boolean parameter gen sets a flag indicating whether the texture provider should generate mipmaps or not.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setGenerateMipMaps(bool gen).

C++ documentation:

Boolean parameter gen sets a flag indicating whether the texture provider should generate mipmaps or not.

Note: Setter function for property generateMipMaps.

See also generateMipMaps().

pub unsafe fn set_height(&self, height: c_int)[src]

Set the height to height.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setHeight(int height).

C++ documentation:

Set the height to height.

Note: Setter function for property height.

See also height().

pub unsafe fn set_layers(&self, layers: c_int)[src]

Set the maximum layer count to layers.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setLayers(int layers).

C++ documentation:

Set the maximum layer count to layers.

Note: Setter function for property layers.

See also layers().

pub unsafe fn set_magnification_filter(&self, f: Filter)[src]

Set the magnification filter to f.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setMagnificationFilter(Qt3DRender::QAbstractTexture::Filter f).

C++ documentation:

Set the magnification filter to f.

Note: Setter function for property magnificationFilter.

See also magnificationFilter().

pub unsafe fn set_maximum_anisotropy(&self, anisotropy: c_float)[src]

Sets the maximum anisotropy to anisotropy.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setMaximumAnisotropy(float anisotropy).

C++ documentation:

Sets the maximum anisotropy to anisotropy.

Note: Setter function for property maximumAnisotropy.

See also maximumAnisotropy().

pub unsafe fn set_minification_filter(&self, f: Filter)[src]

Set the minification filter to the specified value f.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setMinificationFilter(Qt3DRender::QAbstractTexture::Filter f).

C++ documentation:

Set the minification filter to the specified value f.

Note: Setter function for property minificationFilter.

See also minificationFilter().

pub unsafe fn set_samples(&self, samples: c_int)[src]

Set the number of samples per texel to samples.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setSamples(int samples).

C++ documentation:

Set the number of samples per texel to samples.

Note: Setter function for property samples.

See also samples().

pub unsafe fn set_size_3a(&self, width: c_int, height: c_int, depth: c_int)[src]

Sets the size of the texture provider to width w, height h and depth d.

Calls C++ function: void Qt3DRender::QAbstractTexture::setSize(int width, int height = …, int depth = …).

C++ documentation:

Sets the size of the texture provider to width w, height h and depth d.

pub unsafe fn set_size_2a(&self, width: c_int, height: c_int)[src]

Sets the size of the texture provider to width w, height h and depth d.

Calls C++ function: void Qt3DRender::QAbstractTexture::setSize(int width, int height = …).

C++ documentation:

Sets the size of the texture provider to width w, height h and depth d.

pub unsafe fn set_size_1a(&self, width: c_int)[src]

Sets the size of the texture provider to width w, height h and depth d.

Calls C++ function: void Qt3DRender::QAbstractTexture::setSize(int width).

C++ documentation:

Sets the size of the texture provider to width w, height h and depth d.

pub unsafe fn set_width(&self, width: c_int)[src]

Set the width of the texture provider to width.

Calls C++ function: [slot] void Qt3DRender::QAbstractTexture::setWidth(int width).

C++ documentation:

Set the width of the texture provider to width.

Note: Setter function for property width.

See also width().

pub unsafe fn set_wrap_mode(
    &self,
    wrap_mode: impl CastInto<Ref<QTextureWrapMode>>
)
[src]

Set the wrapmode to the value specified in wrapMode.

Calls C++ function: void Qt3DRender::QAbstractTexture::setWrapMode(const Qt3DRender::QTextureWrapMode& wrapMode).

C++ documentation:

Set the wrapmode to the value specified in wrapMode.

See also wrapMode().

pub unsafe fn status(&self) -> Status[src]

Holds the current status of the texture provider.

Calls C++ function: Qt3DRender::QAbstractTexture::Status Qt3DRender::QAbstractTexture::status() const.

C++ documentation:

Holds the current status of the texture provider.

Access functions:

Status status() const

Notifier signal:

void statusChanged(Status status)

pub unsafe fn target(&self) -> Target[src]

Holds the target format of the texture provider.

Calls C++ function: Qt3DRender::QAbstractTexture::Target Qt3DRender::QAbstractTexture::target() const.

C++ documentation:

Holds the target format of the texture provider.

Note: The target format can only be set once.

Access functions:

Target target() const

pub unsafe fn texture_images(&self) -> CppBox<QVectorOfQAbstractTextureImage>[src]

Returns a list of pointers to QAbstractTextureImage objects contained in the texture provider.

Calls C++ function: QVector<Qt3DRender::QAbstractTextureImage*> Qt3DRender::QAbstractTexture::textureImages() const.

C++ documentation:

Returns a list of pointers to QAbstractTextureImage objects contained in the texture provider.

pub unsafe fn update_data(&self, update: impl CastInto<Ref<QTextureDataUpdate>>)[src]

This is supported on cpp_lib_version="5.14.0" only.

Updates a sub region of the texture, defined by update, without having to change the data generator or rely on adding or removing texture images.

Calls C++ function: void Qt3DRender::QAbstractTexture::updateData(const Qt3DRender::QTextureDataUpdate& update).

C++ documentation:

Updates a sub region of the texture, defined by update, without having to change the data generator or rely on adding or removing texture images.

This function was introduced in Qt 5.14.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

pub unsafe fn width(&self) -> c_int[src]

Holds the width of the texture provider.

Calls C++ function: int Qt3DRender::QAbstractTexture::width() const.

C++ documentation:

Holds the width of the texture provider.

Access functions:

int width() const
void setWidth(int width)

Notifier signal:

void widthChanged(int width)

pub unsafe fn wrap_mode(&self) -> QPtr<QTextureWrapMode>[src]

Holds the wrap mode of the texture provider.

Calls C++ function: Qt3DRender::QTextureWrapMode* Qt3DRender::QAbstractTexture::wrapMode().

C++ documentation:

Holds the wrap mode of the texture provider.

Access functions:

QTextureWrapMode *wrapMode()

Trait Implementations

impl CppDeletable for QSharedGLTexture[src]

unsafe fn delete(&self)[src]

Calls C++ function: virtual [destructor] void Qt3DRender::QSharedGLTexture::~QSharedGLTexture().

impl Deref for QSharedGLTexture[src]

type Target = QAbstractTexture

The resulting type after dereferencing.

fn deref(&self) -> &QAbstractTexture[src]

Calls C++ function: Qt3DRender::QAbstractTexture* static_cast<Qt3DRender::QAbstractTexture*>(Qt3DRender::QSharedGLTexture* ptr).

impl DynamicCast<QSharedGLTexture> for QAbstractTexture[src]

unsafe fn dynamic_cast(ptr: Ptr<QAbstractTexture>) -> Ptr<QSharedGLTexture>[src]

Calls C++ function: Qt3DRender::QSharedGLTexture* dynamic_cast<Qt3DRender::QSharedGLTexture*>(Qt3DRender::QAbstractTexture* ptr).

impl DynamicCast<QSharedGLTexture> for QNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QSharedGLTexture>[src]

Calls C++ function: Qt3DRender::QSharedGLTexture* dynamic_cast<Qt3DRender::QSharedGLTexture*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QSharedGLTexture> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QSharedGLTexture>[src]

Calls C++ function: Qt3DRender::QSharedGLTexture* dynamic_cast<Qt3DRender::QSharedGLTexture*>(QObject* ptr).

impl StaticDowncast<QSharedGLTexture> for QAbstractTexture[src]

unsafe fn static_downcast(ptr: Ptr<QAbstractTexture>) -> Ptr<QSharedGLTexture>[src]

Calls C++ function: Qt3DRender::QSharedGLTexture* static_cast<Qt3DRender::QSharedGLTexture*>(Qt3DRender::QAbstractTexture* ptr).

impl StaticDowncast<QSharedGLTexture> for QNode[src]

unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QSharedGLTexture>[src]

Calls C++ function: Qt3DRender::QSharedGLTexture* static_cast<Qt3DRender::QSharedGLTexture*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QSharedGLTexture> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QSharedGLTexture>[src]

Calls C++ function: Qt3DRender::QSharedGLTexture* static_cast<Qt3DRender::QSharedGLTexture*>(QObject* ptr).

impl StaticUpcast<QAbstractTexture> for QSharedGLTexture[src]

unsafe fn static_upcast(ptr: Ptr<QSharedGLTexture>) -> Ptr<QAbstractTexture>[src]

Calls C++ function: Qt3DRender::QAbstractTexture* static_cast<Qt3DRender::QAbstractTexture*>(Qt3DRender::QSharedGLTexture* ptr).

impl StaticUpcast<QNode> for QSharedGLTexture[src]

unsafe fn static_upcast(ptr: Ptr<QSharedGLTexture>) -> Ptr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QSharedGLTexture* ptr).

impl StaticUpcast<QObject> for QSharedGLTexture[src]

unsafe fn static_upcast(ptr: Ptr<QSharedGLTexture>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QSharedGLTexture* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.