Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtOpenGL.QGLFramebufferObjectFormat Class Reference

The QGLFramebufferObjectFormat class specifies the format of an OpenGL framebuffer object. More...

Inheritance diagram for QtOpenGL.QGLFramebufferObjectFormat:
Collaboration diagram for QtOpenGL.QGLFramebufferObjectFormat:

Public Member Functions

override bool Equals (object o)
 
override int GetHashCode ()
 
 QGLFramebufferObjectFormat ()
 
 
 QGLFramebufferObjectFormat (QGLFramebufferObjectFormat other)
 
 
virtual void CreateProxy ()
 
new void Dispose ()
 

Static Public Member Functions

static bool operator!= (QGLFramebufferObjectFormat arg1, QGLFramebufferObjectFormat arg2)
 
 
static bool operator== (QGLFramebufferObjectFormat arg1, QGLFramebufferObjectFormat arg2)
 
 

Protected Member Functions

 QGLFramebufferObjectFormat (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

new QGLFramebufferObject.Attachment Attachment [get, set]
 
 
new int InternalTextureFormat [get, set]
 
 
new bool Mipmap [get, set]
 
 
new int Samples [get, set]
 
 
new int TextureTarget [get, set]
 
 
virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QGLFramebufferObjectFormat class specifies the format of an OpenGL framebuffer object.

A framebuffer object has several characteristics:

Number of samples per pixels.

Depth and/or stencil attachments.

Texture target.

Internal texture format.

Note that the desired attachments or number of samples per pixels might not be supported by the hardware driver. Call QGLFramebufferObject::format() after creating a QGLFramebufferObject to find the exact format that was used to create the frame buffer object.

See also QGLFramebufferObject.

Constructor & Destructor Documentation

QtOpenGL.QGLFramebufferObjectFormat.QGLFramebufferObjectFormat ( System.Type  dummy)
protected
QtOpenGL.QGLFramebufferObjectFormat.QGLFramebufferObjectFormat ( )

Creates a QGLFramebufferObjectFormat object for specifying the format of an OpenGL framebuffer object.

By default the format specifies a non-multisample framebuffer object with no attachments, texture target GL_TEXTURE_2D, and internal format GL_RGBA8. On OpenGL/ES systems, the default internal format is GL_RGBA.

See also samples(), attachment(), and internalTextureFormat().

QtOpenGL.QGLFramebufferObjectFormat.QGLFramebufferObjectFormat ( QGLFramebufferObjectFormat  other)

Constructs a copy of other.

Member Function Documentation

virtual void QtOpenGL.QGLFramebufferObjectFormat.CreateProxy ( )
virtual
new void QtOpenGL.QGLFramebufferObjectFormat.Dispose ( )
override bool QtOpenGL.QGLFramebufferObjectFormat.Equals ( object  o)
override int QtOpenGL.QGLFramebufferObjectFormat.GetHashCode ( )
static bool QtOpenGL.QGLFramebufferObjectFormat.operator!= ( QGLFramebufferObjectFormat  arg1,
QGLFramebufferObjectFormat  arg2 
)
static

Returns false if all the options of this framebuffer object format are the same as other; otherwise returns true.

static bool QtOpenGL.QGLFramebufferObjectFormat.operator== ( QGLFramebufferObjectFormat  arg1,
QGLFramebufferObjectFormat  arg2 
)
static

Returns true if all the options of this framebuffer object format are the same as other; otherwise returns false.

Member Data Documentation

SmokeInvocation QtOpenGL.QGLFramebufferObjectFormat.interceptor
protected

Property Documentation

new QGLFramebufferObject.Attachment QtOpenGL.QGLFramebufferObjectFormat.Attachment
getset

Returns the configuration of the depth and stencil buffers attached to a framebuffer object. The default is QGLFramebufferObject::NoAttachment.

Sets the attachment configuration of a framebuffer object to attachment.

new int QtOpenGL.QGLFramebufferObjectFormat.InternalTextureFormat
getset

Returns the internal format of a framebuffer object's texture or multisample framebuffer object's color buffer. The default is GL_RGBA8 on desktop OpenGL systems, and GL_RGBA on OpenGL/ES systems.

Sets the internal format of a framebuffer object's texture or multisample framebuffer object's color buffer to internalTextureFormat.

new bool QtOpenGL.QGLFramebufferObjectFormat.Mipmap
getset

Returns true if mipmapping is enabled.

This function was introduced in Qt 4.8.

Enables mipmapping if enabled is true; otherwise disables it.

Mipmapping is disabled by default.

If mipmapping is enabled, additional memory will be allocated for the mipmap levels. The mipmap levels can be updated by binding the texture and calling glGenerateMipmap(). Mipmapping cannot be enabled for multisampled framebuffer objects.

This function was introduced in Qt 4.8.

new int QtOpenGL.QGLFramebufferObjectFormat.Samples
getset

Returns the number of samples per pixel if a framebuffer object is a multisample framebuffer object. Otherwise, returns 0. The default value is 0.

Sets the number of samples per pixel for a multisample framebuffer object to samples. The default sample count of 0 represents a regular non-multisample framebuffer object.

If the desired amount of samples per pixel is not supported by the hardware then the maximum number of samples per pixel will be used. Note that multisample framebuffer objects can not be bound as textures. Also, the GL_EXT_framebuffer_multisample extension is required to create a framebuffer with more than one sample per pixel.

virtual System.IntPtr QtOpenGL.QGLFramebufferObjectFormat.SmokeObject
getset
new int QtOpenGL.QGLFramebufferObjectFormat.TextureTarget
getset

Returns the texture target of the texture attached to a framebuffer object. Ignored for multisample framebuffer objects. The default is GL_TEXTURE_2D.

Sets the texture target of the texture attached to a framebuffer object to target. Ignored for multisample framebuffer objects.