Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 1 | /* |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 2 | * Copyright (C) 2015 The Android Open Source Project |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 17 | // Don't edit this file! It is auto-generated by frameworks/rs/api/generate.sh. |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 18 | |
| 19 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 20 | * rs_graphics.rsh: Graphics Functions and Types |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 21 | * |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 22 | * The graphics subsystem of RenderScript was removed at API level 23. |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 23 | */ |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 24 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 25 | #ifndef RENDERSCRIPT_RS_GRAPHICS_RSH |
| 26 | #define RENDERSCRIPT_RS_GRAPHICS_RSH |
Ying Wang | 6099914 | 2013-01-07 13:59:36 -0800 | [diff] [blame] | 27 | |
Stephen Hines | e65db13 | 2014-05-30 13:26:31 -0700 | [diff] [blame] | 28 | #ifdef __LP64__ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 29 | // TODO We need to fix some of the builds before enabling this error: |
| 30 | // #error "RenderScript graphics is deprecated and not supported in 64bit mode." |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 31 | #endif |
| 32 | |
| 33 | // TODO we seem to assume order for the other headers too. |
| 34 | #include "rs_object_types.rsh" |
| 35 | |
| 36 | /* |
| 37 | * rs_blend_src_func: Blend source function |
| 38 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 39 | * DEPRECATED. Do not use. |
| 40 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 41 | */ |
| 42 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 43 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 44 | typedef enum __attribute__(( |
| 45 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 46 | deprecated |
| 47 | #endif |
| 48 | )) { |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 49 | RS_BLEND_SRC_ZERO = 0, |
| 50 | RS_BLEND_SRC_ONE = 1, |
| 51 | RS_BLEND_SRC_DST_COLOR = 2, |
| 52 | RS_BLEND_SRC_ONE_MINUS_DST_COLOR = 3, |
| 53 | RS_BLEND_SRC_SRC_ALPHA = 4, |
| 54 | RS_BLEND_SRC_ONE_MINUS_SRC_ALPHA = 5, |
| 55 | RS_BLEND_SRC_DST_ALPHA = 6, |
| 56 | RS_BLEND_SRC_ONE_MINUS_DST_ALPHA = 7, |
| 57 | RS_BLEND_SRC_SRC_ALPHA_SATURATE = 8, |
| 58 | RS_BLEND_SRC_INVALID = 100 |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 59 | } rs_blend_src_func; |
| 60 | #endif |
| 61 | #endif |
| 62 | |
| 63 | /* |
| 64 | * rs_blend_dst_func: Blend destination function |
| 65 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 66 | * DEPRECATED. Do not use. |
| 67 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 68 | */ |
| 69 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 70 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 71 | typedef enum __attribute__(( |
| 72 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 73 | deprecated |
| 74 | #endif |
| 75 | )) { |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 76 | RS_BLEND_DST_ZERO = 0, |
| 77 | RS_BLEND_DST_ONE = 1, |
| 78 | RS_BLEND_DST_SRC_COLOR = 2, |
| 79 | RS_BLEND_DST_ONE_MINUS_SRC_COLOR = 3, |
| 80 | RS_BLEND_DST_SRC_ALPHA = 4, |
| 81 | RS_BLEND_DST_ONE_MINUS_SRC_ALPHA = 5, |
| 82 | RS_BLEND_DST_DST_ALPHA = 6, |
| 83 | RS_BLEND_DST_ONE_MINUS_DST_ALPHA = 7, |
| 84 | RS_BLEND_DST_INVALID = 100 |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 85 | } rs_blend_dst_func; |
| 86 | #endif |
| 87 | #endif |
| 88 | |
| 89 | /* |
| 90 | * rs_cull_mode: Culling mode |
| 91 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 92 | * DEPRECATED. Do not use. |
| 93 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 94 | */ |
| 95 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 96 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 97 | typedef enum __attribute__(( |
| 98 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 99 | deprecated |
| 100 | #endif |
| 101 | )) { |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 102 | RS_CULL_BACK = 0, |
| 103 | RS_CULL_FRONT = 1, |
| 104 | RS_CULL_NONE = 2, |
| 105 | RS_CULL_INVALID = 100 |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 106 | } rs_cull_mode; |
| 107 | #endif |
| 108 | #endif |
| 109 | |
| 110 | /* |
| 111 | * rs_depth_func: Depth function |
| 112 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 113 | * DEPRECATED. Do not use. |
| 114 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 115 | * Specifies conditional drawing depending on the comparison of the incoming |
| 116 | * depth to that found in the depth buffer. |
| 117 | */ |
| 118 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 119 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 120 | typedef enum __attribute__(( |
| 121 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 122 | deprecated |
| 123 | #endif |
| 124 | )) { |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 125 | RS_DEPTH_FUNC_ALWAYS = 0, // Always drawn |
| 126 | RS_DEPTH_FUNC_LESS = 1, // Drawn if the incoming depth value is less than that in the depth buffer |
| 127 | RS_DEPTH_FUNC_LEQUAL = 2, // Drawn if the incoming depth value is less or equal to that in the depth buffer |
| 128 | RS_DEPTH_FUNC_GREATER = 3, // Drawn if the incoming depth value is greater than that in the depth buffer |
| 129 | RS_DEPTH_FUNC_GEQUAL = 4, // Drawn if the incoming depth value is greater or equal to that in the depth buffer |
| 130 | RS_DEPTH_FUNC_EQUAL = 5, // Drawn if the incoming depth value is equal to that in the depth buffer |
| 131 | RS_DEPTH_FUNC_NOTEQUAL = 6, // Drawn if the incoming depth value is not equal to that in the depth buffer |
| 132 | RS_DEPTH_FUNC_INVALID = 100 // Invalid depth function |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 133 | } rs_depth_func; |
| 134 | #endif |
| 135 | #endif |
| 136 | |
| 137 | /* |
| 138 | * rs_primitive: How to intepret mesh vertex data |
| 139 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 140 | * DEPRECATED. Do not use. |
| 141 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 142 | * Describes the way mesh vertex data is interpreted when rendering |
| 143 | */ |
| 144 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 145 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 146 | typedef enum __attribute__(( |
| 147 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 148 | deprecated |
| 149 | #endif |
| 150 | )) { |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 151 | RS_PRIMITIVE_POINT = 0, // Vertex data will be rendered as a series of points |
| 152 | RS_PRIMITIVE_LINE = 1, // Vertex pairs will be rendered as lines |
| 153 | RS_PRIMITIVE_LINE_STRIP = 2, // Vertex data will be rendered as a connected line strip |
| 154 | RS_PRIMITIVE_TRIANGLE = 3, // Vertices will be rendered as individual triangles |
| 155 | RS_PRIMITIVE_TRIANGLE_STRIP = 4, // Vertices will be rendered as a connected triangle strip defined by the first three vertices with each additional triangle defined by a new vertex |
| 156 | RS_PRIMITIVE_TRIANGLE_FAN = 5, // Vertices will be rendered as a sequence of triangles that all share first vertex as the origin |
| 157 | RS_PRIMITIVE_INVALID = 100 // Invalid primitive |
| 158 | } rs_primitive; |
| 159 | #endif |
| 160 | #endif |
| 161 | |
| 162 | /* |
| 163 | * rs_font: Handle to a Font |
| 164 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 165 | * DEPRECATED. Do not use. |
| 166 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 167 | * Opaque handle to a RenderScript font object. |
| 168 | * See: android.renderscript.Font |
| 169 | */ |
| 170 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 171 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 172 | typedef _RS_HANDLE __attribute__(( |
| 173 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 174 | deprecated |
| 175 | #endif |
| 176 | )) rs_font; |
| 177 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 178 | #endif |
| 179 | |
| 180 | /* |
| 181 | * rs_mesh: Handle to a Mesh |
| 182 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 183 | * DEPRECATED. Do not use. |
| 184 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 185 | * Opaque handle to a RenderScript mesh object. |
| 186 | * See: android.renderscript.Mesh |
| 187 | */ |
| 188 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 189 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 190 | typedef _RS_HANDLE __attribute__(( |
| 191 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 192 | deprecated |
| 193 | #endif |
| 194 | )) rs_mesh; |
| 195 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 196 | #endif |
| 197 | |
| 198 | /* |
| 199 | * rs_program_fragment: Handle to a ProgramFragment |
| 200 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 201 | * DEPRECATED. Do not use. |
| 202 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 203 | * Opaque handle to a RenderScript ProgramFragment object. |
| 204 | * See: android.renderscript.ProgramFragment |
| 205 | */ |
| 206 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 207 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 208 | typedef _RS_HANDLE __attribute__(( |
| 209 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 210 | deprecated |
| 211 | #endif |
| 212 | )) rs_program_fragment; |
| 213 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 214 | #endif |
| 215 | |
| 216 | /* |
| 217 | * rs_program_vertex: Handle to a ProgramVertex |
| 218 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 219 | * DEPRECATED. Do not use. |
| 220 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 221 | * Opaque handle to a RenderScript ProgramVertex object. |
| 222 | * See: android.renderscript.ProgramVertex |
| 223 | */ |
| 224 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 225 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 226 | typedef _RS_HANDLE __attribute__(( |
| 227 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 228 | deprecated |
| 229 | #endif |
| 230 | )) rs_program_vertex; |
| 231 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 232 | #endif |
| 233 | |
| 234 | /* |
| 235 | * rs_program_raster: Handle to a ProgramRaster |
| 236 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 237 | * DEPRECATED. Do not use. |
| 238 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 239 | * Opaque handle to a RenderScript ProgramRaster object. |
| 240 | * See: android.renderscript.ProgramRaster |
| 241 | */ |
| 242 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 243 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 244 | typedef _RS_HANDLE __attribute__(( |
| 245 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 246 | deprecated |
| 247 | #endif |
| 248 | )) rs_program_raster; |
| 249 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 250 | #endif |
| 251 | |
| 252 | /* |
| 253 | * rs_program_store: Handle to a ProgramStore |
| 254 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 255 | * DEPRECATED. Do not use. |
| 256 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 257 | * Opaque handle to a RenderScript ProgramStore object. |
| 258 | * See: android.renderscript.ProgramStore |
| 259 | */ |
| 260 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 261 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 262 | typedef _RS_HANDLE __attribute__(( |
| 263 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 264 | deprecated |
| 265 | #endif |
| 266 | )) rs_program_store; |
| 267 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 268 | #endif |
| 269 | |
| 270 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 271 | * rsClearObject: Release an object |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 272 | * |
Pirama Arumuga Nainar | db74586 | 2015-05-11 14:34:37 -0700 | [diff] [blame] | 273 | * Tells the run time that this handle will no longer be used to access the the related |
| 274 | * object. If this was the last handle to that object, resource recovery may happen. |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 275 | * |
Pirama Arumuga Nainar | db74586 | 2015-05-11 14:34:37 -0700 | [diff] [blame] | 276 | * After calling this function, *dst will be set to an empty handle. See rsIsObject(). |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 277 | */ |
| 278 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 279 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 280 | extern void __attribute__((overloadable)) |
| 281 | rsClearObject(rs_mesh* dst); |
| 282 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 283 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 284 | |
| 285 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 286 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 287 | extern void __attribute__((overloadable)) |
| 288 | rsClearObject(rs_program_fragment* dst); |
| 289 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 290 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 291 | |
| 292 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 293 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 294 | extern void __attribute__((overloadable)) |
| 295 | rsClearObject(rs_program_vertex* dst); |
| 296 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 297 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 298 | |
| 299 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 300 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 301 | extern void __attribute__((overloadable)) |
| 302 | rsClearObject(rs_program_raster* dst); |
| 303 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 304 | #endif |
| 305 | |
| 306 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 307 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
| 308 | extern void __attribute__((overloadable)) |
| 309 | rsClearObject(rs_program_store* dst); |
| 310 | #endif |
| 311 | #endif |
| 312 | |
| 313 | #ifndef __LP64__ |
| 314 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 315 | extern void __attribute__((overloadable)) |
| 316 | rsClearObject(rs_font* dst); |
| 317 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 318 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 319 | |
| 320 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 321 | * rsIsObject: Check for an empty handle |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 322 | * |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 323 | * Returns true if the handle contains a non-null reference. |
| 324 | * |
| 325 | * This function does not validate that the internal pointer used in the handle |
| 326 | * points to an actual valid object; it only checks for null. |
| 327 | * |
Pirama Arumuga Nainar | db74586 | 2015-05-11 14:34:37 -0700 | [diff] [blame] | 328 | * This function can be used to check the Element returned by rsElementGetSubElement() |
| 329 | * or see if rsClearObject() has been called on a handle. |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 330 | */ |
| 331 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 332 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 333 | extern bool __attribute__((overloadable)) |
| 334 | rsIsObject(rs_mesh v); |
| 335 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 336 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 337 | |
| 338 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 339 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 340 | extern bool __attribute__((overloadable)) |
| 341 | rsIsObject(rs_program_fragment v); |
| 342 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 343 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 344 | |
| 345 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 346 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 347 | extern bool __attribute__((overloadable)) |
| 348 | rsIsObject(rs_program_vertex v); |
| 349 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 350 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 351 | |
| 352 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 353 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 354 | extern bool __attribute__((overloadable)) |
| 355 | rsIsObject(rs_program_raster v); |
| 356 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 357 | #endif |
| 358 | |
| 359 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 360 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
| 361 | extern bool __attribute__((overloadable)) |
| 362 | rsIsObject(rs_program_store v); |
| 363 | #endif |
| 364 | #endif |
| 365 | |
| 366 | #ifndef __LP64__ |
| 367 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 368 | extern bool __attribute__((overloadable)) |
| 369 | rsIsObject(rs_font v); |
| 370 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 371 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 372 | |
| 373 | /* |
| 374 | * rsSetObject: For internal use. |
| 375 | * |
| 376 | */ |
| 377 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 378 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 379 | extern void __attribute__((overloadable)) |
| 380 | rsSetObject(rs_mesh* dst, rs_mesh src); |
| 381 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 382 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 383 | |
| 384 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 385 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 386 | extern void __attribute__((overloadable)) |
| 387 | rsSetObject(rs_program_fragment* dst, rs_program_fragment src); |
| 388 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 389 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 390 | |
| 391 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 392 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 393 | extern void __attribute__((overloadable)) |
| 394 | rsSetObject(rs_program_vertex* dst, rs_program_vertex src); |
| 395 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 396 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 397 | |
| 398 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 399 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 400 | extern void __attribute__((overloadable)) |
| 401 | rsSetObject(rs_program_raster* dst, rs_program_raster src); |
| 402 | #endif |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 403 | #endif |
| 404 | |
| 405 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 406 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
| 407 | extern void __attribute__((overloadable)) |
| 408 | rsSetObject(rs_program_store* dst, rs_program_store src); |
| 409 | #endif |
| 410 | #endif |
| 411 | |
| 412 | #ifndef __LP64__ |
| 413 | #if !defined(RS_VERSION) || (RS_VERSION <= 22) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 414 | extern void __attribute__((overloadable)) |
| 415 | rsSetObject(rs_font* dst, rs_font src); |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 416 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 417 | #endif |
Ying Wang | 6099914 | 2013-01-07 13:59:36 -0800 | [diff] [blame] | 418 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 419 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 420 | * rsgAllocationSyncAll: Sync the contents of an allocation |
| 421 | * |
| 422 | * DEPRECATED. Do not use. |
| 423 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 424 | * Sync the contents of an allocation. |
| 425 | * |
| 426 | * If the source is specified, sync from memory space specified by source. |
| 427 | * |
| 428 | * If the source is not specified, sync from its SCRIPT memory space to its HW |
| 429 | * memory spaces. |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 430 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 431 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 432 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 433 | extern void __attribute__((overloadable |
| 434 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 435 | , deprecated |
| 436 | #endif |
| 437 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 438 | rsgAllocationSyncAll(rs_allocation alloc); |
| 439 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 440 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 441 | |
| 442 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 443 | #if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 444 | extern void __attribute__((overloadable |
| 445 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 446 | , deprecated |
| 447 | #endif |
| 448 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 449 | rsgAllocationSyncAll(rs_allocation alloc, rs_allocation_usage_type source); |
| 450 | #endif |
| 451 | #endif |
| 452 | |
| 453 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 454 | * rsgBindColorTarget: Set the color target |
| 455 | * |
| 456 | * DEPRECATED. Do not use. |
| 457 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 458 | * Set the color target used for all subsequent rendering calls |
| 459 | */ |
| 460 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 461 | #if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 462 | extern void __attribute__((overloadable |
| 463 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 464 | , deprecated |
| 465 | #endif |
| 466 | )) |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 467 | rsgBindColorTarget(rs_allocation colorTarget, uint slot); |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 468 | #endif |
| 469 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 470 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 471 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 472 | * rsgBindConstant: Bind a constant allocation |
| 473 | * |
| 474 | * DEPRECATED. Do not use. |
| 475 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 476 | * Bind a new Allocation object to a ProgramFragment or ProgramVertex. |
| 477 | * The Allocation must be a valid constant input for the Program. |
| 478 | * |
| 479 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 480 | * ps: program fragment object |
| 481 | * slot: index of the constant buffer on the program |
| 482 | * c: constants to bind |
| 483 | * pv: program vertex object |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 484 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 485 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 486 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 487 | extern void __attribute__((overloadable |
| 488 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 489 | , deprecated |
| 490 | #endif |
| 491 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 492 | rsgBindConstant(rs_program_fragment ps, uint slot, rs_allocation c); |
| 493 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 494 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 495 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 496 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 497 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 498 | extern void __attribute__((overloadable |
| 499 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 500 | , deprecated |
| 501 | #endif |
| 502 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 503 | rsgBindConstant(rs_program_vertex pv, uint slot, rs_allocation c); |
| 504 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 505 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 506 | |
| 507 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 508 | * rsgBindDepthTarget: Set the depth target |
| 509 | * |
| 510 | * DEPRECATED. Do not use. |
| 511 | * |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 512 | * Set the depth target used for all subsequent rendering calls |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 513 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 514 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 515 | #if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 516 | extern void __attribute__((overloadable |
| 517 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 518 | , deprecated |
| 519 | #endif |
| 520 | )) |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 521 | rsgBindDepthTarget(rs_allocation depthTarget); |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 522 | #endif |
| 523 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 524 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 525 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 526 | * rsgBindFont: Bind a font object |
| 527 | * |
| 528 | * DEPRECATED. Do not use. |
| 529 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 530 | * Binds the font object to be used for all subsequent font rendering calls |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 531 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 532 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 533 | * font: object to bind |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 534 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 535 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 536 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 537 | extern void __attribute__((overloadable |
| 538 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 539 | , deprecated |
| 540 | #endif |
| 541 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 542 | rsgBindFont(rs_font font); |
| 543 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 544 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 545 | |
| 546 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 547 | * rsgBindProgramFragment: Bind a ProgramFragment |
| 548 | * |
| 549 | * DEPRECATED. Do not use. |
| 550 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 551 | * Bind a new ProgramFragment to the rendering context. |
| 552 | */ |
| 553 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 554 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 555 | extern void __attribute__((overloadable |
| 556 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 557 | , deprecated |
| 558 | #endif |
| 559 | )) |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 560 | rsgBindProgramFragment(rs_program_fragment pf); |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 561 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 562 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 563 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 564 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 565 | * rsgBindProgramRaster: Bind a ProgramRaster |
| 566 | * |
| 567 | * DEPRECATED. Do not use. |
| 568 | * |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 569 | * Bind a new ProgramRaster to the rendering context. |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 570 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 571 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 572 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 573 | extern void __attribute__((overloadable |
| 574 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 575 | , deprecated |
| 576 | #endif |
| 577 | )) |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 578 | rsgBindProgramRaster(rs_program_raster pr); |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 579 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 580 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 581 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 582 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 583 | * rsgBindProgramStore: Bind a ProgramStore |
| 584 | * |
| 585 | * DEPRECATED. Do not use. |
| 586 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 587 | * Bind a new ProgramStore to the rendering context. |
| 588 | */ |
| 589 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 590 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 591 | extern void __attribute__((overloadable |
| 592 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 593 | , deprecated |
| 594 | #endif |
| 595 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 596 | rsgBindProgramStore(rs_program_store ps); |
| 597 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 598 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 599 | |
| 600 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 601 | * rsgBindProgramVertex: Bind a ProgramVertex |
| 602 | * |
| 603 | * DEPRECATED. Do not use. |
| 604 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 605 | * Bind a new ProgramVertex to the rendering context. |
| 606 | */ |
| 607 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 608 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 609 | extern void __attribute__((overloadable |
| 610 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 611 | , deprecated |
| 612 | #endif |
| 613 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 614 | rsgBindProgramVertex(rs_program_vertex pv); |
| 615 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 616 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 617 | |
| 618 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 619 | * rsgBindSampler: Bind a sampler |
| 620 | * |
| 621 | * DEPRECATED. Do not use. |
| 622 | * |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 623 | * Bind a new Sampler object to a ProgramFragment. The sampler will |
| 624 | * operate on the texture bound at the matching slot. |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 625 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 626 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 627 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 628 | extern void __attribute__((overloadable |
| 629 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 630 | , deprecated |
| 631 | #endif |
| 632 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 633 | rsgBindSampler(rs_program_fragment fragment, uint slot, rs_sampler sampler); |
| 634 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 635 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 636 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 637 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 638 | * rsgBindTexture: Bind a texture allocation |
| 639 | * |
| 640 | * DEPRECATED. Do not use. |
| 641 | * |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 642 | * Bind a new Allocation object to a ProgramFragment. The |
| 643 | * Allocation must be a valid texture for the Program. The sampling |
| 644 | * of the texture will be controled by the Sampler bound at the |
| 645 | * matching slot. |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 646 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 647 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 648 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 649 | extern void __attribute__((overloadable |
| 650 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 651 | , deprecated |
| 652 | #endif |
| 653 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 654 | rsgBindTexture(rs_program_fragment v, uint slot, rs_allocation alloc); |
| 655 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 656 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 657 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 658 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 659 | * rsgClearAllRenderTargets: Clear all color and depth targets |
| 660 | * |
| 661 | * DEPRECATED. Do not use. |
| 662 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 663 | * Clear all color and depth targets and resume rendering into |
| 664 | * the framebuffer |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 665 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 666 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 667 | #if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 668 | extern void __attribute__((overloadable |
| 669 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 670 | , deprecated |
| 671 | #endif |
| 672 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 673 | rsgClearAllRenderTargets(void); |
| 674 | #endif |
| 675 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 676 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 677 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 678 | * rsgClearColor: Clear the specified color from the surface |
| 679 | * |
| 680 | * DEPRECATED. Do not use. |
| 681 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 682 | * Clears the rendering surface to the specified color. |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 683 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 684 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 685 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 686 | extern void __attribute__((overloadable |
| 687 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 688 | , deprecated |
| 689 | #endif |
| 690 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 691 | rsgClearColor(float r, float g, float b, float a); |
| 692 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 693 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 694 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 695 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 696 | * rsgClearColorTarget: Clear the color target |
| 697 | * |
| 698 | * DEPRECATED. Do not use. |
| 699 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 700 | * Clear the previously set color target |
| 701 | */ |
| 702 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 703 | #if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 704 | extern void __attribute__((overloadable |
| 705 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 706 | , deprecated |
| 707 | #endif |
| 708 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 709 | rsgClearColorTarget(uint slot); |
| 710 | #endif |
| 711 | #endif |
| 712 | |
| 713 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 714 | * rsgClearDepth: Clear the depth surface |
| 715 | * |
| 716 | * DEPRECATED. Do not use. |
| 717 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 718 | * Clears the depth suface to the specified value. |
| 719 | */ |
| 720 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 721 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 722 | extern void __attribute__((overloadable |
| 723 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 724 | , deprecated |
| 725 | #endif |
| 726 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 727 | rsgClearDepth(float value); |
| 728 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 729 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 730 | |
| 731 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 732 | * rsgClearDepthTarget: Clear the depth target |
| 733 | * |
| 734 | * DEPRECATED. Do not use. |
| 735 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 736 | * Clear the previously set depth target |
| 737 | */ |
| 738 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 739 | #if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 740 | extern void __attribute__((overloadable |
| 741 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 742 | , deprecated |
| 743 | #endif |
| 744 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 745 | rsgClearDepthTarget(void); |
| 746 | #endif |
| 747 | #endif |
| 748 | |
| 749 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 750 | * rsgDrawMesh: Draw a mesh |
| 751 | * |
| 752 | * DEPRECATED. Do not use. |
| 753 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 754 | * Draw a mesh using the current context state. |
| 755 | * |
| 756 | * If primitiveIndex is specified, draw part of a mesh using the current context state. |
| 757 | * |
| 758 | * If start and len are also specified, draw specified index range of part of a mesh using the current context state. |
| 759 | * |
| 760 | * Otherwise the whole mesh is rendered. |
| 761 | * |
| 762 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 763 | * ism: mesh object to render |
| 764 | * primitiveIndex: for meshes that contain multiple primitive groups this parameter specifies the index of the group to draw. |
| 765 | * start: starting index in the range |
| 766 | * len: number of indices to draw |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 767 | */ |
| 768 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 769 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 770 | extern void __attribute__((overloadable |
| 771 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 772 | , deprecated |
| 773 | #endif |
| 774 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 775 | rsgDrawMesh(rs_mesh ism); |
| 776 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 777 | #endif |
| 778 | |
| 779 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 780 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 781 | extern void __attribute__((overloadable |
| 782 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 783 | , deprecated |
| 784 | #endif |
| 785 | )) |
| 786 | rsgDrawMesh(rs_mesh ism, uint primitiveIndex); |
| 787 | #endif |
| 788 | #endif |
| 789 | |
| 790 | #ifndef __LP64__ |
| 791 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 792 | extern void __attribute__((overloadable |
| 793 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 794 | , deprecated |
| 795 | #endif |
| 796 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 797 | rsgDrawMesh(rs_mesh ism, uint primitiveIndex, uint start, uint len); |
| 798 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 799 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 800 | |
| 801 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 802 | * rsgDrawQuad: Draw a quad |
| 803 | * |
| 804 | * DEPRECATED. Do not use. |
| 805 | * |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 806 | * Low performance utility function for drawing a simple quad. Not intended for |
| 807 | * drawing large quantities of geometry. |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 808 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 809 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 810 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 811 | extern void __attribute__((overloadable |
| 812 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 813 | , deprecated |
| 814 | #endif |
| 815 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 816 | rsgDrawQuad(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, |
| 817 | float z3, float x4, float y4, float z4); |
| 818 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 819 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 820 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 821 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 822 | * rsgDrawQuadTexCoords: Draw a textured quad |
| 823 | * |
| 824 | * DEPRECATED. Do not use. |
| 825 | * |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 826 | * Low performance utility function for drawing a textured quad. Not intended |
| 827 | * for drawing large quantities of geometry. |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 828 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 829 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 830 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 831 | extern void __attribute__((overloadable |
| 832 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 833 | , deprecated |
| 834 | #endif |
| 835 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 836 | rsgDrawQuadTexCoords(float x1, float y1, float z1, float u1, float v1, float x2, float y2, |
| 837 | float z2, float u2, float v2, float x3, float y3, float z3, float u3, |
| 838 | float v3, float x4, float y4, float z4, float u4, float v4); |
| 839 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 840 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 841 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 842 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 843 | * rsgDrawRect: Draw a rectangle |
| 844 | * |
| 845 | * DEPRECATED. Do not use. |
| 846 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 847 | * Low performance utility function for drawing a simple rectangle. Not |
| 848 | * intended for drawing large quantities of geometry. |
| 849 | */ |
| 850 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 851 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 852 | extern void __attribute__((overloadable |
| 853 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 854 | , deprecated |
| 855 | #endif |
| 856 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 857 | rsgDrawRect(float x1, float y1, float x2, float y2, float z); |
| 858 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 859 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 860 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 861 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 862 | * rsgDrawSpriteScreenspace: Draw rectangles in screenspace |
| 863 | * |
| 864 | * DEPRECATED. Do not use. |
| 865 | * |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 866 | * Low performance function for drawing rectangles in screenspace. This |
| 867 | * function uses the default passthough ProgramVertex. Any bound ProgramVertex |
| 868 | * is ignored. This function has considerable overhead and should not be used |
| 869 | * for drawing in shipping applications. |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 870 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 871 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 872 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 873 | extern void __attribute__((overloadable |
| 874 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 875 | , deprecated |
| 876 | #endif |
| 877 | )) |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 878 | rsgDrawSpriteScreenspace(float x, float y, float z, float w, float h); |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 879 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 880 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 881 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 882 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 883 | * rsgDrawText: Draw a text string |
| 884 | * |
| 885 | * DEPRECATED. Do not use. |
| 886 | * |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 887 | * Draws text given a string and location |
| 888 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 889 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 890 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 891 | extern void __attribute__((overloadable |
| 892 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 893 | , deprecated |
| 894 | #endif |
| 895 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 896 | rsgDrawText(const char* text, int x, int y); |
| 897 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 898 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 899 | |
| 900 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 901 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 902 | extern void __attribute__((overloadable |
| 903 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 904 | , deprecated |
| 905 | #endif |
| 906 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 907 | rsgDrawText(rs_allocation alloc, int x, int y); |
| 908 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 909 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 910 | |
| 911 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 912 | * rsgFinish: End rendering commands |
| 913 | * |
| 914 | * DEPRECATED. Do not use. |
| 915 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 916 | * Force RenderScript to finish all rendering commands |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 917 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 918 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 919 | #if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 920 | extern uint __attribute__((overloadable |
| 921 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 922 | , deprecated |
| 923 | #endif |
| 924 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 925 | rsgFinish(void); |
| 926 | #endif |
| 927 | #endif |
| 928 | |
| 929 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 930 | * rsgFontColor: Set the font color |
| 931 | * |
| 932 | * DEPRECATED. Do not use. |
| 933 | * |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 934 | * Sets the font color for all subsequent rendering calls |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 935 | * |
| 936 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 937 | * r: red component |
| 938 | * g: green component |
| 939 | * b: blue component |
| 940 | * a: alpha component |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 941 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 942 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 943 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 944 | extern void __attribute__((overloadable |
| 945 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 946 | , deprecated |
| 947 | #endif |
| 948 | )) |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 949 | rsgFontColor(float r, float g, float b, float a); |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 950 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 951 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 952 | |
| 953 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 954 | * rsgGetHeight: Get the surface height |
| 955 | * |
| 956 | * DEPRECATED. Do not use. |
| 957 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 958 | * Get the height of the current rendering surface. |
| 959 | */ |
| 960 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 961 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 962 | extern uint __attribute__((overloadable |
| 963 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 964 | , deprecated |
| 965 | #endif |
| 966 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 967 | rsgGetHeight(void); |
| 968 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 969 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 970 | |
| 971 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 972 | * rsgGetWidth: Get the surface width |
| 973 | * |
| 974 | * DEPRECATED. Do not use. |
| 975 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 976 | * Get the width of the current rendering surface. |
| 977 | */ |
| 978 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 979 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 980 | extern uint __attribute__((overloadable |
| 981 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 982 | , deprecated |
| 983 | #endif |
| 984 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 985 | rsgGetWidth(void); |
| 986 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 987 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 988 | |
| 989 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 990 | * rsgMeasureText: Get the bounding box for a text string |
| 991 | * |
| 992 | * DEPRECATED. Do not use. |
| 993 | * |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 994 | * Returns the bounding box of the text relative to (0, 0) |
| 995 | * Any of left, right, top, bottom could be NULL |
| 996 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 997 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 998 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 999 | extern void __attribute__((overloadable |
| 1000 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1001 | , deprecated |
| 1002 | #endif |
| 1003 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1004 | rsgMeasureText(const char* text, int* left, int* right, int* top, int* bottom); |
| 1005 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1006 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1007 | |
| 1008 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1009 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 1010 | extern void __attribute__((overloadable |
| 1011 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1012 | , deprecated |
| 1013 | #endif |
| 1014 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1015 | rsgMeasureText(rs_allocation alloc, int* left, int* right, int* top, int* bottom); |
| 1016 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1017 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1018 | |
| 1019 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1020 | * rsgMeshComputeBoundingBox: Compute a bounding box |
| 1021 | * |
| 1022 | * DEPRECATED. Do not use. |
| 1023 | * |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 1024 | * Computes an axis aligned bounding box of a mesh object |
| 1025 | */ |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1026 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1027 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 1028 | extern void __attribute__((overloadable |
| 1029 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1030 | , deprecated |
| 1031 | #endif |
| 1032 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1033 | rsgMeshComputeBoundingBox(rs_mesh mesh, float* minX, float* minY, float* min, float* maxX, |
| 1034 | float* maxY, float* maxZ); |
| 1035 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1036 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1037 | |
| 1038 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1039 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 1040 | static inline void __attribute__((always_inline, overloadable |
| 1041 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1042 | , deprecated |
| 1043 | #endif |
| 1044 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1045 | rsgMeshComputeBoundingBox(rs_mesh mesh, float3* bBoxMin, float3* bBoxMax) { |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 1046 | float x1, y1, z1, x2, y2, z2; |
| 1047 | rsgMeshComputeBoundingBox(mesh, &x1, &y1, &z1, &x2, &y2, &z2); |
| 1048 | bBoxMin->x = x1; |
| 1049 | bBoxMin->y = y1; |
| 1050 | bBoxMin->z = z1; |
| 1051 | bBoxMax->x = x2; |
| 1052 | bBoxMax->y = y2; |
| 1053 | bBoxMax->z = z2; |
| 1054 | } |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 1055 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1056 | #endif |
Ying Wang | a672014 | 2011-12-20 14:43:20 -0800 | [diff] [blame] | 1057 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1058 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1059 | * rsgMeshGetIndexAllocation: Return an allocation containing index data |
| 1060 | * |
| 1061 | * DEPRECATED. Do not use. |
| 1062 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1063 | * Returns an allocation containing index data or a null |
| 1064 | * allocation if only the primitive is specified |
| 1065 | * |
| 1066 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1067 | * m: mesh to get data from |
| 1068 | * index: index of the index allocation |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1069 | * |
| 1070 | * Returns: allocation containing index data |
| 1071 | */ |
| 1072 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1073 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1074 | extern rs_allocation __attribute__((overloadable |
| 1075 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1076 | , deprecated |
| 1077 | #endif |
| 1078 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1079 | rsgMeshGetIndexAllocation(rs_mesh m, uint32_t index); |
| 1080 | #endif |
| 1081 | #endif |
| 1082 | |
| 1083 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1084 | * rsgMeshGetPrimitive: Return the primitive |
| 1085 | * |
| 1086 | * DEPRECATED. Do not use. |
| 1087 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1088 | * Returns the primitive describing how a part of the mesh is |
| 1089 | * rendered |
| 1090 | * |
| 1091 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1092 | * m: mesh to get data from |
| 1093 | * index: index of the primitive |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1094 | * |
| 1095 | * Returns: primitive describing how the mesh is rendered |
| 1096 | */ |
| 1097 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1098 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1099 | extern rs_primitive __attribute__((overloadable |
| 1100 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1101 | , deprecated |
| 1102 | #endif |
| 1103 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1104 | rsgMeshGetPrimitive(rs_mesh m, uint32_t index); |
| 1105 | #endif |
| 1106 | #endif |
| 1107 | |
| 1108 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1109 | * rsgMeshGetPrimitiveCount: Return the number of index sets |
| 1110 | * |
| 1111 | * DEPRECATED. Do not use. |
| 1112 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1113 | * Meshes could have multiple index sets, this function returns |
| 1114 | * the number. |
| 1115 | * |
| 1116 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1117 | * m: mesh to get data from |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1118 | * |
| 1119 | * Returns: number of primitive groups in the mesh. This would include simple primitives as well as allocations containing index data |
| 1120 | */ |
| 1121 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1122 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1123 | extern uint32_t __attribute__((overloadable |
| 1124 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1125 | , deprecated |
| 1126 | #endif |
| 1127 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1128 | rsgMeshGetPrimitiveCount(rs_mesh m); |
| 1129 | #endif |
| 1130 | #endif |
| 1131 | |
| 1132 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1133 | * rsgMeshGetVertexAllocation: Return a vertex allocation |
| 1134 | * |
| 1135 | * DEPRECATED. Do not use. |
| 1136 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1137 | * Returns an allocation that is part of the mesh and contains |
| 1138 | * vertex data, e.g. positions, normals, texcoords |
| 1139 | * |
| 1140 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1141 | * m: mesh to get data from |
| 1142 | * index: index of the vertex allocation |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1143 | * |
| 1144 | * Returns: allocation containing vertex data |
| 1145 | */ |
| 1146 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1147 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1148 | extern rs_allocation __attribute__((overloadable |
| 1149 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1150 | , deprecated |
| 1151 | #endif |
| 1152 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1153 | rsgMeshGetVertexAllocation(rs_mesh m, uint32_t index); |
| 1154 | #endif |
| 1155 | #endif |
| 1156 | |
| 1157 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1158 | * rsgMeshGetVertexAllocationCount: Return the number of vertex allocations |
| 1159 | * |
| 1160 | * DEPRECATED. Do not use. |
| 1161 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1162 | * Returns the number of allocations in the mesh that contain |
| 1163 | * vertex data |
| 1164 | * |
| 1165 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1166 | * m: mesh to get data from |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1167 | * |
| 1168 | * Returns: number of allocations in the mesh that contain vertex data |
| 1169 | */ |
| 1170 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1171 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1172 | extern uint32_t __attribute__((overloadable |
| 1173 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1174 | , deprecated |
| 1175 | #endif |
| 1176 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1177 | rsgMeshGetVertexAllocationCount(rs_mesh m); |
| 1178 | #endif |
| 1179 | #endif |
| 1180 | |
| 1181 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1182 | * rsgProgramFragmentConstantColor: Set the constant color for a fixed function emulation program |
| 1183 | * |
| 1184 | * DEPRECATED. Do not use. |
| 1185 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1186 | * Set the constant color for a fixed function emulation program. |
| 1187 | */ |
| 1188 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1189 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 1190 | extern void __attribute__((overloadable |
| 1191 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1192 | , deprecated |
| 1193 | #endif |
| 1194 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1195 | rsgProgramFragmentConstantColor(rs_program_fragment pf, float r, float g, float b, float a); |
| 1196 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1197 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1198 | |
| 1199 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1200 | * rsgProgramVertexGetProjectionMatrix: Get the projection matrix for a fixed function vertex program |
| 1201 | * |
| 1202 | * DEPRECATED. Do not use. |
| 1203 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1204 | * Get the projection matrix for a currently bound fixed function |
| 1205 | * vertex program. Calling this function with a custom vertex shader |
| 1206 | * would result in an error. |
| 1207 | * |
| 1208 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1209 | * proj: matrix to store the current projection matrix into |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1210 | */ |
| 1211 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1212 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 1213 | extern void __attribute__((overloadable |
| 1214 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1215 | , deprecated |
| 1216 | #endif |
| 1217 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1218 | rsgProgramVertexGetProjectionMatrix(rs_matrix4x4* proj); |
| 1219 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1220 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1221 | |
| 1222 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1223 | * rsgProgramVertexLoadModelMatrix: Load the model matrix for a bound fixed function vertex program |
| 1224 | * |
| 1225 | * DEPRECATED. Do not use. |
| 1226 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1227 | * Load the model matrix for a currently bound fixed function |
| 1228 | * vertex program. Calling this function with a custom vertex shader |
| 1229 | * would result in an error. |
| 1230 | * |
| 1231 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1232 | * model: model matrix |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1233 | */ |
| 1234 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1235 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 1236 | extern void __attribute__((overloadable |
| 1237 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1238 | , deprecated |
| 1239 | #endif |
| 1240 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1241 | rsgProgramVertexLoadModelMatrix(const rs_matrix4x4* model); |
| 1242 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1243 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1244 | |
| 1245 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1246 | * rsgProgramVertexLoadProjectionMatrix: Load the projection matrix for a bound fixed function vertex program |
| 1247 | * |
| 1248 | * DEPRECATED. Do not use. |
| 1249 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1250 | * Load the projection matrix for a currently bound fixed function |
| 1251 | * vertex program. Calling this function with a custom vertex shader |
| 1252 | * would result in an error. |
| 1253 | * |
| 1254 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1255 | * proj: projection matrix |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1256 | */ |
| 1257 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1258 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 1259 | extern void __attribute__((overloadable |
| 1260 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1261 | , deprecated |
| 1262 | #endif |
| 1263 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1264 | rsgProgramVertexLoadProjectionMatrix(const rs_matrix4x4* proj); |
| 1265 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1266 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1267 | |
| 1268 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1269 | * rsgProgramVertexLoadTextureMatrix: Load the texture matrix for a bound fixed function vertex program |
| 1270 | * |
| 1271 | * DEPRECATED. Do not use. |
| 1272 | * |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1273 | * Load the texture matrix for a currently bound fixed function |
| 1274 | * vertex program. Calling this function with a custom vertex shader |
| 1275 | * would result in an error. |
| 1276 | * |
| 1277 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1278 | * tex: texture matrix |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1279 | */ |
| 1280 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1281 | #if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) |
| 1282 | extern void __attribute__((overloadable |
| 1283 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1284 | , deprecated |
| 1285 | #endif |
| 1286 | )) |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1287 | rsgProgramVertexLoadTextureMatrix(const rs_matrix4x4* tex); |
| 1288 | #endif |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1289 | #endif |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1290 | |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1291 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1292 | * rsgProgramRasterGetCullMode: Get program raster cull mode |
| 1293 | * |
| 1294 | * DEPRECATED. Do not use. |
| 1295 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1296 | * Get program raster cull mode |
| 1297 | * |
| 1298 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1299 | * pr: program raster to query |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1300 | */ |
| 1301 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1302 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1303 | extern rs_cull_mode __attribute__((overloadable |
| 1304 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1305 | , deprecated |
| 1306 | #endif |
| 1307 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1308 | rsgProgramRasterGetCullMode(rs_program_raster pr); |
| 1309 | #endif |
| 1310 | #endif |
| 1311 | |
| 1312 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1313 | * rsgProgramRasterIsPointSpriteEnabled: Get program raster point sprite state |
| 1314 | * |
| 1315 | * DEPRECATED. Do not use. |
| 1316 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1317 | * Get program raster point sprite state |
| 1318 | * |
| 1319 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1320 | * pr: program raster to query |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1321 | */ |
| 1322 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1323 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1324 | extern bool __attribute__((overloadable |
| 1325 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1326 | , deprecated |
| 1327 | #endif |
| 1328 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1329 | rsgProgramRasterIsPointSpriteEnabled(rs_program_raster pr); |
| 1330 | #endif |
| 1331 | #endif |
| 1332 | |
| 1333 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1334 | * rsgProgramStoreGetBlendDstFunc: Get program store blend destination function |
| 1335 | * |
| 1336 | * DEPRECATED. Do not use. |
| 1337 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1338 | * Get program store blend destination function |
| 1339 | * |
| 1340 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1341 | * ps: program store to query |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1342 | */ |
| 1343 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1344 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1345 | extern rs_blend_dst_func __attribute__((overloadable |
| 1346 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1347 | , deprecated |
| 1348 | #endif |
| 1349 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1350 | rsgProgramStoreGetBlendDstFunc(rs_program_store ps); |
| 1351 | #endif |
| 1352 | #endif |
| 1353 | |
| 1354 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1355 | * rsgProgramStoreGetBlendSrcFunc: Get program store blend source function |
| 1356 | * |
| 1357 | * DEPRECATED. Do not use. |
| 1358 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1359 | * Get program store blend source function |
| 1360 | * |
| 1361 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1362 | * ps: program store to query |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1363 | */ |
| 1364 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1365 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1366 | extern rs_blend_src_func __attribute__((overloadable |
| 1367 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1368 | , deprecated |
| 1369 | #endif |
| 1370 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1371 | rsgProgramStoreGetBlendSrcFunc(rs_program_store ps); |
| 1372 | #endif |
| 1373 | #endif |
| 1374 | |
| 1375 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1376 | * rsgProgramStoreGetDepthFunc: Get program store depth function |
| 1377 | * |
| 1378 | * DEPRECATED. Do not use. |
| 1379 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1380 | * Get program store depth function |
| 1381 | * |
| 1382 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1383 | * ps: program store to query |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1384 | */ |
| 1385 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1386 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1387 | extern rs_depth_func __attribute__((overloadable |
| 1388 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1389 | , deprecated |
| 1390 | #endif |
| 1391 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1392 | rsgProgramStoreGetDepthFunc(rs_program_store ps); |
| 1393 | #endif |
| 1394 | #endif |
| 1395 | |
| 1396 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1397 | * rsgProgramStoreIsColorMaskAlphaEnabled: Get program store alpha component color mask |
| 1398 | * |
| 1399 | * DEPRECATED. Do not use. |
| 1400 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1401 | * Get program store alpha component color mask |
| 1402 | * |
| 1403 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1404 | * ps: program store to query |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1405 | */ |
| 1406 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1407 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1408 | extern bool __attribute__((overloadable |
| 1409 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1410 | , deprecated |
| 1411 | #endif |
| 1412 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1413 | rsgProgramStoreIsColorMaskAlphaEnabled(rs_program_store ps); |
| 1414 | #endif |
| 1415 | #endif |
| 1416 | |
| 1417 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1418 | * rsgProgramStoreIsColorMaskBlueEnabled: Get program store blur component color mask |
| 1419 | * |
| 1420 | * DEPRECATED. Do not use. |
| 1421 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1422 | * Get program store blur component color mask |
| 1423 | * |
| 1424 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1425 | * ps: program store to query |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1426 | */ |
| 1427 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1428 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1429 | extern bool __attribute__((overloadable |
| 1430 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1431 | , deprecated |
| 1432 | #endif |
| 1433 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1434 | rsgProgramStoreIsColorMaskBlueEnabled(rs_program_store ps); |
| 1435 | #endif |
| 1436 | #endif |
| 1437 | |
| 1438 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1439 | * rsgProgramStoreIsColorMaskGreenEnabled: Get program store green component color mask |
| 1440 | * |
| 1441 | * DEPRECATED. Do not use. |
| 1442 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1443 | * Get program store green component color mask |
| 1444 | * |
| 1445 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1446 | * ps: program store to query |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1447 | */ |
| 1448 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1449 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1450 | extern bool __attribute__((overloadable |
| 1451 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1452 | , deprecated |
| 1453 | #endif |
| 1454 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1455 | rsgProgramStoreIsColorMaskGreenEnabled(rs_program_store ps); |
| 1456 | #endif |
| 1457 | #endif |
| 1458 | |
| 1459 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1460 | * rsgProgramStoreIsColorMaskRedEnabled: Get program store red component color mask |
| 1461 | * |
| 1462 | * DEPRECATED. Do not use. |
| 1463 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1464 | * Get program store red component color mask |
| 1465 | * |
| 1466 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1467 | * ps: program store to query |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1468 | */ |
| 1469 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1470 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1471 | extern bool __attribute__((overloadable |
| 1472 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1473 | , deprecated |
| 1474 | #endif |
| 1475 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1476 | rsgProgramStoreIsColorMaskRedEnabled(rs_program_store ps); |
| 1477 | #endif |
| 1478 | #endif |
| 1479 | |
| 1480 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1481 | * rsgProgramStoreIsDepthMaskEnabled: Get program store depth mask |
| 1482 | * |
| 1483 | * DEPRECATED. Do not use. |
| 1484 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1485 | * Get program store depth mask |
| 1486 | * |
| 1487 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1488 | * ps: program store to query |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1489 | */ |
| 1490 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1491 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1492 | extern bool __attribute__((overloadable |
| 1493 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1494 | , deprecated |
| 1495 | #endif |
| 1496 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1497 | rsgProgramStoreIsDepthMaskEnabled(rs_program_store ps); |
| 1498 | #endif |
| 1499 | #endif |
| 1500 | |
| 1501 | /* |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1502 | * rsgProgramStoreIsDitherEnabled: Get program store dither state |
| 1503 | * |
| 1504 | * DEPRECATED. Do not use. |
| 1505 | * |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1506 | * Get program store dither state |
| 1507 | * |
| 1508 | * Parameters: |
Stephen Hines | 3f86823 | 2015-04-10 09:22:19 -0700 | [diff] [blame] | 1509 | * ps: program store to query |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1510 | */ |
| 1511 | #ifndef __LP64__ |
Pirama Arumuga Nainar | 340676f | 2015-06-02 13:32:57 -0700 | [diff] [blame] | 1512 | #if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) |
| 1513 | extern bool __attribute__((overloadable |
| 1514 | #if (defined(RS_VERSION) && (RS_VERSION >= 22)) |
| 1515 | , deprecated |
| 1516 | #endif |
| 1517 | )) |
Jean-Luc Brouillet | 4fbd903 | 2015-04-02 14:46:27 -0700 | [diff] [blame] | 1518 | rsgProgramStoreIsDitherEnabled(rs_program_store ps); |
| 1519 | #endif |
| 1520 | #endif |
| 1521 | |
Stephen Hines | b4d9c8b | 2015-03-30 16:04:04 -0700 | [diff] [blame] | 1522 | #endif // RENDERSCRIPT_RS_GRAPHICS_RSH |