2010-05-19 17:22:57 -07:00
|
|
|
#include "rs_cl.rsh"
|
2010-05-28 18:08:16 -07:00
|
|
|
#include "rs_core.rsh"
|
|
|
|
|
2010-03-16 15:35:57 -07:00
|
|
|
|
2010-05-11 14:03:58 -07:00
|
|
|
|
2010-05-19 17:22:57 -07:00
|
|
|
// Allocations
|
2010-05-17 14:55:34 -07:00
|
|
|
extern rs_allocation rsGetAllocation(const void *);
|
2010-05-19 17:22:57 -07:00
|
|
|
extern uint32_t rsAllocationGetDimX(rs_allocation);
|
|
|
|
extern uint32_t rsAllocationGetDimY(rs_allocation);
|
|
|
|
extern uint32_t rsAllocationGetDimZ(rs_allocation);
|
|
|
|
extern uint32_t rsAllocationGetDimLOD(rs_allocation);
|
|
|
|
extern uint32_t rsAllocationGetDimFaces(rs_allocation);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Debugging
|
|
|
|
extern void __attribute__((overloadable))rsDebug(const char *, float);
|
|
|
|
extern void __attribute__((overloadable))rsDebug(const char *, float2);
|
|
|
|
extern void __attribute__((overloadable))rsDebug(const char *, float3);
|
|
|
|
extern void __attribute__((overloadable))rsDebug(const char *, float4);
|
|
|
|
extern void __attribute__((overloadable))rsDebug(const char *, int);
|
|
|
|
extern void __attribute__((overloadable))rsDebug(const char *, const void *);
|
|
|
|
#define RS_DEBUG(a) rsDebug(#a, a)
|
|
|
|
#define RS_DEBUG_MARKER rsDebug(__FILE__, __LINE__)
|
|
|
|
|
|
|
|
// RS Math
|
|
|
|
extern int __attribute__((overloadable)) rsRand(int);
|
|
|
|
extern int __attribute__((overloadable)) rsRand(int, int);
|
|
|
|
extern float __attribute__((overloadable)) rsRand(float);
|
|
|
|
extern float __attribute__((overloadable)) rsRand(float, float);
|
|
|
|
|
|
|
|
extern float __attribute__((overloadable)) rsFrac(float);
|
|
|
|
|
|
|
|
// time
|
|
|
|
extern int32_t rsSecond();
|
|
|
|
extern int32_t rsMinute();
|
|
|
|
extern int32_t rsHour();
|
|
|
|
extern int32_t rsDay();
|
|
|
|
extern int32_t rsMonth();
|
|
|
|
extern int32_t rsYear();
|
|
|
|
extern int64_t rsUptimeMillis();
|
|
|
|
extern int64_t rsStartTimeMillis();
|
|
|
|
extern int64_t rsElapsedTimeMillis();
|
|
|
|
|
|
|
|
extern int rsSendToClient(void *data, int cmdID, int len, int waitForSpace);
|
|
|
|
|
2010-05-28 18:23:22 -07:00
|
|
|
// Script to Script
|
|
|
|
extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input);
|
|
|
|
extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input, rs_allocation output);
|
|
|
|
extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input, int xStart, int xEnd);
|
|
|
|
extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input, rs_allocation output, int xStart, int xEnd);
|
|
|
|
extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input, int xStart, int yStart, int xEnd, int yEnd);
|
|
|
|
extern void __attribute__((overloadable))rsForEach(rs_script, rs_allocation input, rs_allocation output, int xStart, int yStart, int xEnd, int yEnd);
|
|
|
|
|
2010-05-19 17:22:57 -07:00
|
|
|
|