
io.qt.gui.QOpenGLFramebufferObject Maven / Gradle / Ivy
package io.qt.gui;
/**
* Encapsulates an OpenGL framebuffer object
* Java wrapper for Qt class QOpenGLFramebufferObject
*/
public class QOpenGLFramebufferObject extends io.qt.QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QOpenGLFramebufferObject::Attachment
*/
public enum Attachment implements io.qt.QtEnumerator {
NoAttachment(0),
CombinedDepthStencil(1),
Depth(2);
private Attachment(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 Attachment resolve(int value) {
switch (value) {
case 0: return NoAttachment;
case 1: return CombinedDepthStencil;
case 2: return Depth;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QOpenGLFramebufferObject::FramebufferRestorePolicy
*/
public enum FramebufferRestorePolicy implements io.qt.QtEnumerator {
DontRestoreFramebufferBinding(0),
RestoreFramebufferBindingToDefault(1),
RestoreFrameBufferBinding(2);
private FramebufferRestorePolicy(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 FramebufferRestorePolicy resolve(int value) {
switch (value) {
case 0: return DontRestoreFramebufferBinding;
case 1: return RestoreFramebufferBindingToDefault;
case 2: return RestoreFrameBufferBinding;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Overloaded constructor for {@link #QOpenGLFramebufferObject(io.qt.core.QSize, int)}
* with target = 0x0DE1
.
*/
public QOpenGLFramebufferObject(io.qt.core.QSize size) {
this(size, (int)0x0DE1);
}
/**
* See QOpenGLFramebufferObject::QOpenGLFramebufferObject(QSize,GLenum)
*/
public QOpenGLFramebufferObject(io.qt.core.QSize size, int target){
super((QPrivateConstructor)null);
initialize_native(this, size, target);
}
private native static void initialize_native(QOpenGLFramebufferObject instance, io.qt.core.QSize size, int target);
/**
* Overloaded constructor for {@link #QOpenGLFramebufferObject(io.qt.core.QSize, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)}
* with internalFormat = 0
.
*/
public QOpenGLFramebufferObject(io.qt.core.QSize size, io.qt.gui.QOpenGLFramebufferObject.Attachment attachment, int target) {
this(size, attachment, target, (int)0);
}
/**
* Overloaded constructor for {@link #QOpenGLFramebufferObject(io.qt.core.QSize, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)}
* with:
* target = 0x0DE1
* internalFormat = 0
*
*/
public QOpenGLFramebufferObject(io.qt.core.QSize size, io.qt.gui.QOpenGLFramebufferObject.Attachment attachment) {
this(size, attachment, (int)0x0DE1, (int)0);
}
/**
*
*/
public QOpenGLFramebufferObject(io.qt.core.QSize size, io.qt.gui.QOpenGLFramebufferObject.Attachment attachment, int target, int internalFormat){
super((QPrivateConstructor)null);
initialize_native(this, size, attachment, target, internalFormat);
}
private native static void initialize_native(QOpenGLFramebufferObject instance, io.qt.core.QSize size, io.qt.gui.QOpenGLFramebufferObject.Attachment attachment, int target, int internalFormat);
/**
* See QOpenGLFramebufferObject::QOpenGLFramebufferObject(QSize,QOpenGLFramebufferObjectFormat)
*/
public QOpenGLFramebufferObject(io.qt.core.QSize size, io.qt.gui.QOpenGLFramebufferObjectFormat format){
super((QPrivateConstructor)null);
initialize_native(this, size, format);
}
private native static void initialize_native(QOpenGLFramebufferObject instance, io.qt.core.QSize size, io.qt.gui.QOpenGLFramebufferObjectFormat format);
/**
* Overloaded constructor for {@link #QOpenGLFramebufferObject(int, int, int)}
* with target = 0x0DE1
.
*/
public QOpenGLFramebufferObject(int width, int height) {
this(width, height, (int)0x0DE1);
}
/**
* See QOpenGLFramebufferObject::QOpenGLFramebufferObject(int,int,GLenum)
*/
public QOpenGLFramebufferObject(int width, int height, int target){
super((QPrivateConstructor)null);
initialize_native(this, width, height, target);
}
private native static void initialize_native(QOpenGLFramebufferObject instance, int width, int height, int target);
/**
* Overloaded constructor for {@link #QOpenGLFramebufferObject(int, int, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)}
* with internalFormat = 0
.
*/
public QOpenGLFramebufferObject(int width, int height, io.qt.gui.QOpenGLFramebufferObject.Attachment attachment, int target) {
this(width, height, attachment, target, (int)0);
}
/**
* Overloaded constructor for {@link #QOpenGLFramebufferObject(int, int, io.qt.gui.QOpenGLFramebufferObject.Attachment, int, int)}
* with:
* target = 0x0DE1
* internalFormat = 0
*
*/
public QOpenGLFramebufferObject(int width, int height, io.qt.gui.QOpenGLFramebufferObject.Attachment attachment) {
this(width, height, attachment, (int)0x0DE1, (int)0);
}
/**
*
*/
public QOpenGLFramebufferObject(int width, int height, io.qt.gui.QOpenGLFramebufferObject.Attachment attachment, int target, int internalFormat){
super((QPrivateConstructor)null);
initialize_native(this, width, height, attachment, target, internalFormat);
}
private native static void initialize_native(QOpenGLFramebufferObject instance, int width, int height, io.qt.gui.QOpenGLFramebufferObject.Attachment attachment, int target, int internalFormat);
/**
* See QOpenGLFramebufferObject::QOpenGLFramebufferObject(int,int,QOpenGLFramebufferObjectFormat)
*/
public QOpenGLFramebufferObject(int width, int height, io.qt.gui.QOpenGLFramebufferObjectFormat format){
super((QPrivateConstructor)null);
initialize_native(this, width, height, format);
}
private native static void initialize_native(QOpenGLFramebufferObject instance, int width, int height, io.qt.gui.QOpenGLFramebufferObjectFormat format);
/**
* Overloaded function for {@link #addColorAttachment(io.qt.core.QSize, int)}
* with internalFormat = 0
.
*/
@io.qt.QtUninvokable
public final void addColorAttachment(io.qt.core.QSize size) {
addColorAttachment(size, (int)0);
}
/**
* See QOpenGLFramebufferObject::addColorAttachment(QSize,GLenum)
*/
@io.qt.QtUninvokable
public final void addColorAttachment(io.qt.core.QSize size, int internalFormat){
addColorAttachment_native_cref_QSize_GLenum(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size), internalFormat);
}
@io.qt.QtUninvokable
private native void addColorAttachment_native_cref_QSize_GLenum(long __this__nativeId, long size, int internalFormat);
/**
* Overloaded function for {@link #addColorAttachment(int, int, int)}
* with internalFormat = 0
.
*/
@io.qt.QtUninvokable
public final void addColorAttachment(int width, int height) {
addColorAttachment(width, height, (int)0);
}
/**
* See QOpenGLFramebufferObject::addColorAttachment(int,int,GLenum)
*/
@io.qt.QtUninvokable
public final void addColorAttachment(int width, int height, int internalFormat){
addColorAttachment_native_int_int_GLenum(QtJambi_LibraryUtilities.internal.nativeId(this), width, height, internalFormat);
}
@io.qt.QtUninvokable
private native void addColorAttachment_native_int_int_GLenum(long __this__nativeId, int width, int height, int internalFormat);
/**
* See QOpenGLFramebufferObject::attachment()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QOpenGLFramebufferObject.Attachment attachment(){
return io.qt.gui.QOpenGLFramebufferObject.Attachment.resolve(attachment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int attachment_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::bind()
*/
@io.qt.QtUninvokable
public final boolean bind(){
return bind_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean bind_native(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::format()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QOpenGLFramebufferObjectFormat format(){
return format_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QOpenGLFramebufferObjectFormat format_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::handle()const
*/
@io.qt.QtUninvokable
public final int handle(){
return handle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int handle_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::height()const
*/
@io.qt.QtUninvokable
public final int height(){
return height_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int height_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::isBound()const
*/
@io.qt.QtUninvokable
public final boolean isBound(){
return isBound_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isBound_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::isValid()const
*/
@io.qt.QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::release()
*/
@io.qt.QtUninvokable
public final boolean release(){
return release_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean release_native(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::setAttachment(QOpenGLFramebufferObject::Attachment)
*/
@io.qt.QtUninvokable
public final void setAttachment(io.qt.gui.QOpenGLFramebufferObject.Attachment attachment){
setAttachment_native_QOpenGLFramebufferObject_Attachment(QtJambi_LibraryUtilities.internal.nativeId(this), attachment.value());
}
@io.qt.QtUninvokable
private native void setAttachment_native_QOpenGLFramebufferObject_Attachment(long __this__nativeId, int attachment);
/**
* See QOpenGLFramebufferObject::size()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize size(){
return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize size_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::sizes()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QVector sizes(){
return sizes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QVector sizes_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::takeTexture()
*/
@io.qt.QtUninvokable
public final int takeTexture(){
return takeTexture_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int takeTexture_native(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::takeTexture(int)
*/
@io.qt.QtUninvokable
public final int takeTexture(int colorAttachmentIndex){
return takeTexture_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), colorAttachmentIndex);
}
@io.qt.QtUninvokable
private native int takeTexture_native_int(long __this__nativeId, int colorAttachmentIndex);
/**
* See QOpenGLFramebufferObject::texture()const
*/
@io.qt.QtUninvokable
public final int texture(){
return texture_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int texture_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::textures()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QVector textures(){
return textures_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QVector textures_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::toImage()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QImage toImage(){
return toImage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QImage toImage_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::toImage(bool)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QImage toImage(boolean flipped){
return toImage_native_bool_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), flipped);
}
@io.qt.QtUninvokable
private native io.qt.gui.QImage toImage_native_bool_constfct(long __this__nativeId, boolean flipped);
/**
* See QOpenGLFramebufferObject::toImage(bool,int)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QImage toImage(boolean flipped, int colorAttachmentIndex){
return toImage_native_bool_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), flipped, colorAttachmentIndex);
}
@io.qt.QtUninvokable
private native io.qt.gui.QImage toImage_native_bool_int_constfct(long __this__nativeId, boolean flipped, int colorAttachmentIndex);
/**
* See QOpenGLFramebufferObject::width()const
*/
@io.qt.QtUninvokable
public final int width(){
return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int width_native_constfct(long __this__nativeId);
/**
* See QOpenGLFramebufferObject::bindDefault()
*/
public native static boolean bindDefault();
/**
* Overloaded function for {@link #blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject, io.qt.gui.QOpenGLFramebufferObject, int, int)}
* with filter = 0x2600
.
*/
public static void blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject target, io.qt.gui.QOpenGLFramebufferObject source, int buffers) {
blitFramebuffer(target, source, buffers, (int)0x2600);
}
/**
* Overloaded function for {@link #blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject, io.qt.gui.QOpenGLFramebufferObject, int, int)}
* with:
* buffers = 0x00004000
* filter = 0x2600
*
*/
public static void blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject target, io.qt.gui.QOpenGLFramebufferObject source) {
blitFramebuffer(target, source, (int)0x00004000, (int)0x2600);
}
/**
*
*/
public static void blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject target, io.qt.gui.QOpenGLFramebufferObject source, int buffers, int filter){
blitFramebuffer_native_QOpenGLFramebufferObject_ptr_QOpenGLFramebufferObject_ptr_GLbitfield_GLenum(QtJambi_LibraryUtilities.internal.checkedNativeId(target), QtJambi_LibraryUtilities.internal.checkedNativeId(source), buffers, filter);
}
private native static void blitFramebuffer_native_QOpenGLFramebufferObject_ptr_QOpenGLFramebufferObject_ptr_GLbitfield_GLenum(long target, long source, int buffers, int filter);
/**
* Overloaded function for {@link #blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject, io.qt.core.QRect, io.qt.gui.QOpenGLFramebufferObject, io.qt.core.QRect, int, int)}
* with filter = 0x2600
.
*/
public static void blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject target, io.qt.core.QRect targetRect, io.qt.gui.QOpenGLFramebufferObject source, io.qt.core.QRect sourceRect, int buffers) {
blitFramebuffer(target, targetRect, source, sourceRect, buffers, (int)0x2600);
}
/**
* Overloaded function for {@link #blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject, io.qt.core.QRect, io.qt.gui.QOpenGLFramebufferObject, io.qt.core.QRect, int, int)}
* with:
* buffers = 0x00004000
* filter = 0x2600
*
*/
public static void blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject target, io.qt.core.QRect targetRect, io.qt.gui.QOpenGLFramebufferObject source, io.qt.core.QRect sourceRect) {
blitFramebuffer(target, targetRect, source, sourceRect, (int)0x00004000, (int)0x2600);
}
/**
*
*/
public static void blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject target, io.qt.core.QRect targetRect, io.qt.gui.QOpenGLFramebufferObject source, io.qt.core.QRect sourceRect, int buffers, int filter){
blitFramebuffer_native_QOpenGLFramebufferObject_ptr_cref_QRect_QOpenGLFramebufferObject_ptr_cref_QRect_GLbitfield_GLenum(QtJambi_LibraryUtilities.internal.checkedNativeId(target), QtJambi_LibraryUtilities.internal.checkedNativeId(targetRect), QtJambi_LibraryUtilities.internal.checkedNativeId(source), QtJambi_LibraryUtilities.internal.checkedNativeId(sourceRect), buffers, filter);
}
private native static void blitFramebuffer_native_QOpenGLFramebufferObject_ptr_cref_QRect_QOpenGLFramebufferObject_ptr_cref_QRect_GLbitfield_GLenum(long target, long targetRect, long source, long sourceRect, int buffers, int filter);
/**
*
*/
public static void blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject target, io.qt.core.QRect targetRect, io.qt.gui.QOpenGLFramebufferObject source, io.qt.core.QRect sourceRect, int buffers, int filter, int readColorAttachmentIndex, int drawColorAttachmentIndex){
blitFramebuffer_native_QOpenGLFramebufferObject_ptr_cref_QRect_QOpenGLFramebufferObject_ptr_cref_QRect_GLbitfield_GLenum_int_int(QtJambi_LibraryUtilities.internal.checkedNativeId(target), QtJambi_LibraryUtilities.internal.checkedNativeId(targetRect), QtJambi_LibraryUtilities.internal.checkedNativeId(source), QtJambi_LibraryUtilities.internal.checkedNativeId(sourceRect), buffers, filter, readColorAttachmentIndex, drawColorAttachmentIndex);
}
private native static void blitFramebuffer_native_QOpenGLFramebufferObject_ptr_cref_QRect_QOpenGLFramebufferObject_ptr_cref_QRect_GLbitfield_GLenum_int_int(long target, long targetRect, long source, long sourceRect, int buffers, int filter, int readColorAttachmentIndex, int drawColorAttachmentIndex);
/**
*
*/
public static void blitFramebuffer(io.qt.gui.QOpenGLFramebufferObject target, io.qt.core.QRect targetRect, io.qt.gui.QOpenGLFramebufferObject source, io.qt.core.QRect sourceRect, int buffers, int filter, int readColorAttachmentIndex, int drawColorAttachmentIndex, io.qt.gui.QOpenGLFramebufferObject.FramebufferRestorePolicy restorePolicy){
blitFramebuffer_native_QOpenGLFramebufferObject_ptr_cref_QRect_QOpenGLFramebufferObject_ptr_cref_QRect_GLbitfield_GLenum_int_int_QOpenGLFramebufferObject_FramebufferRestorePolicy(QtJambi_LibraryUtilities.internal.checkedNativeId(target), QtJambi_LibraryUtilities.internal.checkedNativeId(targetRect), QtJambi_LibraryUtilities.internal.checkedNativeId(source), QtJambi_LibraryUtilities.internal.checkedNativeId(sourceRect), buffers, filter, readColorAttachmentIndex, drawColorAttachmentIndex, restorePolicy.value());
}
private native static void blitFramebuffer_native_QOpenGLFramebufferObject_ptr_cref_QRect_QOpenGLFramebufferObject_ptr_cref_QRect_GLbitfield_GLenum_int_int_QOpenGLFramebufferObject_FramebufferRestorePolicy(long target, long targetRect, long source, long sourceRect, int buffers, int filter, int readColorAttachmentIndex, int drawColorAttachmentIndex, int restorePolicy);
/**
* See QOpenGLFramebufferObject::hasOpenGLFramebufferBlit()
*/
public native static boolean hasOpenGLFramebufferBlit();
/**
* See QOpenGLFramebufferObject::hasOpenGLFramebufferObjects()
*/
public native static boolean hasOpenGLFramebufferObjects();
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QOpenGLFramebufferObject(QPrivateConstructor p) { super(p); }
}