- All Implemented Interfaces:
QtObjectInterface
Encapsulates an OpenGL framebuffer object
Java wrapper for Qt class QOpenGLFramebufferObject
- Since:
- This class was introduced in Qt 5.0.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQOpenGLFramebufferObject::Attachment
static enum
Java wrapper for Qt enumQOpenGLFramebufferObject::FramebufferRestorePolicy
-
Constructor Summary
ConstructorDescriptionQOpenGLFramebufferObject
(int width, int height) Overloaded constructor forQOpenGLFramebufferObject(int, int, int)
withtarget = 0x0DE1
.QOpenGLFramebufferObject
(int width, int height, int target) QOpenGLFramebufferObject
(int width, int height, QOpenGLFramebufferObjectFormat format) QOpenGLFramebufferObject
(int width, int height, QOpenGLFramebufferObject.Attachment attachment) Overloaded constructor forQOpenGLFramebufferObject(int, int, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)
QOpenGLFramebufferObject
(int width, int height, QOpenGLFramebufferObject.Attachment attachment, int target) Overloaded constructor forQOpenGLFramebufferObject(int, int, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)
withinternalFormat = 0
.QOpenGLFramebufferObject
(int width, int height, QOpenGLFramebufferObject.Attachment attachment, int target, int internalFormat) Overloaded constructor forQOpenGLFramebufferObject(io.qt.core.QSize, int)
withtarget = 0x0DE1
.QOpenGLFramebufferObject
(QSize size, int target) QOpenGLFramebufferObject
(QSize size, QOpenGLFramebufferObjectFormat format) QOpenGLFramebufferObject
(QSize size, QOpenGLFramebufferObject.Attachment attachment) Overloaded constructor forQOpenGLFramebufferObject(io.qt.core.QSize, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)
QOpenGLFramebufferObject
(QSize size, QOpenGLFramebufferObject.Attachment attachment, int target) Overloaded constructor forQOpenGLFramebufferObject(io.qt.core.QSize, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)
withinternalFormat = 0
.QOpenGLFramebufferObject
(QSize size, QOpenGLFramebufferObject.Attachment attachment, int target, int internalFormat) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addColorAttachment
(int width, int height) Overloaded function foraddColorAttachment(int, int, int)
withinternalFormat = 0
.final void
addColorAttachment
(int width, int height, int internalFormat) final void
addColorAttachment
(QSize size) Overloaded function foraddColorAttachment(io.qt.core.QSize, int)
withinternalFormat = 0
.final void
addColorAttachment
(QSize size, int internalFormat) final boolean
bind()
static boolean
static void
blitFramebuffer
(QOpenGLFramebufferObject target, QRect targetRect, QOpenGLFramebufferObject source, QRect sourceRect) static void
blitFramebuffer
(QOpenGLFramebufferObject target, QRect targetRect, QOpenGLFramebufferObject source, QRect sourceRect, int buffers) Overloaded function forblitFramebuffer(io.qt.gui.QOpenGLFramebufferObject, io.qt.core.QRect, io.qt.gui.QOpenGLFramebufferObject, io.qt.core.QRect, int, int)
withfilter = 0x2600
.static void
blitFramebuffer
(QOpenGLFramebufferObject target, QRect targetRect, QOpenGLFramebufferObject source, QRect sourceRect, int buffers, int filter) static void
blitFramebuffer
(QOpenGLFramebufferObject target, QRect targetRect, QOpenGLFramebufferObject source, QRect sourceRect, int buffers, int filter, int readColorAttachmentIndex, int drawColorAttachmentIndex) static void
blitFramebuffer
(QOpenGLFramebufferObject target, QRect targetRect, QOpenGLFramebufferObject source, QRect sourceRect, int buffers, int filter, int readColorAttachmentIndex, int drawColorAttachmentIndex, QOpenGLFramebufferObject.FramebufferRestorePolicy restorePolicy) static void
blitFramebuffer
(QOpenGLFramebufferObject target, QOpenGLFramebufferObject source) static void
blitFramebuffer
(QOpenGLFramebufferObject target, QOpenGLFramebufferObject source, int buffers) Overloaded function forblitFramebuffer(io.qt.gui.QOpenGLFramebufferObject, io.qt.gui.QOpenGLFramebufferObject, int, int)
withfilter = 0x2600
.static void
blitFramebuffer
(QOpenGLFramebufferObject target, QOpenGLFramebufferObject source, int buffers, int filter) format()
final int
handle()
static boolean
static boolean
final int
height()
final boolean
isBound()
final boolean
isValid()
final boolean
release()
final void
setAttachment
(QOpenGLFramebufferObject.Attachment attachment) final QSize
size()
sizes()
final int
final int
takeTexture
(int colorAttachmentIndex) final int
texture()
final QVector<@QtPrimitiveType Integer>
textures()
final QImage
toImage()
final QImage
toImage
(boolean flipped) final QImage
toImage
(boolean flipped, int colorAttachmentIndex) final int
width()
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QOpenGLFramebufferObject
- Parameters:
size
-target
-
-
QOpenGLFramebufferObject
public QOpenGLFramebufferObject(QSize size, QOpenGLFramebufferObject.Attachment attachment, int target, int internalFormat) - Parameters:
size
-attachment
-target
-internalFormat
-
-
QOpenGLFramebufferObject
- Parameters:
size
-format
-
-
QOpenGLFramebufferObject
public QOpenGLFramebufferObject(int width, int height, int target) - Parameters:
width
-height
-target
-
-
QOpenGLFramebufferObject
public QOpenGLFramebufferObject(int width, int height, QOpenGLFramebufferObject.Attachment attachment, int target, int internalFormat) - Parameters:
width
-height
-attachment
-target
-internalFormat
-
-
QOpenGLFramebufferObject
- Parameters:
width
-height
-format
-
-
QOpenGLFramebufferObject
Overloaded constructor for
QOpenGLFramebufferObject(io.qt.core.QSize, int)
withtarget = 0x0DE1
. -
QOpenGLFramebufferObject
public QOpenGLFramebufferObject(QSize size, QOpenGLFramebufferObject.Attachment attachment, int target) Overloaded constructor for
QOpenGLFramebufferObject(io.qt.core.QSize, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)
withinternalFormat = 0
. -
QOpenGLFramebufferObject
Overloaded constructor for
QOpenGLFramebufferObject(io.qt.core.QSize, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)
with:
target = 0x0DE1
internalFormat = 0
-
QOpenGLFramebufferObject
public QOpenGLFramebufferObject(int width, int height) Overloaded constructor for
QOpenGLFramebufferObject(int, int, int)
withtarget = 0x0DE1
. -
QOpenGLFramebufferObject
public QOpenGLFramebufferObject(int width, int height, QOpenGLFramebufferObject.Attachment attachment, int target) Overloaded constructor for
QOpenGLFramebufferObject(int, int, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)
withinternalFormat = 0
. -
QOpenGLFramebufferObject
public QOpenGLFramebufferObject(int width, int height, QOpenGLFramebufferObject.Attachment attachment) Overloaded constructor for
QOpenGLFramebufferObject(int, int, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)
with:
target = 0x0DE1
internalFormat = 0
-
-
Method Details
-
addColorAttachment
- Parameters:
size
-internalFormat
-- Since:
- This function was introduced in Qt 5.6.
-
addColorAttachment
- Parameters:
width
-height
-internalFormat
-- Since:
- This function was introduced in Qt 5.6.
-
attachment
- Returns:
-
bind
- Returns:
-
format
- Returns:
-
handle
- Returns:
-
height
- Returns:
-
isBound
- Returns:
-
isValid
- Returns:
-
release
- Returns:
-
setAttachment
- Parameters:
attachment
-
-
size
- Returns:
-
sizes
- Returns:
- Since:
- This function was introduced in Qt 5.6.
-
takeTexture
- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
takeTexture
- Parameters:
colorAttachmentIndex
-- Returns:
- Since:
- This function was introduced in Qt 5.6.
-
texture
- Returns:
-
textures
- Returns:
- Since:
- This function was introduced in Qt 5.6.
-
toImage
- Returns:
-
toImage
- Parameters:
flipped
-- Returns:
-
toImage
- Parameters:
flipped
-colorAttachmentIndex
-- Returns:
- Since:
- This function was introduced in Qt 5.6.
-
width
- Returns:
-
bindDefault
public static boolean bindDefault()- Returns:
-
blitFramebuffer
public static void blitFramebuffer(QOpenGLFramebufferObject target, QOpenGLFramebufferObject source, int buffers, int filter) - Parameters:
target
-source
-buffers
-filter
-
-
blitFramebuffer
public static void blitFramebuffer(QOpenGLFramebufferObject target, QRect targetRect, QOpenGLFramebufferObject source, QRect sourceRect, int buffers, int filter) - Parameters:
target
-targetRect
-source
-sourceRect
-buffers
-filter
-
-
blitFramebuffer
public static void blitFramebuffer(QOpenGLFramebufferObject target, QRect targetRect, QOpenGLFramebufferObject source, QRect sourceRect, int buffers, int filter, int readColorAttachmentIndex, int drawColorAttachmentIndex) - Parameters:
target
-targetRect
-source
-sourceRect
-buffers
-filter
-readColorAttachmentIndex
-drawColorAttachmentIndex
-
-
blitFramebuffer
public static void blitFramebuffer(QOpenGLFramebufferObject target, QRect targetRect, QOpenGLFramebufferObject source, QRect sourceRect, int buffers, int filter, int readColorAttachmentIndex, int drawColorAttachmentIndex, QOpenGLFramebufferObject.FramebufferRestorePolicy restorePolicy) - Parameters:
target
-targetRect
-source
-sourceRect
-buffers
-filter
-readColorAttachmentIndex
-drawColorAttachmentIndex
-restorePolicy
-- Since:
- This function was introduced in Qt 5.7.
-
hasOpenGLFramebufferBlit
public static boolean hasOpenGLFramebufferBlit()- Returns:
-
hasOpenGLFramebufferObjects
public static boolean hasOpenGLFramebufferObjects()- Returns:
-
addColorAttachment
Overloaded function for
addColorAttachment(io.qt.core.QSize, int)
withinternalFormat = 0
. -
addColorAttachment
Overloaded function for
addColorAttachment(int, int, int)
withinternalFormat = 0
. -
blitFramebuffer
public static void blitFramebuffer(QOpenGLFramebufferObject target, QOpenGLFramebufferObject source, int buffers) Overloaded function for
blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject, io.qt.gui.QOpenGLFramebufferObject, int, int)
withfilter = 0x2600
. -
blitFramebuffer
public static void blitFramebuffer(QOpenGLFramebufferObject target, QOpenGLFramebufferObject source) Overloaded function for
blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject, io.qt.gui.QOpenGLFramebufferObject, int, int)
with:
buffers = 0x00004000
filter = 0x2600
-
blitFramebuffer
public static void blitFramebuffer(QOpenGLFramebufferObject target, QRect targetRect, QOpenGLFramebufferObject source, QRect sourceRect, int buffers) Overloaded function for
blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject, io.qt.core.QRect, io.qt.gui.QOpenGLFramebufferObject, io.qt.core.QRect, int, int)
withfilter = 0x2600
. -
blitFramebuffer
public static void blitFramebuffer(QOpenGLFramebufferObject target, QRect targetRect, QOpenGLFramebufferObject source, QRect sourceRect) Overloaded function for
blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject, io.qt.core.QRect, io.qt.gui.QOpenGLFramebufferObject, io.qt.core.QRect, int, int)
with:
buffers = 0x00004000
filter = 0x2600
-