1 /*
2  * Copyright (C) 2007 The Android Open Source Project
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 
17 #ifndef RENDER_SCRIPT_H
18 #define RENDER_SCRIPT_H
19 
20 #include <stdint.h>
21 #include <sys/types.h>
22 
23 #include "rsInternalDefines.h"
24 
25 extern "C" {
26 // Legacy graphics functions
27 RsObjectBase rsaFileA3DGetEntryByIndex(RsContext, uint32_t idx, RsFile) __DEPRECATED_IN(31);
28 RsFile rsaFileA3DCreateFromMemory(RsContext, const void* data, uint32_t len) __DEPRECATED_IN(31);
29 RsFile rsaFileA3DCreateFromAsset(RsContext, void* asset) __DEPRECATED_IN(31);
30 RsFile rsaFileA3DCreateFromFile(RsContext, const char* path) __DEPRECATED_IN(31);
31 void rsaFileA3DGetNumIndexEntries(RsContext, int32_t* numEntries, RsFile) __DEPRECATED_IN(31);
32 void rsaFileA3DGetIndexEntries(RsContext, RsFileIndexEntry* fileEntries, uint32_t numEntries,
33                                RsFile) __DEPRECATED_IN(31);
34 // Mesh update functions
35 void rsaMeshGetVertexBufferCount(RsContext, RsMesh, int32_t* vtxCount) __DEPRECATED_IN(31);
36 void rsaMeshGetIndexCount(RsContext, RsMesh, int32_t* idxCount) __DEPRECATED_IN(31);
37 void rsaMeshGetVertices(RsContext, RsMesh, RsAllocation* vtxData, uint32_t vtxDataCount)
38         __DEPRECATED_IN(31);
39 void rsaMeshGetIndices(RsContext, RsMesh, RsAllocation* va, uint32_t* primType,
40                        uint32_t idxDataCount) __DEPRECATED_IN(31);
41 RsContext rsContextCreateGL(RsDevice dev, uint32_t version, uint32_t sdkVersion, RsSurfaceConfig sc,
42                             uint32_t dpi) __DEPRECATED_IN(31);
43 
44 void rsaGetName(RsContext, void* obj, const char** name) __DEPRECATED_IN(31);
45 // Allocation update
46 const void* rsaAllocationGetType(RsContext con, RsAllocation va) __DEPRECATED_IN(31);
47 // Type update
48 void rsaTypeGetNativeData(RsContext, RsType, uintptr_t* typeData, uint32_t typeDataSize)
49         __DEPRECATED_IN(31);
50 // Element update
51 void rsaElementGetNativeData(RsContext, RsElement, uintptr_t* elemData, uint32_t elemDataSize)
52         __DEPRECATED_IN(31);
53 void rsaElementGetSubElements(RsContext, RsElement, uintptr_t* ids, const char** names,
54                               uint32_t* arraySizes, uint32_t dataSize) __DEPRECATED_IN(31);
55 
56 RsDevice rsDeviceCreate() __DEPRECATED_IN(31);
57 void rsDeviceDestroy(RsDevice dev) __DEPRECATED_IN(31);
58 void rsDeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value) __DEPRECATED_IN(31);
59 RsContext rsContextCreate(RsDevice dev, uint32_t version, uint32_t sdkVersion, RsContextType ct,
60                           uint32_t flags) __DEPRECATED_IN(31);
61 }
62 #include "rsgApiFuncDecl.h"
63 
64 #endif // RENDER_SCRIPT_H
65 
66 
67 
68