blob: 2a78018b745c356429f784bc905b36752b62ccac [file] [log] [blame]
Ying Wanga6720142011-12-20 14:43:20 -08001/*
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07002 * Copyright (C) 2015 The Android Open Source Project
Ying Wanga6720142011-12-20 14:43:20 -08003 *
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 Hines3f868232015-04-10 09:22:19 -070017// Don't edit this file! It is auto-generated by frameworks/rs/api/generate.sh.
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -070018
19/*
Stephen Hines3f868232015-04-10 09:22:19 -070020 * rs_graphics.rsh: Graphics Functions and Types
Ying Wanga6720142011-12-20 14:43:20 -080021 *
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -070022 * The graphics subsystem of RenderScript was removed at API level 23.
Ying Wanga6720142011-12-20 14:43:20 -080023 */
Stephen Hines3f868232015-04-10 09:22:19 -070024
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -070025#ifndef RENDERSCRIPT_RS_GRAPHICS_RSH
26#define RENDERSCRIPT_RS_GRAPHICS_RSH
Ying Wang60999142013-01-07 13:59:36 -080027
Stephen Hinese65db132014-05-30 13:26:31 -070028#ifdef __LP64__
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -070029// 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 Brouillet4fbd9032015-04-02 14:46:27 -070031#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 Hines3f868232015-04-10 09:22:19 -070039 * DEPRECATED. Do not use.
40 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -070041 */
42#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -070043#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
44typedef enum __attribute__((
45#if (defined(RS_VERSION) && (RS_VERSION >= 22))
46deprecated
47#endif
48)) {
Stephen Hines3f868232015-04-10 09:22:19 -070049 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 Brouillet4fbd9032015-04-02 14:46:27 -070059} rs_blend_src_func;
60#endif
61#endif
62
63/*
64 * rs_blend_dst_func: Blend destination function
65 *
Stephen Hines3f868232015-04-10 09:22:19 -070066 * DEPRECATED. Do not use.
67 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -070068 */
69#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -070070#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
71typedef enum __attribute__((
72#if (defined(RS_VERSION) && (RS_VERSION >= 22))
73deprecated
74#endif
75)) {
Stephen Hines3f868232015-04-10 09:22:19 -070076 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 Brouillet4fbd9032015-04-02 14:46:27 -070085} rs_blend_dst_func;
86#endif
87#endif
88
89/*
90 * rs_cull_mode: Culling mode
91 *
Stephen Hines3f868232015-04-10 09:22:19 -070092 * DEPRECATED. Do not use.
93 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -070094 */
95#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -070096#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
97typedef enum __attribute__((
98#if (defined(RS_VERSION) && (RS_VERSION >= 22))
99deprecated
100#endif
101)) {
Stephen Hines3f868232015-04-10 09:22:19 -0700102 RS_CULL_BACK = 0,
103 RS_CULL_FRONT = 1,
104 RS_CULL_NONE = 2,
105 RS_CULL_INVALID = 100
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700106} rs_cull_mode;
107#endif
108#endif
109
110/*
111 * rs_depth_func: Depth function
112 *
Stephen Hines3f868232015-04-10 09:22:19 -0700113 * DEPRECATED. Do not use.
114 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700115 * 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 Nainar340676f2015-06-02 13:32:57 -0700119#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
120typedef enum __attribute__((
121#if (defined(RS_VERSION) && (RS_VERSION >= 22))
122deprecated
123#endif
124)) {
Stephen Hines3f868232015-04-10 09:22:19 -0700125 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 Brouillet4fbd9032015-04-02 14:46:27 -0700133} rs_depth_func;
134#endif
135#endif
136
137/*
138 * rs_primitive: How to intepret mesh vertex data
139 *
Stephen Hines3f868232015-04-10 09:22:19 -0700140 * DEPRECATED. Do not use.
141 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700142 * Describes the way mesh vertex data is interpreted when rendering
143 */
144#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700145#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
146typedef enum __attribute__((
147#if (defined(RS_VERSION) && (RS_VERSION >= 22))
148deprecated
149#endif
150)) {
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700151 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 Hines3f868232015-04-10 09:22:19 -0700165 * DEPRECATED. Do not use.
166 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700167 * Opaque handle to a RenderScript font object.
168 * See: android.renderscript.Font
169 */
170#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700171#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
172typedef _RS_HANDLE __attribute__((
173#if (defined(RS_VERSION) && (RS_VERSION >= 22))
174deprecated
175#endif
176)) rs_font;
177#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700178#endif
179
180/*
181 * rs_mesh: Handle to a Mesh
182 *
Stephen Hines3f868232015-04-10 09:22:19 -0700183 * DEPRECATED. Do not use.
184 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700185 * Opaque handle to a RenderScript mesh object.
186 * See: android.renderscript.Mesh
187 */
188#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700189#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
190typedef _RS_HANDLE __attribute__((
191#if (defined(RS_VERSION) && (RS_VERSION >= 22))
192deprecated
193#endif
194)) rs_mesh;
195#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700196#endif
197
198/*
199 * rs_program_fragment: Handle to a ProgramFragment
200 *
Stephen Hines3f868232015-04-10 09:22:19 -0700201 * DEPRECATED. Do not use.
202 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700203 * Opaque handle to a RenderScript ProgramFragment object.
204 * See: android.renderscript.ProgramFragment
205 */
206#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700207#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
208typedef _RS_HANDLE __attribute__((
209#if (defined(RS_VERSION) && (RS_VERSION >= 22))
210deprecated
211#endif
212)) rs_program_fragment;
213#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700214#endif
215
216/*
217 * rs_program_vertex: Handle to a ProgramVertex
218 *
Stephen Hines3f868232015-04-10 09:22:19 -0700219 * DEPRECATED. Do not use.
220 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700221 * Opaque handle to a RenderScript ProgramVertex object.
222 * See: android.renderscript.ProgramVertex
223 */
224#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700225#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
226typedef _RS_HANDLE __attribute__((
227#if (defined(RS_VERSION) && (RS_VERSION >= 22))
228deprecated
229#endif
230)) rs_program_vertex;
231#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700232#endif
233
234/*
235 * rs_program_raster: Handle to a ProgramRaster
236 *
Stephen Hines3f868232015-04-10 09:22:19 -0700237 * DEPRECATED. Do not use.
238 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700239 * Opaque handle to a RenderScript ProgramRaster object.
240 * See: android.renderscript.ProgramRaster
241 */
242#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700243#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
244typedef _RS_HANDLE __attribute__((
245#if (defined(RS_VERSION) && (RS_VERSION >= 22))
246deprecated
247#endif
248)) rs_program_raster;
249#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700250#endif
251
252/*
253 * rs_program_store: Handle to a ProgramStore
254 *
Stephen Hines3f868232015-04-10 09:22:19 -0700255 * DEPRECATED. Do not use.
256 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700257 * Opaque handle to a RenderScript ProgramStore object.
258 * See: android.renderscript.ProgramStore
259 */
260#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700261#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
262typedef _RS_HANDLE __attribute__((
263#if (defined(RS_VERSION) && (RS_VERSION >= 22))
264deprecated
265#endif
266)) rs_program_store;
267#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700268#endif
269
270/*
Stephen Hines3f868232015-04-10 09:22:19 -0700271 * rsClearObject: Release an object
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700272 *
Pirama Arumuga Nainardb745862015-05-11 14:34:37 -0700273 * 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 Hines3f868232015-04-10 09:22:19 -0700275 *
Pirama Arumuga Nainardb745862015-05-11 14:34:37 -0700276 * After calling this function, *dst will be set to an empty handle. See rsIsObject().
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700277 */
278#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700279#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700280extern void __attribute__((overloadable))
281 rsClearObject(rs_mesh* dst);
282#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700283#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700284
285#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700286#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700287extern void __attribute__((overloadable))
288 rsClearObject(rs_program_fragment* dst);
289#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700290#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700291
292#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700293#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700294extern void __attribute__((overloadable))
295 rsClearObject(rs_program_vertex* dst);
296#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700297#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700298
299#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700300#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700301extern void __attribute__((overloadable))
302 rsClearObject(rs_program_raster* dst);
303#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700304#endif
305
306#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700307#if !defined(RS_VERSION) || (RS_VERSION <= 22)
308extern 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 Brouillet4fbd9032015-04-02 14:46:27 -0700315extern void __attribute__((overloadable))
316 rsClearObject(rs_font* dst);
317#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700318#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700319
320/*
Stephen Hines3f868232015-04-10 09:22:19 -0700321 * rsIsObject: Check for an empty handle
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700322 *
Stephen Hines3f868232015-04-10 09:22:19 -0700323 * 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 Nainardb745862015-05-11 14:34:37 -0700328 * 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 Brouillet4fbd9032015-04-02 14:46:27 -0700330 */
331#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700332#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700333extern bool __attribute__((overloadable))
334 rsIsObject(rs_mesh v);
335#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700336#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700337
338#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700339#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700340extern bool __attribute__((overloadable))
341 rsIsObject(rs_program_fragment v);
342#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700343#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700344
345#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700346#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700347extern bool __attribute__((overloadable))
348 rsIsObject(rs_program_vertex v);
349#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700350#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700351
352#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700353#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700354extern bool __attribute__((overloadable))
355 rsIsObject(rs_program_raster v);
356#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700357#endif
358
359#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700360#if !defined(RS_VERSION) || (RS_VERSION <= 22)
361extern 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 Brouillet4fbd9032015-04-02 14:46:27 -0700368extern bool __attribute__((overloadable))
369 rsIsObject(rs_font v);
370#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700371#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700372
373/*
374 * rsSetObject: For internal use.
375 *
376 */
377#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700378#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700379extern void __attribute__((overloadable))
380 rsSetObject(rs_mesh* dst, rs_mesh src);
381#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700382#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700383
384#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700385#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700386extern void __attribute__((overloadable))
387 rsSetObject(rs_program_fragment* dst, rs_program_fragment src);
388#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700389#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700390
391#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700392#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700393extern void __attribute__((overloadable))
394 rsSetObject(rs_program_vertex* dst, rs_program_vertex src);
395#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700396#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700397
398#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700399#if !defined(RS_VERSION) || (RS_VERSION <= 22)
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700400extern void __attribute__((overloadable))
401 rsSetObject(rs_program_raster* dst, rs_program_raster src);
402#endif
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -0700403#endif
404
405#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700406#if !defined(RS_VERSION) || (RS_VERSION <= 22)
407extern 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 Brouillet4fbd9032015-04-02 14:46:27 -0700414extern void __attribute__((overloadable))
415 rsSetObject(rs_font* dst, rs_font src);
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700416#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700417#endif
Ying Wang60999142013-01-07 13:59:36 -0800418
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700419/*
Stephen Hines3f868232015-04-10 09:22:19 -0700420 * rsgAllocationSyncAll: Sync the contents of an allocation
421 *
422 * DEPRECATED. Do not use.
423 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700424 * 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 Wanga6720142011-12-20 14:43:20 -0800430 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700431#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700432#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
433extern void __attribute__((overloadable
434#if (defined(RS_VERSION) && (RS_VERSION >= 22))
435, deprecated
436#endif
437))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700438 rsgAllocationSyncAll(rs_allocation alloc);
439#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700440#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700441
442#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700443#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
444extern void __attribute__((overloadable
445#if (defined(RS_VERSION) && (RS_VERSION >= 22))
446, deprecated
447#endif
448))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700449 rsgAllocationSyncAll(rs_allocation alloc, rs_allocation_usage_type source);
450#endif
451#endif
452
453/*
Stephen Hines3f868232015-04-10 09:22:19 -0700454 * rsgBindColorTarget: Set the color target
455 *
456 * DEPRECATED. Do not use.
457 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700458 * Set the color target used for all subsequent rendering calls
459 */
460#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700461#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
462extern void __attribute__((overloadable
463#if (defined(RS_VERSION) && (RS_VERSION >= 22))
464, deprecated
465#endif
466))
Ying Wanga6720142011-12-20 14:43:20 -0800467 rsgBindColorTarget(rs_allocation colorTarget, uint slot);
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700468#endif
469#endif
Ying Wanga6720142011-12-20 14:43:20 -0800470
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700471/*
Stephen Hines3f868232015-04-10 09:22:19 -0700472 * rsgBindConstant: Bind a constant allocation
473 *
474 * DEPRECATED. Do not use.
475 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700476 * 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 Hines3f868232015-04-10 09:22:19 -0700480 * 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 Wanga6720142011-12-20 14:43:20 -0800484 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700485#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700486#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
487extern void __attribute__((overloadable
488#if (defined(RS_VERSION) && (RS_VERSION >= 22))
489, deprecated
490#endif
491))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700492 rsgBindConstant(rs_program_fragment ps, uint slot, rs_allocation c);
493#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700494#endif
Ying Wanga6720142011-12-20 14:43:20 -0800495
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700496#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700497#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
498extern void __attribute__((overloadable
499#if (defined(RS_VERSION) && (RS_VERSION >= 22))
500, deprecated
501#endif
502))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700503 rsgBindConstant(rs_program_vertex pv, uint slot, rs_allocation c);
504#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700505#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700506
507/*
Stephen Hines3f868232015-04-10 09:22:19 -0700508 * rsgBindDepthTarget: Set the depth target
509 *
510 * DEPRECATED. Do not use.
511 *
Ying Wanga6720142011-12-20 14:43:20 -0800512 * Set the depth target used for all subsequent rendering calls
Ying Wanga6720142011-12-20 14:43:20 -0800513 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700514#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700515#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
516extern void __attribute__((overloadable
517#if (defined(RS_VERSION) && (RS_VERSION >= 22))
518, deprecated
519#endif
520))
Ying Wanga6720142011-12-20 14:43:20 -0800521 rsgBindDepthTarget(rs_allocation depthTarget);
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700522#endif
523#endif
Ying Wanga6720142011-12-20 14:43:20 -0800524
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700525/*
Stephen Hines3f868232015-04-10 09:22:19 -0700526 * rsgBindFont: Bind a font object
527 *
528 * DEPRECATED. Do not use.
529 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700530 * Binds the font object to be used for all subsequent font rendering calls
Ying Wanga6720142011-12-20 14:43:20 -0800531 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700532 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -0700533 * font: object to bind
Ying Wanga6720142011-12-20 14:43:20 -0800534 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700535#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700536#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
537extern void __attribute__((overloadable
538#if (defined(RS_VERSION) && (RS_VERSION >= 22))
539, deprecated
540#endif
541))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700542 rsgBindFont(rs_font font);
543#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700544#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700545
546/*
Stephen Hines3f868232015-04-10 09:22:19 -0700547 * rsgBindProgramFragment: Bind a ProgramFragment
548 *
549 * DEPRECATED. Do not use.
550 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700551 * Bind a new ProgramFragment to the rendering context.
552 */
553#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700554#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
555extern void __attribute__((overloadable
556#if (defined(RS_VERSION) && (RS_VERSION >= 22))
557, deprecated
558#endif
559))
Ying Wanga6720142011-12-20 14:43:20 -0800560 rsgBindProgramFragment(rs_program_fragment pf);
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700561#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700562#endif
Ying Wanga6720142011-12-20 14:43:20 -0800563
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700564/*
Stephen Hines3f868232015-04-10 09:22:19 -0700565 * rsgBindProgramRaster: Bind a ProgramRaster
566 *
567 * DEPRECATED. Do not use.
568 *
Ying Wanga6720142011-12-20 14:43:20 -0800569 * Bind a new ProgramRaster to the rendering context.
Ying Wanga6720142011-12-20 14:43:20 -0800570 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700571#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700572#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
573extern void __attribute__((overloadable
574#if (defined(RS_VERSION) && (RS_VERSION >= 22))
575, deprecated
576#endif
577))
Ying Wanga6720142011-12-20 14:43:20 -0800578 rsgBindProgramRaster(rs_program_raster pr);
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700579#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700580#endif
Ying Wanga6720142011-12-20 14:43:20 -0800581
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700582/*
Stephen Hines3f868232015-04-10 09:22:19 -0700583 * rsgBindProgramStore: Bind a ProgramStore
584 *
585 * DEPRECATED. Do not use.
586 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700587 * Bind a new ProgramStore to the rendering context.
588 */
589#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700590#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
591extern void __attribute__((overloadable
592#if (defined(RS_VERSION) && (RS_VERSION >= 22))
593, deprecated
594#endif
595))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700596 rsgBindProgramStore(rs_program_store ps);
597#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700598#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700599
600/*
Stephen Hines3f868232015-04-10 09:22:19 -0700601 * rsgBindProgramVertex: Bind a ProgramVertex
602 *
603 * DEPRECATED. Do not use.
604 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700605 * Bind a new ProgramVertex to the rendering context.
606 */
607#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700608#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
609extern void __attribute__((overloadable
610#if (defined(RS_VERSION) && (RS_VERSION >= 22))
611, deprecated
612#endif
613))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700614 rsgBindProgramVertex(rs_program_vertex pv);
615#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700616#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700617
618/*
Stephen Hines3f868232015-04-10 09:22:19 -0700619 * rsgBindSampler: Bind a sampler
620 *
621 * DEPRECATED. Do not use.
622 *
Ying Wanga6720142011-12-20 14:43:20 -0800623 * Bind a new Sampler object to a ProgramFragment. The sampler will
624 * operate on the texture bound at the matching slot.
Ying Wanga6720142011-12-20 14:43:20 -0800625 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700626#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700627#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
628extern void __attribute__((overloadable
629#if (defined(RS_VERSION) && (RS_VERSION >= 22))
630, deprecated
631#endif
632))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700633 rsgBindSampler(rs_program_fragment fragment, uint slot, rs_sampler sampler);
634#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700635#endif
Ying Wanga6720142011-12-20 14:43:20 -0800636
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700637/*
Stephen Hines3f868232015-04-10 09:22:19 -0700638 * rsgBindTexture: Bind a texture allocation
639 *
640 * DEPRECATED. Do not use.
641 *
Ying Wanga6720142011-12-20 14:43:20 -0800642 * 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 Wanga6720142011-12-20 14:43:20 -0800646 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700647#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700648#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
649extern void __attribute__((overloadable
650#if (defined(RS_VERSION) && (RS_VERSION >= 22))
651, deprecated
652#endif
653))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700654 rsgBindTexture(rs_program_fragment v, uint slot, rs_allocation alloc);
655#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700656#endif
Ying Wanga6720142011-12-20 14:43:20 -0800657
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700658/*
Stephen Hines3f868232015-04-10 09:22:19 -0700659 * rsgClearAllRenderTargets: Clear all color and depth targets
660 *
661 * DEPRECATED. Do not use.
662 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700663 * Clear all color and depth targets and resume rendering into
664 * the framebuffer
Ying Wanga6720142011-12-20 14:43:20 -0800665 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700666#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700667#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
668extern void __attribute__((overloadable
669#if (defined(RS_VERSION) && (RS_VERSION >= 22))
670, deprecated
671#endif
672))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700673 rsgClearAllRenderTargets(void);
674#endif
675#endif
Ying Wanga6720142011-12-20 14:43:20 -0800676
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700677/*
Stephen Hines3f868232015-04-10 09:22:19 -0700678 * rsgClearColor: Clear the specified color from the surface
679 *
680 * DEPRECATED. Do not use.
681 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700682 * Clears the rendering surface to the specified color.
Ying Wanga6720142011-12-20 14:43:20 -0800683 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700684#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700685#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
686extern void __attribute__((overloadable
687#if (defined(RS_VERSION) && (RS_VERSION >= 22))
688, deprecated
689#endif
690))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700691 rsgClearColor(float r, float g, float b, float a);
692#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700693#endif
Ying Wanga6720142011-12-20 14:43:20 -0800694
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700695/*
Stephen Hines3f868232015-04-10 09:22:19 -0700696 * rsgClearColorTarget: Clear the color target
697 *
698 * DEPRECATED. Do not use.
699 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700700 * Clear the previously set color target
701 */
702#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700703#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
704extern void __attribute__((overloadable
705#if (defined(RS_VERSION) && (RS_VERSION >= 22))
706, deprecated
707#endif
708))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700709 rsgClearColorTarget(uint slot);
710#endif
711#endif
712
713/*
Stephen Hines3f868232015-04-10 09:22:19 -0700714 * rsgClearDepth: Clear the depth surface
715 *
716 * DEPRECATED. Do not use.
717 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700718 * Clears the depth suface to the specified value.
719 */
720#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700721#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
722extern void __attribute__((overloadable
723#if (defined(RS_VERSION) && (RS_VERSION >= 22))
724, deprecated
725#endif
726))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700727 rsgClearDepth(float value);
728#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700729#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700730
731/*
Stephen Hines3f868232015-04-10 09:22:19 -0700732 * rsgClearDepthTarget: Clear the depth target
733 *
734 * DEPRECATED. Do not use.
735 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700736 * Clear the previously set depth target
737 */
738#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700739#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
740extern void __attribute__((overloadable
741#if (defined(RS_VERSION) && (RS_VERSION >= 22))
742, deprecated
743#endif
744))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700745 rsgClearDepthTarget(void);
746#endif
747#endif
748
749/*
Stephen Hines3f868232015-04-10 09:22:19 -0700750 * rsgDrawMesh: Draw a mesh
751 *
752 * DEPRECATED. Do not use.
753 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700754 * 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 Hines3f868232015-04-10 09:22:19 -0700763 * 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 Hinesb4d9c8b2015-03-30 16:04:04 -0700767 */
768#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700769#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
770extern void __attribute__((overloadable
771#if (defined(RS_VERSION) && (RS_VERSION >= 22))
772, deprecated
773#endif
774))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700775 rsgDrawMesh(rs_mesh ism);
776#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700777#endif
778
779#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700780#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
781extern 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)
792extern void __attribute__((overloadable
793#if (defined(RS_VERSION) && (RS_VERSION >= 22))
794, deprecated
795#endif
796))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700797 rsgDrawMesh(rs_mesh ism, uint primitiveIndex, uint start, uint len);
798#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700799#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700800
801/*
Stephen Hines3f868232015-04-10 09:22:19 -0700802 * rsgDrawQuad: Draw a quad
803 *
804 * DEPRECATED. Do not use.
805 *
Ying Wanga6720142011-12-20 14:43:20 -0800806 * Low performance utility function for drawing a simple quad. Not intended for
807 * drawing large quantities of geometry.
Ying Wanga6720142011-12-20 14:43:20 -0800808 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700809#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700810#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
811extern void __attribute__((overloadable
812#if (defined(RS_VERSION) && (RS_VERSION >= 22))
813, deprecated
814#endif
815))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700816 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 Nainar340676f2015-06-02 13:32:57 -0700819#endif
Ying Wanga6720142011-12-20 14:43:20 -0800820
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700821/*
Stephen Hines3f868232015-04-10 09:22:19 -0700822 * rsgDrawQuadTexCoords: Draw a textured quad
823 *
824 * DEPRECATED. Do not use.
825 *
Ying Wanga6720142011-12-20 14:43:20 -0800826 * Low performance utility function for drawing a textured quad. Not intended
827 * for drawing large quantities of geometry.
Ying Wanga6720142011-12-20 14:43:20 -0800828 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700829#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700830#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
831extern void __attribute__((overloadable
832#if (defined(RS_VERSION) && (RS_VERSION >= 22))
833, deprecated
834#endif
835))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700836 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 Nainar340676f2015-06-02 13:32:57 -0700840#endif
Ying Wanga6720142011-12-20 14:43:20 -0800841
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700842/*
Stephen Hines3f868232015-04-10 09:22:19 -0700843 * rsgDrawRect: Draw a rectangle
844 *
845 * DEPRECATED. Do not use.
846 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700847 * Low performance utility function for drawing a simple rectangle. Not
848 * intended for drawing large quantities of geometry.
849 */
850#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700851#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
852extern void __attribute__((overloadable
853#if (defined(RS_VERSION) && (RS_VERSION >= 22))
854, deprecated
855#endif
856))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700857 rsgDrawRect(float x1, float y1, float x2, float y2, float z);
858#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700859#endif
Ying Wanga6720142011-12-20 14:43:20 -0800860
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700861/*
Stephen Hines3f868232015-04-10 09:22:19 -0700862 * rsgDrawSpriteScreenspace: Draw rectangles in screenspace
863 *
864 * DEPRECATED. Do not use.
865 *
Ying Wanga6720142011-12-20 14:43:20 -0800866 * 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 Wanga6720142011-12-20 14:43:20 -0800870 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700871#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700872#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
873extern void __attribute__((overloadable
874#if (defined(RS_VERSION) && (RS_VERSION >= 22))
875, deprecated
876#endif
877))
Ying Wanga6720142011-12-20 14:43:20 -0800878 rsgDrawSpriteScreenspace(float x, float y, float z, float w, float h);
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700879#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700880#endif
Ying Wanga6720142011-12-20 14:43:20 -0800881
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700882/*
Stephen Hines3f868232015-04-10 09:22:19 -0700883 * rsgDrawText: Draw a text string
884 *
885 * DEPRECATED. Do not use.
886 *
Ying Wanga6720142011-12-20 14:43:20 -0800887 * Draws text given a string and location
888 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700889#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700890#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
891extern void __attribute__((overloadable
892#if (defined(RS_VERSION) && (RS_VERSION >= 22))
893, deprecated
894#endif
895))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700896 rsgDrawText(const char* text, int x, int y);
897#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700898#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700899
900#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700901#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
902extern void __attribute__((overloadable
903#if (defined(RS_VERSION) && (RS_VERSION >= 22))
904, deprecated
905#endif
906))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700907 rsgDrawText(rs_allocation alloc, int x, int y);
908#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700909#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700910
911/*
Stephen Hines3f868232015-04-10 09:22:19 -0700912 * rsgFinish: End rendering commands
913 *
914 * DEPRECATED. Do not use.
915 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700916 * Force RenderScript to finish all rendering commands
Ying Wanga6720142011-12-20 14:43:20 -0800917 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700918#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700919#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
920extern uint __attribute__((overloadable
921#if (defined(RS_VERSION) && (RS_VERSION >= 22))
922, deprecated
923#endif
924))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700925 rsgFinish(void);
926#endif
927#endif
928
929/*
Stephen Hines3f868232015-04-10 09:22:19 -0700930 * rsgFontColor: Set the font color
931 *
932 * DEPRECATED. Do not use.
933 *
Ying Wanga6720142011-12-20 14:43:20 -0800934 * Sets the font color for all subsequent rendering calls
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700935 *
936 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -0700937 * r: red component
938 * g: green component
939 * b: blue component
940 * a: alpha component
Ying Wanga6720142011-12-20 14:43:20 -0800941 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700942#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700943#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
944extern void __attribute__((overloadable
945#if (defined(RS_VERSION) && (RS_VERSION >= 22))
946, deprecated
947#endif
948))
Ying Wanga6720142011-12-20 14:43:20 -0800949 rsgFontColor(float r, float g, float b, float a);
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700950#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700951#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700952
953/*
Stephen Hines3f868232015-04-10 09:22:19 -0700954 * rsgGetHeight: Get the surface height
955 *
956 * DEPRECATED. Do not use.
957 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700958 * Get the height of the current rendering surface.
959 */
960#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700961#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
962extern uint __attribute__((overloadable
963#if (defined(RS_VERSION) && (RS_VERSION >= 22))
964, deprecated
965#endif
966))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700967 rsgGetHeight(void);
968#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700969#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700970
971/*
Stephen Hines3f868232015-04-10 09:22:19 -0700972 * rsgGetWidth: Get the surface width
973 *
974 * DEPRECATED. Do not use.
975 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700976 * Get the width of the current rendering surface.
977 */
978#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700979#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
980extern uint __attribute__((overloadable
981#if (defined(RS_VERSION) && (RS_VERSION >= 22))
982, deprecated
983#endif
984))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700985 rsgGetWidth(void);
986#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700987#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700988
989/*
Stephen Hines3f868232015-04-10 09:22:19 -0700990 * rsgMeasureText: Get the bounding box for a text string
991 *
992 * DEPRECATED. Do not use.
993 *
Ying Wanga6720142011-12-20 14:43:20 -0800994 * Returns the bounding box of the text relative to (0, 0)
995 * Any of left, right, top, bottom could be NULL
996 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -0700997#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -0700998#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
999extern void __attribute__((overloadable
1000#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1001, deprecated
1002#endif
1003))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001004 rsgMeasureText(const char* text, int* left, int* right, int* top, int* bottom);
1005#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001006#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001007
1008#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001009#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1010extern void __attribute__((overloadable
1011#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1012, deprecated
1013#endif
1014))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001015 rsgMeasureText(rs_allocation alloc, int* left, int* right, int* top, int* bottom);
1016#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001017#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001018
1019/*
Stephen Hines3f868232015-04-10 09:22:19 -07001020 * rsgMeshComputeBoundingBox: Compute a bounding box
1021 *
1022 * DEPRECATED. Do not use.
1023 *
Ying Wanga6720142011-12-20 14:43:20 -08001024 * Computes an axis aligned bounding box of a mesh object
1025 */
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001026#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001027#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1028extern void __attribute__((overloadable
1029#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1030, deprecated
1031#endif
1032))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001033 rsgMeshComputeBoundingBox(rs_mesh mesh, float* minX, float* minY, float* min, float* maxX,
1034 float* maxY, float* maxZ);
1035#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001036#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001037
1038#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001039#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1040static inline void __attribute__((always_inline, overloadable
1041#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1042, deprecated
1043#endif
1044))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001045 rsgMeshComputeBoundingBox(rs_mesh mesh, float3* bBoxMin, float3* bBoxMax) {
Ying Wanga6720142011-12-20 14:43:20 -08001046 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 Wanga6720142011-12-20 14:43:20 -08001055#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001056#endif
Ying Wanga6720142011-12-20 14:43:20 -08001057
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001058/*
Stephen Hines3f868232015-04-10 09:22:19 -07001059 * rsgMeshGetIndexAllocation: Return an allocation containing index data
1060 *
1061 * DEPRECATED. Do not use.
1062 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001063 * Returns an allocation containing index data or a null
1064 * allocation if only the primitive is specified
1065 *
1066 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001067 * m: mesh to get data from
1068 * index: index of the index allocation
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001069 *
1070 * Returns: allocation containing index data
1071 */
1072#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001073#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1074extern rs_allocation __attribute__((overloadable
1075#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1076, deprecated
1077#endif
1078))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001079 rsgMeshGetIndexAllocation(rs_mesh m, uint32_t index);
1080#endif
1081#endif
1082
1083/*
Stephen Hines3f868232015-04-10 09:22:19 -07001084 * rsgMeshGetPrimitive: Return the primitive
1085 *
1086 * DEPRECATED. Do not use.
1087 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001088 * Returns the primitive describing how a part of the mesh is
1089 * rendered
1090 *
1091 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001092 * m: mesh to get data from
1093 * index: index of the primitive
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001094 *
1095 * Returns: primitive describing how the mesh is rendered
1096 */
1097#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001098#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1099extern rs_primitive __attribute__((overloadable
1100#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1101, deprecated
1102#endif
1103))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001104 rsgMeshGetPrimitive(rs_mesh m, uint32_t index);
1105#endif
1106#endif
1107
1108/*
Stephen Hines3f868232015-04-10 09:22:19 -07001109 * rsgMeshGetPrimitiveCount: Return the number of index sets
1110 *
1111 * DEPRECATED. Do not use.
1112 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001113 * Meshes could have multiple index sets, this function returns
1114 * the number.
1115 *
1116 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001117 * m: mesh to get data from
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001118 *
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 Nainar340676f2015-06-02 13:32:57 -07001122#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1123extern uint32_t __attribute__((overloadable
1124#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1125, deprecated
1126#endif
1127))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001128 rsgMeshGetPrimitiveCount(rs_mesh m);
1129#endif
1130#endif
1131
1132/*
Stephen Hines3f868232015-04-10 09:22:19 -07001133 * rsgMeshGetVertexAllocation: Return a vertex allocation
1134 *
1135 * DEPRECATED. Do not use.
1136 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001137 * Returns an allocation that is part of the mesh and contains
1138 * vertex data, e.g. positions, normals, texcoords
1139 *
1140 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001141 * m: mesh to get data from
1142 * index: index of the vertex allocation
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001143 *
1144 * Returns: allocation containing vertex data
1145 */
1146#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001147#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1148extern rs_allocation __attribute__((overloadable
1149#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1150, deprecated
1151#endif
1152))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001153 rsgMeshGetVertexAllocation(rs_mesh m, uint32_t index);
1154#endif
1155#endif
1156
1157/*
Stephen Hines3f868232015-04-10 09:22:19 -07001158 * rsgMeshGetVertexAllocationCount: Return the number of vertex allocations
1159 *
1160 * DEPRECATED. Do not use.
1161 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001162 * Returns the number of allocations in the mesh that contain
1163 * vertex data
1164 *
1165 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001166 * m: mesh to get data from
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001167 *
1168 * Returns: number of allocations in the mesh that contain vertex data
1169 */
1170#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001171#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1172extern uint32_t __attribute__((overloadable
1173#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1174, deprecated
1175#endif
1176))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001177 rsgMeshGetVertexAllocationCount(rs_mesh m);
1178#endif
1179#endif
1180
1181/*
Stephen Hines3f868232015-04-10 09:22:19 -07001182 * rsgProgramFragmentConstantColor: Set the constant color for a fixed function emulation program
1183 *
1184 * DEPRECATED. Do not use.
1185 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001186 * Set the constant color for a fixed function emulation program.
1187 */
1188#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001189#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1190extern void __attribute__((overloadable
1191#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1192, deprecated
1193#endif
1194))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001195 rsgProgramFragmentConstantColor(rs_program_fragment pf, float r, float g, float b, float a);
1196#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001197#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001198
1199/*
Stephen Hines3f868232015-04-10 09:22:19 -07001200 * rsgProgramVertexGetProjectionMatrix: Get the projection matrix for a fixed function vertex program
1201 *
1202 * DEPRECATED. Do not use.
1203 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001204 * 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 Hines3f868232015-04-10 09:22:19 -07001209 * proj: matrix to store the current projection matrix into
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001210 */
1211#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001212#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1213extern void __attribute__((overloadable
1214#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1215, deprecated
1216#endif
1217))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001218 rsgProgramVertexGetProjectionMatrix(rs_matrix4x4* proj);
1219#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001220#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001221
1222/*
Stephen Hines3f868232015-04-10 09:22:19 -07001223 * rsgProgramVertexLoadModelMatrix: Load the model matrix for a bound fixed function vertex program
1224 *
1225 * DEPRECATED. Do not use.
1226 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001227 * 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 Hines3f868232015-04-10 09:22:19 -07001232 * model: model matrix
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001233 */
1234#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001235#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1236extern void __attribute__((overloadable
1237#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1238, deprecated
1239#endif
1240))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001241 rsgProgramVertexLoadModelMatrix(const rs_matrix4x4* model);
1242#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001243#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001244
1245/*
Stephen Hines3f868232015-04-10 09:22:19 -07001246 * rsgProgramVertexLoadProjectionMatrix: Load the projection matrix for a bound fixed function vertex program
1247 *
1248 * DEPRECATED. Do not use.
1249 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001250 * 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 Hines3f868232015-04-10 09:22:19 -07001255 * proj: projection matrix
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001256 */
1257#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001258#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1259extern void __attribute__((overloadable
1260#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1261, deprecated
1262#endif
1263))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001264 rsgProgramVertexLoadProjectionMatrix(const rs_matrix4x4* proj);
1265#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001266#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001267
1268/*
Stephen Hines3f868232015-04-10 09:22:19 -07001269 * rsgProgramVertexLoadTextureMatrix: Load the texture matrix for a bound fixed function vertex program
1270 *
1271 * DEPRECATED. Do not use.
1272 *
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001273 * 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 Hines3f868232015-04-10 09:22:19 -07001278 * tex: texture matrix
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001279 */
1280#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001281#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)
1282extern void __attribute__((overloadable
1283#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1284, deprecated
1285#endif
1286))
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001287 rsgProgramVertexLoadTextureMatrix(const rs_matrix4x4* tex);
1288#endif
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001289#endif
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001290
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001291/*
Stephen Hines3f868232015-04-10 09:22:19 -07001292 * rsgProgramRasterGetCullMode: Get program raster cull mode
1293 *
1294 * DEPRECATED. Do not use.
1295 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001296 * Get program raster cull mode
1297 *
1298 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001299 * pr: program raster to query
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001300 */
1301#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001302#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1303extern rs_cull_mode __attribute__((overloadable
1304#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1305, deprecated
1306#endif
1307))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001308 rsgProgramRasterGetCullMode(rs_program_raster pr);
1309#endif
1310#endif
1311
1312/*
Stephen Hines3f868232015-04-10 09:22:19 -07001313 * rsgProgramRasterIsPointSpriteEnabled: Get program raster point sprite state
1314 *
1315 * DEPRECATED. Do not use.
1316 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001317 * Get program raster point sprite state
1318 *
1319 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001320 * pr: program raster to query
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001321 */
1322#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001323#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1324extern bool __attribute__((overloadable
1325#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1326, deprecated
1327#endif
1328))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001329 rsgProgramRasterIsPointSpriteEnabled(rs_program_raster pr);
1330#endif
1331#endif
1332
1333/*
Stephen Hines3f868232015-04-10 09:22:19 -07001334 * rsgProgramStoreGetBlendDstFunc: Get program store blend destination function
1335 *
1336 * DEPRECATED. Do not use.
1337 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001338 * Get program store blend destination function
1339 *
1340 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001341 * ps: program store to query
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001342 */
1343#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001344#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1345extern rs_blend_dst_func __attribute__((overloadable
1346#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1347, deprecated
1348#endif
1349))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001350 rsgProgramStoreGetBlendDstFunc(rs_program_store ps);
1351#endif
1352#endif
1353
1354/*
Stephen Hines3f868232015-04-10 09:22:19 -07001355 * rsgProgramStoreGetBlendSrcFunc: Get program store blend source function
1356 *
1357 * DEPRECATED. Do not use.
1358 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001359 * Get program store blend source function
1360 *
1361 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001362 * ps: program store to query
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001363 */
1364#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001365#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1366extern rs_blend_src_func __attribute__((overloadable
1367#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1368, deprecated
1369#endif
1370))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001371 rsgProgramStoreGetBlendSrcFunc(rs_program_store ps);
1372#endif
1373#endif
1374
1375/*
Stephen Hines3f868232015-04-10 09:22:19 -07001376 * rsgProgramStoreGetDepthFunc: Get program store depth function
1377 *
1378 * DEPRECATED. Do not use.
1379 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001380 * Get program store depth function
1381 *
1382 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001383 * ps: program store to query
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001384 */
1385#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001386#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1387extern rs_depth_func __attribute__((overloadable
1388#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1389, deprecated
1390#endif
1391))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001392 rsgProgramStoreGetDepthFunc(rs_program_store ps);
1393#endif
1394#endif
1395
1396/*
Stephen Hines3f868232015-04-10 09:22:19 -07001397 * rsgProgramStoreIsColorMaskAlphaEnabled: Get program store alpha component color mask
1398 *
1399 * DEPRECATED. Do not use.
1400 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001401 * Get program store alpha component color mask
1402 *
1403 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001404 * ps: program store to query
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001405 */
1406#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001407#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1408extern bool __attribute__((overloadable
1409#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1410, deprecated
1411#endif
1412))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001413 rsgProgramStoreIsColorMaskAlphaEnabled(rs_program_store ps);
1414#endif
1415#endif
1416
1417/*
Stephen Hines3f868232015-04-10 09:22:19 -07001418 * rsgProgramStoreIsColorMaskBlueEnabled: Get program store blur component color mask
1419 *
1420 * DEPRECATED. Do not use.
1421 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001422 * Get program store blur component color mask
1423 *
1424 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001425 * ps: program store to query
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001426 */
1427#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001428#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1429extern bool __attribute__((overloadable
1430#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1431, deprecated
1432#endif
1433))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001434 rsgProgramStoreIsColorMaskBlueEnabled(rs_program_store ps);
1435#endif
1436#endif
1437
1438/*
Stephen Hines3f868232015-04-10 09:22:19 -07001439 * rsgProgramStoreIsColorMaskGreenEnabled: Get program store green component color mask
1440 *
1441 * DEPRECATED. Do not use.
1442 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001443 * Get program store green component color mask
1444 *
1445 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001446 * ps: program store to query
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001447 */
1448#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001449#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1450extern bool __attribute__((overloadable
1451#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1452, deprecated
1453#endif
1454))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001455 rsgProgramStoreIsColorMaskGreenEnabled(rs_program_store ps);
1456#endif
1457#endif
1458
1459/*
Stephen Hines3f868232015-04-10 09:22:19 -07001460 * rsgProgramStoreIsColorMaskRedEnabled: Get program store red component color mask
1461 *
1462 * DEPRECATED. Do not use.
1463 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001464 * Get program store red component color mask
1465 *
1466 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001467 * ps: program store to query
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001468 */
1469#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001470#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1471extern bool __attribute__((overloadable
1472#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1473, deprecated
1474#endif
1475))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001476 rsgProgramStoreIsColorMaskRedEnabled(rs_program_store ps);
1477#endif
1478#endif
1479
1480/*
Stephen Hines3f868232015-04-10 09:22:19 -07001481 * rsgProgramStoreIsDepthMaskEnabled: Get program store depth mask
1482 *
1483 * DEPRECATED. Do not use.
1484 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001485 * Get program store depth mask
1486 *
1487 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001488 * ps: program store to query
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001489 */
1490#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001491#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1492extern bool __attribute__((overloadable
1493#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1494, deprecated
1495#endif
1496))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001497 rsgProgramStoreIsDepthMaskEnabled(rs_program_store ps);
1498#endif
1499#endif
1500
1501/*
Stephen Hines3f868232015-04-10 09:22:19 -07001502 * rsgProgramStoreIsDitherEnabled: Get program store dither state
1503 *
1504 * DEPRECATED. Do not use.
1505 *
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001506 * Get program store dither state
1507 *
1508 * Parameters:
Stephen Hines3f868232015-04-10 09:22:19 -07001509 * ps: program store to query
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001510 */
1511#ifndef __LP64__
Pirama Arumuga Nainar340676f2015-06-02 13:32:57 -07001512#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22))
1513extern bool __attribute__((overloadable
1514#if (defined(RS_VERSION) && (RS_VERSION >= 22))
1515, deprecated
1516#endif
1517))
Jean-Luc Brouillet4fbd9032015-04-02 14:46:27 -07001518 rsgProgramStoreIsDitherEnabled(rs_program_store ps);
1519#endif
1520#endif
1521
Stephen Hinesb4d9c8b2015-03-30 16:04:04 -07001522#endif // RENDERSCRIPT_RS_GRAPHICS_RSH