Class APPLEFramebufferMultisample
This extension extends the framebuffer object framework to enable multisample rendering.
The new operation RenderbufferStorageMultisampleAPPLE() allocates storage for a renderbuffer object that can be used as a multisample buffer. A multisample render buffer image differs from a single-sample render buffer image in that a multisample image has a number of SAMPLES that is greater than zero. No method is provided for creating multisample texture images.
All of the framebuffer-attachable images attached to a framebuffer object must have the same number of SAMPLES or else the framebuffer object is not "framebuffer complete". If a framebuffer object with multisample attachments is "framebuffer complete", then the framebuffer object behaves as if SAMPLE_BUFFERS is one.
The resolve operation is affected by calling ResolveMultisampleFramebufferAPPLE where the source is a multisample application-created framebuffer object and the destination is a single-sample framebuffer object. Separate read and draw framebuffer object binding points are established to facilitate the resolve.
Scissoring may be used in conjunction with ResolveMultisampleFramebufferAPPLE to resolve only a portion of the framebuffer.
Requires GLES 2.0
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Accepted by thetarget
parameter of BindFramebuffer, CheckFramebufferStatus, FramebufferTexture2D, FramebufferRenderbuffer, and GetFramebufferAttachmentParameteriv.static final int
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, and GetFloatv.static final int
Returned by CheckFramebufferStatus.static final int
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, and GetFloatv.static final int
Accepted by thetarget
parameter of BindFramebuffer, CheckFramebufferStatus, FramebufferTexture2D, FramebufferRenderbuffer, and GetFramebufferAttachmentParameteriv.static final int
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, and GetFloatv.static final int
Accepted by thepname
parameter of GetRenderbufferParameteriv. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
glRenderbufferStorageMultisampleAPPLE
(int target, int samples, int internalformat, int width, int height) static void
-
Field Details
-
GL_RENDERBUFFER_SAMPLES_APPLE
public static final int GL_RENDERBUFFER_SAMPLES_APPLEAccepted by thepname
parameter of GetRenderbufferParameteriv.- See Also:
-
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE
public static final int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLEReturned by CheckFramebufferStatus.- See Also:
-
GL_MAX_SAMPLES_APPLE
public static final int GL_MAX_SAMPLES_APPLEAccepted by thepname
parameter of GetBooleanv, GetIntegerv, and GetFloatv.- See Also:
-
GL_READ_FRAMEBUFFER_APPLE
public static final int GL_READ_FRAMEBUFFER_APPLEAccepted by thetarget
parameter of BindFramebuffer, CheckFramebufferStatus, FramebufferTexture2D, FramebufferRenderbuffer, and GetFramebufferAttachmentParameteriv.- See Also:
-
GL_DRAW_FRAMEBUFFER_APPLE
public static final int GL_DRAW_FRAMEBUFFER_APPLEAccepted by thetarget
parameter of BindFramebuffer, CheckFramebufferStatus, FramebufferTexture2D, FramebufferRenderbuffer, and GetFramebufferAttachmentParameteriv.- See Also:
-
GL_DRAW_FRAMEBUFFER_BINDING_APPLE
public static final int GL_DRAW_FRAMEBUFFER_BINDING_APPLEAccepted by thepname
parameter of GetBooleanv, GetIntegerv, and GetFloatv.- See Also:
-
GL_READ_FRAMEBUFFER_BINDING_APPLE
public static final int GL_READ_FRAMEBUFFER_BINDING_APPLEAccepted by thepname
parameter of GetBooleanv, GetIntegerv, and GetFloatv.- See Also:
-
-
Method Details
-
glRenderbufferStorageMultisampleAPPLE
public static void glRenderbufferStorageMultisampleAPPLE(int target, int samples, int internalformat, int width, int height) -
glResolveMultisampleFramebufferAPPLE
public static void glResolveMultisampleFramebufferAPPLE()
-