12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef RENDER_SCRIPT_H
- #define RENDER_SCRIPT_H
- #include <stdint.h>
- #include <sys/types.h>
- #include "rsInternalDefines.h"
- extern "C" {
-
- RsObjectBase rsaFileA3DGetEntryByIndex(RsContext, uint32_t idx, RsFile);
- RsFile rsaFileA3DCreateFromMemory(RsContext, const void *data,
- uint32_t len);
- RsFile rsaFileA3DCreateFromAsset(RsContext, void *asset);
- RsFile rsaFileA3DCreateFromFile(RsContext, const char *path);
- void rsaFileA3DGetNumIndexEntries(RsContext, int32_t *numEntries, RsFile);
- void rsaFileA3DGetIndexEntries(RsContext, RsFileIndexEntry *fileEntries,
- uint32_t numEntries, RsFile);
-
- void rsaMeshGetVertexBufferCount(RsContext, RsMesh, int32_t *vtxCount);
- void rsaMeshGetIndexCount(RsContext, RsMesh, int32_t *idxCount);
- void rsaMeshGetVertices(RsContext, RsMesh, RsAllocation *vtxData,
- uint32_t vtxDataCount);
- void rsaMeshGetIndices(RsContext, RsMesh, RsAllocation *va,
- uint32_t *primType, uint32_t idxDataCount);
- RsContext rsContextCreateGL(RsDevice dev, uint32_t version,
- uint32_t sdkVersion, RsSurfaceConfig sc,
- uint32_t dpi);
- void rsaGetName(RsContext, void * obj, const char **name);
-
- const void* rsaAllocationGetType(RsContext con, RsAllocation va);
-
- void rsaTypeGetNativeData(RsContext, RsType, uintptr_t *typeData, uint32_t typeDataSize);
-
- void rsaElementGetNativeData(RsContext, RsElement, uintptr_t *elemData, uint32_t elemDataSize);
- void rsaElementGetSubElements(RsContext, RsElement, uintptr_t *ids, const char **names,
- uint32_t *arraySizes, uint32_t dataSize);
- RsDevice rsDeviceCreate();
- void rsDeviceDestroy(RsDevice dev);
- void rsDeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value);
- RsContext rsContextCreate(RsDevice dev, uint32_t version, uint32_t sdkVersion,
- RsContextType ct, uint32_t flags);
- }
- #include "rsgApiFuncDecl.h"
- #endif
|