1Name 2 3 OES_texture_mirrored_repeat 4 5Name Strings 6 7 GL_OES_texture_mirrored_repeat 8 9Contact 10 11 12Notice 13 14 Copyright (c) 2005-2013 The Khronos Group Inc. Copyright terms at 15 http://www.khronos.org/registry/speccopyright.html 16 17Specification Update Policy 18 19 Khronos-approved extension specifications are updated in response to 20 issues and bugs prioritized by the Khronos OpenGL ES Working Group. For 21 extensions which have been promoted to a core Specification, fixes will 22 first appear in the latest version of that core Specification, and will 23 eventually be backported to the extension document. This policy is 24 described in more detail at 25 https://www.khronos.org/registry/OpenGL/docs/update_policy.php 26 27Status 28 29 30Version 31 32 Last modified date: May 18, 2005 33 34Number 35 36 OpenGL ES Extension #22 37 38Dependencies 39 40 OpenGL ES 1.0 is required. 41 42 This extension is based on the ARB_texture_mirrored_repeat 43 extension specification. 44 45Overview 46 47 This extension extends the set of texture wrap modes to 48 include a mode (GL_MIRRORED_REPEAT) that effectively uses a texture 49 map twice as large at the original image in which the additional half, 50 for each coordinate, of the new image is a mirror image of the original 51 image. 52 53 This new mode relaxes the need to generate images whose opposite edges 54 match by using the original image to generate a matching "mirror image". 55 56Issues 57 58 Please refer to the ARB_textured_mirrored_repeat extension specification 59 60New Procedures and Functions 61 62 None 63 64New Tokens 65 66 Accepted by the <param> parameter of TexParameteri and TexParameterf, 67 and by the <params> parameter of TexParameteriv and TexParameterfv, when 68 their <pname> parameter is TEXTURE_WRAP_S, TEXTURE_WRAP_T, or 69 TEXTURE_WRAP_R: 70 71 GL_MIRRORED_REPEAT 0x8370 72 73Additions to Chapter 2 of the GL Specification (OpenGL Operation) 74 75 None. 76 77Additions to Chapter 3 of the GL Specification (Rasterization) 78 79 Modify Table 3.19, editing only the following lines: 80 81 Name Type Legal Values 82 ============== ======= ==================== 83 TEXTURE_WRAP_S integer CLAMP, CLAMP_TO_EDGE, REPEAT, 84 CLAMP_TO_BORDER, MIRRORED_REPEAT 85 TEXTURE_WRAP_T integer CLAMP, CLAMP_TO_EDGE, REPEAT, 86 CLAMP_TO_BORDER, MIRRORED_REPEAT 87 TEXTURE_WRAP_R integer CLAMP, CLAMP_TO_EDGE, REPEAT, 88 CLAMP_TO_BORDER, MIRRORED_REPEAT 89 90 Add to end of Section 3.8.5 (Subsection "Texture Wrap Modes") 91 92 If TEXTURE_WRAP_S, TEXTURE_WRAP_T, or TEXTURE_WRAP_R is set to 93 MIRRORED_REPEAT , the s (or t or r) coordinate is converted to: 94 95 s - floor(s), if floor(s) is even, or 96 1 - (s - floor(s)), if floor(s) is odd. 97 98 The converted s (or t or r) coordinate is then clamped 99 as described for CLAMP_TO_EDGE texture coordinate clamping. 100 101Additions to Chapter 4 of the GL Specification (Per-Fragment Operations 102and the Framebuffer) 103 104 None 105 106Additions to Chapter 5 of the GL Specification (Special Functions) 107 108 None 109 110Additions to Chapter 6 of the GL Specification (State and State Requests) 111 112 None 113 114Additions to Appendix F of the GL Specification (ARB Extensions) 115 116 None 117 118Additions to the GLX Specification 119 120 None 121 122GLX Protocol 123 124 None. 125 126Errors 127 128 None 129 130New State 131 132 Only the type information changes for these parameters: 133 134 Initial 135 Get Value Get Command Type Value Description Sec. Attrib 136 --------- ----------- ---- ------- ----------- ---- ------ 137 TEXTURE_WRAP_S GetTexParameteriv n x Z5 REPEAT Texture Wrap Mode S 3.8 texture 138 TEXTURE_WRAP_T GetTexParameteriv n x Z5 REPEAT Texture Wrap Mode T 3.8 texture 139 TEXTURE_WRAP_R GetTexParameteriv n x Z5 REPEAT Texture Wrap Mode R 3.8 texture 140 141New Implementation Dependent State 142 143 None 144