Skip to main content

QOpenGLFramebufferObject

Struct QOpenGLFramebufferObject 

Source
pub struct QOpenGLFramebufferObject { /* private fields */ }
Expand description

C++ class: QOpenGLFramebufferObject.

Implementations§

Source§

impl QOpenGLFramebufferObject

Source

pub unsafe fn add_color_attachment_q_size_uint( &self, size: impl CastInto<Ref<QSize>>, internal_format: c_uint, )

Calls C++ function: void QOpenGLFramebufferObject::addColorAttachment(const QSize& size, unsigned int internalFormat = …).

Source

pub unsafe fn add_color_attachment_2_int_uint( &self, width: c_int, height: c_int, internal_format: c_uint, )

Calls C++ function: void QOpenGLFramebufferObject::addColorAttachment(int width, int height, unsigned int internalFormat = …).

Source

pub unsafe fn add_color_attachment_q_size( &self, size: impl CastInto<Ref<QSize>>, )

Calls C++ function: void QOpenGLFramebufferObject::addColorAttachment(const QSize& size).

Source

pub unsafe fn add_color_attachment_2_int(&self, width: c_int, height: c_int)

Calls C++ function: void QOpenGLFramebufferObject::addColorAttachment(int width, int height).

Source

pub unsafe fn attachment(&self) -> Attachment

Calls C++ function: QOpenGLFramebufferObject::Attachment QOpenGLFramebufferObject::attachment() const.

Source

pub unsafe fn bind(&self) -> bool

Calls C++ function: bool QOpenGLFramebufferObject::bind().

Source

pub unsafe fn bind_default() -> bool

Calls C++ function: static bool QOpenGLFramebufferObject::bindDefault().

Source

pub unsafe fn blit_framebuffer_q_opengl_framebuffer_object_q_rect_q_opengl_framebuffer_object_q_rect2_uint2_int_framebuffer_restore_policy( target: impl CastInto<Ptr<QOpenGLFramebufferObject>>, target_rect: impl CastInto<Ref<QRect>>, source: impl CastInto<Ptr<QOpenGLFramebufferObject>>, source_rect: impl CastInto<Ref<QRect>>, buffers: c_uint, filter: c_uint, read_color_attachment_index: c_int, draw_color_attachment_index: c_int, restore_policy: FramebufferRestorePolicy, )

Calls C++ function: static void QOpenGLFramebufferObject::blitFramebuffer(QOpenGLFramebufferObject* target, const QRect& targetRect, QOpenGLFramebufferObject* source, const QRect& sourceRect, unsigned int buffers, unsigned int filter, int readColorAttachmentIndex, int drawColorAttachmentIndex, QOpenGLFramebufferObject::FramebufferRestorePolicy restorePolicy).

Source

pub unsafe fn blit_framebuffer_q_opengl_framebuffer_object_q_rect_q_opengl_framebuffer_object_q_rect2_uint2_int( target: impl CastInto<Ptr<QOpenGLFramebufferObject>>, target_rect: impl CastInto<Ref<QRect>>, source: impl CastInto<Ptr<QOpenGLFramebufferObject>>, source_rect: impl CastInto<Ref<QRect>>, buffers: c_uint, filter: c_uint, read_color_attachment_index: c_int, draw_color_attachment_index: c_int, )

Calls C++ function: static void QOpenGLFramebufferObject::blitFramebuffer(QOpenGLFramebufferObject* target, const QRect& targetRect, QOpenGLFramebufferObject* source, const QRect& sourceRect, unsigned int buffers, unsigned int filter, int readColorAttachmentIndex, int drawColorAttachmentIndex).

Source

pub unsafe fn blit_framebuffer_q_opengl_framebuffer_object_q_rect_q_opengl_framebuffer_object_q_rect2_uint( target: impl CastInto<Ptr<QOpenGLFramebufferObject>>, target_rect: impl CastInto<Ref<QRect>>, source: impl CastInto<Ptr<QOpenGLFramebufferObject>>, source_rect: impl CastInto<Ref<QRect>>, buffers: c_uint, filter: c_uint, )

Calls C++ function: static void QOpenGLFramebufferObject::blitFramebuffer(QOpenGLFramebufferObject* target, const QRect& targetRect, QOpenGLFramebufferObject* source, const QRect& sourceRect, unsigned int buffers = …, unsigned int filter = …).

Source

