/usr/local/google/home/srhines/android_trees/jb-mr2-dev/frameworks/rs/scriptc/rs_mesh.rsh
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2012 The Android Open Source Project
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00023 #ifndef __RS_MESH_RSH__
00024 #define __RS_MESH_RSH__
00025 
00026 // New API's
00027 #if (defined(RS_VERSION) && (RS_VERSION >= 16))
00028 
00037 extern uint32_t __attribute__((overloadable))
00038     rsgMeshGetVertexAllocationCount(rs_mesh m);
00039 
00049 extern uint32_t __attribute__((overloadable))
00050     rsgMeshGetPrimitiveCount(rs_mesh m);
00051 
00060 extern rs_allocation __attribute__((overloadable))
00061     rsgMeshGetVertexAllocation(rs_mesh m, uint32_t index);
00062 
00071 extern rs_allocation __attribute__((overloadable))
00072     rsgMeshGetIndexAllocation(rs_mesh m, uint32_t index);
00073 
00082 extern rs_primitive __attribute__((overloadable))
00083     rsgMeshGetPrimitive(rs_mesh m, uint32_t index);
00084 
00085 #endif // (defined(RS_VERSION) && (RS_VERSION >= 16))
00086 
00087 #endif // __RS_MESH_RSH__
00088