1Name 2 3 IMG_read_format 4 5Name Strings 6 7 GL_IMG_read_format 8 9Notice 10 11 Copyright Imagination Technologies Limited, 2005, 2008. 12 13Contact 14 15 Imagination Technologies (devtech 'at' imgtec 'dot' com) 16 17Status 18 19 Complete 20 21Version 22 23 Version 1.0 24 25Number 26 27 OpenGL ES Extension #53 28 29Dependencies 30 31 GL_OES_read_format is required 32 33 The extension is written against the OpenGLES 1.0 Specification, 34 which in turn is based OpenGL 1.3. Thus this spec is effectively 35 written against OpenGL 1.3 but does not address sections explicitly 36 removed or reduced by OpenGL-ES 1.0. 37 38Overview 39 40 This extension is intended to supplement the GL_OES_read_format 41 extension by adding support for more format/type combinations to be used 42 when calling ReadPixels. ReadPixels currently accepts one fixed 43 format/type combination (format RGBA and type UNSIGNED_BYTE) for 44 portability, and an implementation specific format/type combination 45 queried using the tokens IMPLEMENTATION_COLOR_READ_FORMAT_OES and 46 IMPLEMENTATION_COLOR_READ_TYPE_OES (GL_OES_read_format extension). This 47 extension adds the following format/type combinations to those currently 48 allowed to be returned by GetIntegerV: 49 50 format type 51 ------ ---- 52 BGRA_IMG UNSIGNED_BYTE 53 BGRA_IMG UNSIGNED_SHORT_4_4_4_4_REV_IMG 54 55 E.g. Calling GetIntegerv with a <pname> parameter of 56 IMPLEMENTATION_COLOR_READ_FORMAT_OES can now return BGRA, with the 57 corresponding call to GetIntegerv using a <pname> parameter of 58 IMPLEMENTATION_COLOR_READ_TYPE_OES returning UNSIGNED_BYTE; 59 60IP Status 61 62 Unknown 63 64Issues 65 66 None. 67 68New Procedures and Functions 69 70 None. 71 72New Tokens 73 74 Accepted by the <format> parameter of ReadPixels: 75 76 GL_BGRA_IMG 0x80E1 77 GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG 0x8365 78 79Additions to Chapter 2 of the OpenGL 1.3 Specification (OpenGL Operation) 80 81 None 82 83Additions to Chapter 3 of the OpenGL 1.3 Specification (Rasterization) 84 85 None 86 87Additions to Chapter 4 of the OpenGL 1.3 Specification (Per-Fragment Operations and the Frame Buffer) 88 89 None 90 91Additions to Chapter 5 of the OpenGL 1.3 Specification (Special Functions) 92 93 None 94 95Additions to Chapter 6 of the OpenGL 1.3 Specification (State and State Requests) 96 97 None 98 99Errors 100 101 None 102 103New State 104 105 None 106 107New Implementation Dependent State 108 109 None 110 111Revision History 112 113 1.0, 10/04/2008 gdc: Tidied for publication. 114 0.2, 25/07/2005 sks: Added 4444. 115 0.1, 18/04/2005 sks: Initial revision. 116