Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
15ded51e
Commit
15ded51e
authored
Feb 22, 2012
by
daniel@transgaming.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates to ANGLE_pack_reverse_row_order
git-svn-id:
https://angleproject.googlecode.com/svn/trunk@994
736b8ea6-26fd-11df-bfd4-992fa37f6226
parent
51b2685b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
ANGLE_pack_reverse_row_order.txt
extensions/ANGLE_pack_reverse_row_order.txt
+15
-10
No files found.
extensions/ANGLE_pack_reverse_row_order.txt
View file @
15ded51e
...
@@ -18,16 +18,16 @@ Contributors
...
@@ -18,16 +18,16 @@ Contributors
Status
Status
XXX - Not complete yet!!!
Implemented in ANGLE ES2
Version
Version
Last Modified Date:
November
22, 2011
Last Modified Date:
February
22, 2011
Author Revision:
1
Author Revision:
22
Number
Number
XXX not yet
TBD
Dependencies
Dependencies
...
@@ -59,9 +59,6 @@ IP Status
...
@@ -59,9 +59,6 @@ IP Status
No known IP claims.
No known IP claims.
Issues
New Procedures and Functions
New Procedures and Functions
None
None
...
@@ -108,6 +105,8 @@ Additions to Chapter 3 of the OpenGL 3.2 Specification (Rasterization)
...
@@ -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
is packed in the same manner as when PACK_REVERSE_ROW_ORDER_ANGLE is
FALSE.
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
In Section 6.1.4 add the following sentence to the fifth paragraph
(beginning with "For three-dimensional and two-dimensional array
(beginning with "For three-dimensional and two-dimensional array
textures..."):
textures..."):
...
@@ -142,23 +141,29 @@ New Implementation Dependent State
...
@@ -142,23 +141,29 @@ New Implementation Dependent State
None
None
Issues
None
Sample Code
Sample Code
/* Allocate space to hold the pixel data */
/* Allocate space to hold the pixel data */
const GLvoid* pixels = malloc(width * height * 4);
const GLvoid* pixels = malloc(width * height * 4);
/* Bind the framebuffer object to be read */
/* Bind the framebuffer object to be read */
glBindFramebuffer(READ_FRAMEBUFFER, framebuffer);
glBindFramebuffer(
GL_
READ_FRAMEBUFFER, framebuffer);
/* Enable row order reversal */
/* 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
/* The pixel data stored in pixels will be in top-down order, ready for
* use with a windowing system API that expects this order.
* 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 History
Revision 1, 2011/11/22 (Brian Salomon)
Revision 1, 2011/11/22 (Brian Salomon)
- First version
- First version
Revision 2, 2012/02/22 (dgkoch)
- prepare for publishing
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment