aboutsummaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authordaniel@transgaming.com <daniel@transgaming.com@736b8ea6-26fd-11df-bfd4-992fa37f6226>2012-02-22 05:07:44 +0000
committerdaniel@transgaming.com <daniel@transgaming.com@736b8ea6-26fd-11df-bfd4-992fa37f6226>2012-02-22 05:07:44 +0000
commit15ded51e85ddbe9a1cb34b9a80839473956a4b19 (patch)
tree253643495968a2188556f7529302562b4f1db8a5 /extensions
parent51b2685bbc8609dd15de8727f8fb7a7add0e8a0b (diff)
downloadangle-15ded51e85ddbe9a1cb34b9a80839473956a4b19.tar.gz
Updates to ANGLE_pack_reverse_row_order
git-svn-id: https://angleproject.googlecode.com/svn/trunk@994 736b8ea6-26fd-11df-bfd4-992fa37f6226
Diffstat (limited to 'extensions')
-rw-r--r--extensions/ANGLE_pack_reverse_row_order.txt25
1 files changed, 15 insertions, 10 deletions
diff --git a/extensions/ANGLE_pack_reverse_row_order.txt b/extensions/ANGLE_pack_reverse_row_order.txt
index cd9062ed..0e120b2f 100644
--- a/extensions/ANGLE_pack_reverse_row_order.txt
+++ b/extensions/ANGLE_pack_reverse_row_order.txt
@@ -18,16 +18,16 @@ Contributors
Status
- XXX - Not complete yet!!!
+ Implemented in ANGLE ES2
Version
- Last Modified Date: November 22, 2011
- Author Revision: 1
+ Last Modified Date: February 22, 2011
+ Author Revision: 22
Number
- XXX not yet
+ TBD
Dependencies
@@ -59,9 +59,6 @@ IP Status
No known IP claims.
-Issues
-
-
New Procedures and Functions
None
@@ -108,6 +105,8 @@ Additions to Chapter 3 of the OpenGL 3.2 Specification (Rasterization)
is packed in the same manner as when PACK_REVERSE_ROW_ORDER_ANGLE is
FALSE.
+Additions to Chapter 6 of the OpenGL 3.2 Specification (State and State Requests)
+
In Section 6.1.4 add the following sentence to the fifth paragraph
(beginning with "For three-dimensional and two-dimensional array
textures..."):
@@ -142,23 +141,29 @@ New Implementation Dependent State
None
+Issues
+
+ None
+
Sample Code
/* Allocate space to hold the pixel data */
const GLvoid* pixels = malloc(width * height * 4);
/* Bind the framebuffer object to be read */
- glBindFramebuffer(READ_FRAMEBUFFER, framebuffer);
+ glBindFramebuffer(GL_READ_FRAMEBUFFER, framebuffer);
/* Enable row order reversal */
- glPixelStore(PACK_REVERSE_ROW_ORDER_ANGLE, TRUE);
+ glPixelStore(GL_PACK_REVERSE_ROW_ORDER_ANGLE, TRUE);
/* The pixel data stored in pixels will be in top-down order, ready for
* use with a windowing system API that expects this order.
*/
- glReadPixels(x, y, width, height, RGBA, UNSIGNED_BYTE, pixels);
+ glReadPixels(x, y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
Revision History
Revision 1, 2011/11/22 (Brian Salomon)
- First version
+ Revision 2, 2012/02/22 (dgkoch)
+ - prepare for publishing