pub unsafe fn blit_framebuffer_2_q_opengl_framebuffer_object2_uint( target: impl CastInto<Ptr<QOpenGLFramebufferObject>>, source: impl CastInto<Ptr<QOpenGLFramebufferObject>>, buffers: c_uint, filter: c_uint, )

Calls C++ function: static void QOpenGLFramebufferObject::blitFramebuffer(QOpenGLFramebufferObject* target, QOpenGLFramebufferObject* source, unsigned int buffers = …, unsigned int filter = …).

Source

pub unsafe fn blit_framebuffer_q_opengl_framebuffer_object_q_rect_q_opengl_framebuffer_object_q_rect_uint( target: impl CastInto<Ptr<QOpenGLFramebufferObject>>, target_rect: impl CastInto<Ref<QRect>>, source: impl CastInto<Ptr<QOpenGLFramebufferObject>>, source_rect: impl CastInto<Ref<QRect>>, buffers: c_uint, )

Calls C++ function: static void QOpenGLFramebufferObject::blitFramebuffer(QOpenGLFramebufferObject* target, const QRect& targetRect, QOpenGLFramebufferObject* source, const QRect& sourceRect, unsigned int buffers = …).

Source

pub unsafe fn blit_framebuffer_q_opengl_framebuffer_object_q_rect_q_opengl_framebuffer_object_q_rect( target: impl CastInto<Ptr<QOpenGLFramebufferObject>>, target_rect: impl CastInto<Ref<QRect>>, source: impl CastInto<Ptr<QOpenGLFramebufferObject>>, source_rect: impl CastInto<Ref<QRect>>, )

Calls C++ function: static void QOpenGLFramebufferObject::blitFramebuffer(QOpenGLFramebufferObject* target, const QRect& targetRect, QOpenGLFramebufferObject* source, const QRect& sourceRect).

Source

pub unsafe fn blit_framebuffer_2_q_opengl_framebuffer_object_uint( target: impl CastInto<Ptr<QOpenGLFramebufferObject>>, source: impl CastInto<Ptr<QOpenGLFramebufferObject>>, buffers: c_uint, )

Calls C++ function: static void QOpenGLFramebufferObject::blitFramebuffer(QOpenGLFramebufferObject* target, QOpenGLFramebufferObject* source, unsigned int buffers = …).

Source

pub unsafe fn blit_framebuffer_2_q_opengl_framebuffer_object( target: impl CastInto<Ptr<QOpenGLFramebufferObject>>, source: impl CastInto<Ptr<QOpenGLFramebufferObject>>, )

Calls C++ function: static void QOpenGLFramebufferObject::blitFramebuffer(QOpenGLFramebufferObject* target, QOpenGLFramebufferObject* source).

Source

pub unsafe fn format(&self) -> CppBox<QOpenGLFramebufferObjectFormat>

Calls C++ function: QOpenGLFramebufferObjectFormat QOpenGLFramebufferObject::format() const.

Source

pub unsafe fn handle(&self) -> c_uint

Calls C++ function: unsigned int QOpenGLFramebufferObject::handle() const.

Source

pub unsafe fn has_opengl_framebuffer_blit() -> bool

Calls C++ function: static bool QOpenGLFramebufferObject::hasOpenGLFramebufferBlit().

Source

pub unsafe fn has_opengl_framebuffer_objects() -> bool

Calls C++ function: static bool QOpenGLFramebufferObject::hasOpenGLFramebufferObjects().

Source

pub unsafe fn height(&self) -> c_int

Calls C++ function: int QOpenGLFramebufferObject::height() const.

Source

pub unsafe fn is_bound(&self) -> bool

Calls C++ function: bool QOpenGLFramebufferObject::isBound() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QOpenGLFramebufferObject::isValid() const.

Source

