[−][src]Struct qt_3d_render::QTextureImage
Encapsulates the necessary information to create an OpenGL texture image from an image source.
C++ class: Qt3DRender::QTextureImage
.
Encapsulates the necessary information to create an OpenGL texture image from an image source.
It contains the necessary information mipmap level, layer, cube face and source URL to load at the proper place data into an OpenGL texture.
Methods
impl QTextureImage
[src]
pub fn slot_set_source(&self) -> Receiver<(*const QUrl,)>
[src]
Sets the source url of the texture image to source.
Returns a built-in Qt slot Qt3DRender::QTextureImage::setSource
that can be passed to qt_core::Signal::connect
.
pub fn slot_set_mirrored(&self) -> Receiver<(bool,)>
[src]
Sets mirroring to mirrored.
Returns a built-in Qt slot Qt3DRender::QTextureImage::setMirrored
that can be passed to qt_core::Signal::connect
.
Sets mirroring to mirrored.
Note: This internally triggers a call to update the data generator.
Note: Setter function for property mirrored.
See also isMirrored().
pub fn source_changed(&self) -> Signal<(*const QUrl,)>
[src]
This property holds the source url from which data for the texture image will be loaded.
Returns a built-in Qt signal Qt3DRender::QTextureImage::sourceChanged
that can be passed to qt_core::Signal::connect
.
pub fn status_changed(&self) -> Signal<(Status,)>
[src]
This property holds the status of the texture image loading.
Returns a built-in Qt signal Qt3DRender::QTextureImage::statusChanged
that can be passed to qt_core::Signal::connect
.
This property holds the status of the texture image loading.
- TextureImage.None
- TextureImage.Loading
- TextureImage.Ready
- TextureImage.Error
Access functions:
Status | status() const |
Notifier signal:
void | statusChanged(Status status) |
pub fn mirrored_changed(&self) -> Signal<(bool,)>
[src]
This property specifies whether the image should be mirrored when loaded. This is a convenience to avoid having to manipulate images to match the origin of the texture coordinates used by the rendering API. By default this property is set to true. This has no effect when using compressed texture formats.
Returns a built-in Qt signal Qt3DRender::QTextureImage::mirroredChanged
that can be passed to qt_core::Signal::connect
.
This property specifies whether the image should be mirrored when loaded. This is a convenience to avoid having to manipulate images to match the origin of the texture coordinates used by the rendering API. By default this property is set to true. This has no effect when using compressed texture formats.
Note: OpenGL specifies the origin of texture coordinates from the lower left hand corner whereas DirectX uses the the upper left hand corner.
Note: When using cube map texture you'll probably want mirroring disabled as the cube map sampler takes a direction rather than regular texture coordinates.
Access functions:
bool | isMirrored() const |
void | setMirrored(bool mirrored) |
Notifier signal:
void | mirroredChanged(bool mirrored) |
pub unsafe fn is_mirrored(&self) -> bool
[src]
Returns whether mirroring is enabled or not.
Calls C++ function: bool Qt3DRender::QTextureImage::isMirrored() const
.
Returns whether mirroring is enabled or not.
Note: Getter function for property mirrored.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QTextureImage::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QTextureImage>
[src]
Default constructs an instance of QTextureImage.
Calls C++ function: [constructor] void Qt3DRender::QTextureImage::QTextureImage(Qt3DCore::QNode* parent = …)
.
Default constructs an instance of QTextureImage.
pub unsafe fn new_0a() -> QBox<QTextureImage>
[src]
Encapsulates the necessary information to create an OpenGL texture image from an image source.
Calls C++ function: [constructor] void Qt3DRender::QTextureImage::QTextureImage()
.
Encapsulates the necessary information to create an OpenGL texture image from an image source.
It contains the necessary information mipmap level, layer, cube face and source URL to load at the proper place data into an OpenGL texture.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int Qt3DRender::QTextureImage::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::QTextureImage::qt_metacast(const char* arg1)
.
pub unsafe fn set_mirrored(&self, mirrored: bool)
[src]
Sets mirroring to mirrored.
Calls C++ function: [slot] void Qt3DRender::QTextureImage::setMirrored(bool mirrored)
.
Sets mirroring to mirrored.
Note: This internally triggers a call to update the data generator.
Note: Setter function for property mirrored.
See also isMirrored().
pub unsafe fn set_source(&self, source: impl CastInto<Ref<QUrl>>)
[src]
Sets the source url of the texture image to source.
Calls C++ function: [slot] void Qt3DRender::QTextureImage::setSource(const QUrl& source)
.
pub unsafe fn source(&self) -> CppBox<QUrl>
[src]
This property holds the source url from which data for the texture image will be loaded.
Calls C++ function: QUrl Qt3DRender::QTextureImage::source() const
.
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
pub unsafe fn status(&self) -> Status
[src]
This property holds the status of the texture image loading.
Calls C++ function: Qt3DRender::QTextureImage::Status Qt3DRender::QTextureImage::status() const
.
This property holds the status of the texture image loading.
- TextureImage.None
- TextureImage.Loading
- TextureImage.Ready
- TextureImage.Error
Access functions:
Status | status() const |
Notifier signal:
void | statusChanged(Status status) |
pub unsafe fn tr(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QTextureImage::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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QTextureImage::trUtf8(const char* s, const char* c, int n)
.
Methods from Deref<Target = QAbstractTextureImage>
pub fn slot_set_mip_level(&self) -> Receiver<(c_int,)>
[src]
Sets the mip level of a texture to level. level
Returns a built-in Qt slot Qt3DRender::QAbstractTextureImage::setMipLevel
that can be passed to qt_core::Signal::connect
.
pub fn slot_set_layer(&self) -> Receiver<(c_int,)>
[src]
Sets the layer of a texture to layer. layer
Returns a built-in Qt slot Qt3DRender::QAbstractTextureImage::setLayer
that can be passed to qt_core::Signal::connect
.
pub fn slot_set_face(&self) -> Receiver<(CubeMapFace,)>
[src]
Sets the texture image face to face. face
Returns a built-in Qt slot Qt3DRender::QAbstractTextureImage::setFace
that can be passed to qt_core::Signal::connect
.
pub fn mip_level_changed(&self) -> Signal<(c_int,)>
[src]
Holds the mipmap level of the texture image.
Returns a built-in Qt signal Qt3DRender::QAbstractTextureImage::mipLevelChanged
that can be passed to qt_core::Signal::connect
.
Holds the mipmap level of the texture image.
Access functions:
int | mipLevel() const |
void | setMipLevel(int level) |
Notifier signal:
void | mipLevelChanged(int mipLevel) |
pub fn layer_changed(&self) -> Signal<(c_int,)>
[src]
Returns the layer of the texture image.
Returns a built-in Qt signal Qt3DRender::QAbstractTextureImage::layerChanged
that can be passed to qt_core::Signal::connect
.
Returns the layer of the texture image.
Access functions:
int | layer() const |
void | setLayer(int layer) |
Notifier signal:
void | layerChanged(int layer) |
pub fn face_changed(&self) -> Signal<(CubeMapFace,)>
[src]
Holds the cube map face of the texture image.
Returns a built-in Qt signal Qt3DRender::QAbstractTextureImage::faceChanged
that can be passed to qt_core::Signal::connect
.
Holds the cube map face of the texture image.
Note: The cube map face has a meaning only for TargetCubeMap and TargetCubeMapArray.
Access functions:
QAbstractTexture::CubeMapFace | face() const |
void | setFace(QAbstractTexture::CubeMapFace face) |
Notifier signal:
void | faceChanged(QAbstractTexture::CubeMapFace face) |
pub unsafe fn face(&self) -> CubeMapFace
[src]
Holds the cube map face of the texture image.
Calls C++ function: Qt3DRender::QAbstractTexture::CubeMapFace Qt3DRender::QAbstractTextureImage::face() const
.
Holds the cube map face of the texture image.
Note: The cube map face has a meaning only for TargetCubeMap and TargetCubeMapArray.
Access functions:
QAbstractTexture::CubeMapFace | face() const |
void | setFace(QAbstractTexture::CubeMapFace face) |
Notifier signal:
void | faceChanged(QAbstractTexture::CubeMapFace face) |
pub unsafe fn layer(&self) -> c_int
[src]
Returns the layer of the texture image.
Calls C++ function: int Qt3DRender::QAbstractTextureImage::layer() const
.
Returns the layer of the texture image.
Access functions:
int | layer() const |
void | setLayer(int layer) |
Notifier signal:
void | layerChanged(int layer) |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QAbstractTextureImage::metaObject() const
.
pub unsafe fn mip_level(&self) -> c_int
[src]
Holds the mipmap level of the texture image.
Calls C++ function: int Qt3DRender::QAbstractTextureImage::mipLevel() const
.
Holds the mipmap level of the texture image.
Access functions:
int | mipLevel() const |
void | setMipLevel(int level) |
Notifier signal:
void | mipLevelChanged(int mipLevel) |
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int Qt3DRender::QAbstractTextureImage::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::QAbstractTextureImage::qt_metacast(const char* arg1)
.
pub unsafe fn set_face(&self, face: CubeMapFace)
[src]
Sets the texture image face to face. face
Calls C++ function: [slot] void Qt3DRender::QAbstractTextureImage::setFace(Qt3DRender::QAbstractTexture::CubeMapFace face)
.
pub unsafe fn set_layer(&self, layer: c_int)
[src]
Sets the layer of a texture to layer. layer
Calls C++ function: [slot] void Qt3DRender::QAbstractTextureImage::setLayer(int layer)
.
pub unsafe fn set_mip_level(&self, level: c_int)
[src]
Sets the mip level of a texture to level. level
Calls C++ function: [slot] void Qt3DRender::QAbstractTextureImage::setMipLevel(int level)
.
Trait Implementations
impl CppDeletable for QTextureImage
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DRender::QTextureImage::~QTextureImage()
.
impl Deref for QTextureImage
[src]
type Target = QAbstractTextureImage
The resulting type after dereferencing.
fn deref(&self) -> &QAbstractTextureImage
[src]
Calls C++ function: Qt3DRender::QAbstractTextureImage* static_cast<Qt3DRender::QAbstractTextureImage*>(Qt3DRender::QTextureImage* ptr)
.
impl DynamicCast<QTextureImage> for QAbstractTextureImage
[src]
unsafe fn dynamic_cast(ptr: Ptr<QAbstractTextureImage>) -> Ptr<QTextureImage>
[src]
Calls C++ function: Qt3DRender::QTextureImage* dynamic_cast<Qt3DRender::QTextureImage*>(Qt3DRender::QAbstractTextureImage* ptr)
.
impl DynamicCast<QTextureImage> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QTextureImage>
[src]
Calls C++ function: Qt3DRender::QTextureImage* dynamic_cast<Qt3DRender::QTextureImage*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QTextureImage> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QTextureImage>
[src]
Calls C++ function: Qt3DRender::QTextureImage* dynamic_cast<Qt3DRender::QTextureImage*>(QObject* ptr)
.
impl StaticDowncast<QTextureImage> for QAbstractTextureImage
[src]
unsafe fn static_downcast(ptr: Ptr<QAbstractTextureImage>) -> Ptr<QTextureImage>
[src]
Calls C++ function: Qt3DRender::QTextureImage* static_cast<Qt3DRender::QTextureImage*>(Qt3DRender::QAbstractTextureImage* ptr)
.
impl StaticDowncast<QTextureImage> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QTextureImage>
[src]
Calls C++ function: Qt3DRender::QTextureImage* static_cast<Qt3DRender::QTextureImage*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QTextureImage> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QTextureImage>
[src]
Calls C++ function: Qt3DRender::QTextureImage* static_cast<Qt3DRender::QTextureImage*>(QObject* ptr)
.
impl StaticUpcast<QAbstractTextureImage> for QTextureImage
[src]
unsafe fn static_upcast(ptr: Ptr<QTextureImage>) -> Ptr<QAbstractTextureImage>
[src]
Calls C++ function: Qt3DRender::QAbstractTextureImage* static_cast<Qt3DRender::QAbstractTextureImage*>(Qt3DRender::QTextureImage* ptr)
.
impl StaticUpcast<QNode> for QTextureImage
[src]
unsafe fn static_upcast(ptr: Ptr<QTextureImage>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QTextureImage* ptr)
.
impl StaticUpcast<QObject> for QTextureImage
[src]
unsafe fn static_upcast(ptr: Ptr<QTextureImage>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QTextureImage* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QTextureImage
impl Send for QTextureImage
impl Sync for QTextureImage
impl Unpin for QTextureImage
impl UnwindSafe for QTextureImage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,