Om
1.0.0
A universal framework for multimedia simulation
|
A class that specifies how a texture should be attached to a Framebuffer. More...
#include <omGraphicsFramebufferAttachment.h>
Public Types | |
enum | Type { COLOR, DEPTH, STENCIL, UNDEFINED } |
An enum that specifies the different types of framebuffer attachment points. More... | |
Public Member Functions | |
FramebufferAttachment (Type newType) | |
Create a new framebuffer attachment type with the specified type enum value and index 0. More... | |
FramebufferAttachment (Type newType, Index newIndex) | |
Create a new framebuffer attachment type with the specified type enum value and index. More... | |
Type | getType () const |
Return the type of attachment point that this object refers to. More... | |
Index | getIndex () const |
Return the index of the attachment point. More... | |
Bool | operator== (const FramebufferAttachment &other) const |
Return whether or not this framebuffer attachment point is equal to another. More... | |
Bool | operator!= (const FramebufferAttachment &other) const |
Return whether or not this framebuffer attachment point is not equal to another. More... | |
Bool | supportsFormat (TextureFormat format) const |
Return whether or not this framebuffer attachment point supports the specified texture format. More... | |
String | toString () const |
Return a string representation of the framebuffer attachement type. More... | |
operator String () const | |
Convert this framebuffer attachement type into a string representation. More... | |
Hash | getHashCode () const |
Return a hash code generated for this framebuffer attachment point. More... | |
A class that specifies how a texture should be attached to a Framebuffer.
Since a framebuffer has multiple kinds of bitplanes that can be rendered to, it is necessary to specify how each texture that is attached to the framebuffer is used. The 3 basic types of attachment points are color, depth, and stencil attachments.
An enum that specifies the different types of framebuffer attachment points.
|
inline |
Create a new framebuffer attachment type with the specified type enum value and index 0.
|
inline |
Create a new framebuffer attachment type with the specified type enum value and index.
If the specified attachment type is not COLOR, the specified index value is automatically set to 0 because multiple depth or stencil attachments are not supported.
|
inline |
Return the type of attachment point that this object refers to.
|
inline |
Return the index of the attachment point.
This value allows the user to specify multiple color attachments. Multiple depth or stencil attachments are not supported, index 0 is the only allowed value.
|
inline |
Return whether or not this framebuffer attachment point is equal to another.
|
inline |
Return whether or not this framebuffer attachment point is not equal to another.
Bool om::graphics::textures::FramebufferAttachment::supportsFormat | ( | TextureFormat | format | ) | const |
Return whether or not this framebuffer attachment point supports the specified texture format.
String om::graphics::textures::FramebufferAttachment::toString | ( | ) | const |
Return a string representation of the framebuffer attachement type.
|
inline |
Convert this framebuffer attachement type into a string representation.
|
inline |
Return a hash code generated for this framebuffer attachment point.