pub unsafe fn from_q_size_uint( size: impl CastInto<Ref<QSize>>, target: c_uint, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(const QSize& size, unsigned int target = …).

Source

pub unsafe fn from_2_int_uint( width: c_int, height: c_int, target: c_uint, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(int width, int height, unsigned int target = …).

Source

pub unsafe fn from_q_size_attachment2_uint( size: impl CastInto<Ref<QSize>>, attachment: Attachment, target: c_uint, internal_format: c_uint, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(const QSize& size, QOpenGLFramebufferObject::Attachment attachment, unsigned int target = …, unsigned int internalFormat = …).

Source

pub unsafe fn from_2_int_attachment2_uint( width: c_int, height: c_int, attachment: Attachment, target: c_uint, internal_format: c_uint, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(int width, int height, QOpenGLFramebufferObject::Attachment attachment, unsigned int target = …, unsigned int internalFormat = …).

Source

pub unsafe fn from_q_size_q_opengl_framebuffer_object_format( size: impl CastInto<Ref<QSize>>, format: impl CastInto<Ref<QOpenGLFramebufferObjectFormat>>, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(const QSize& size, const QOpenGLFramebufferObjectFormat& format).

Source

pub unsafe fn from_2_int_q_opengl_framebuffer_object_format( width: c_int, height: c_int, format: impl CastInto<Ref<QOpenGLFramebufferObjectFormat>>, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(int width, int height, const QOpenGLFramebufferObjectFormat& format).

Source

pub unsafe fn from_q_size( size: impl CastInto<Ref<QSize>>, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(const QSize& size).

Source

pub unsafe fn from_2_int( width: c_int, height: c_int, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(int width, int height).

Source

pub unsafe fn from_q_size_attachment_uint( size: impl CastInto<Ref<QSize>>, attachment: Attachment, target: c_uint, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(const QSize& size, QOpenGLFramebufferObject::Attachment attachment, unsigned int target = …).

Source

pub unsafe fn from_q_size_attachment( size: impl CastInto<Ref<QSize>>, attachment: Attachment, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(const QSize& size, QOpenGLFramebufferObject::Attachment attachment).

Source

pub unsafe fn from_2_int_attachment_uint( width: c_int, height: c_int, attachment: Attachment, target: c_uint, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(int width, int height, QOpenGLFramebufferObject::Attachment attachment, unsigned int target = …).

Source

pub unsafe fn from_2_int_attachment( width: c_int, height: c_int, attachment: Attachment, ) -> CppBox<QOpenGLFramebufferObject>

Calls C++ function: [constructor] void QOpenGLFramebufferObject::QOpenGLFramebufferObject(int width, int height, QOpenGLFramebufferObject::Attachment attachment).

Source

pub unsafe fn release(&self) -> bool

Calls C++ function: bool QOpenGLFramebufferObject::release().

Source

pub unsafe fn set_attachment(&self, attachment: Attachment)

Calls C++ function: void QOpenGLFramebufferObject::setAttachment(QOpenGLFramebufferObject::Attachment attachment).

Source

pub unsafe fn size(&self) -> CppBox<QSize>

Calls C++ function: QSize QOpenGLFramebufferObject::size() const.

Source

pub unsafe fn sizes(&self) -> CppBox<QVectorOfQSize>

Calls C++ function: QVector<QSize> QOpenGLFramebufferObject::sizes() const.

Source

pub unsafe fn take_texture_0a(&self) -> c_uint

Calls C++ function: unsigned int QOpenGLFramebufferObject::takeTexture().

Source

pub unsafe fn take_texture_1a(&self, color_attachment_index: c_int) -> c_uint

Calls C++ function: unsigned int QOpenGLFramebufferObject::takeTexture(int colorAttachmentIndex).

Source

pub unsafe fn texture(&self) -> c_uint

Calls C++ function: unsigned int QOpenGLFramebufferObject::texture() const.

Source

pub unsafe fn textures(&self) -> CppBox<QVectorOfUint>

Calls C++ function: QVector<unsigned int> QOpenGLFramebufferObject::textures() const.

Source

pub unsafe fn to_image_0a(&self) -> CppBox<QImage>

Calls C++ function: QImage QOpenGLFramebufferObject::toImage() const.

Source

pub unsafe fn to_image_1a(&self, flipped: bool) -> CppBox<QImage>

Calls C++ function: QImage QOpenGLFramebufferObject::toImage(bool flipped) const.

Source

pub unsafe fn to_image_2a( &self, flipped: bool, color_attachment_index: c_int, ) -> CppBox<QImage>

Calls C++ function: QImage QOpenGLFramebufferObject::toImage(bool flipped, int colorAttachmentIndex) const.

Source

pub unsafe fn width(&self) -> c_int

Calls C++ function: int QOpenGLFramebufferObject::width() const.

Trait Implementations§

Source§

impl CppDeletable for QOpenGLFramebufferObject

Source§

unsafe fn delete(&self)

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

Source§

impl Size for QOpenGLFramebufferObject

Source§

unsafe fn size(&self) -> usize

Calls C++ function: QSize QOpenGLFramebufferObject::size() const.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.