Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 1 | #include <stdint.h> |
| 2 | |
| 3 | |
| 4 | typedef void * RsAdapter1D; |
| 5 | typedef void * RsAdapter2D; |
| 6 | typedef void * RsAllocation; |
| 7 | typedef void * RsContext; |
| 8 | typedef void * RsDevice; |
| 9 | typedef void * RsElement; |
| 10 | typedef void * RsSampler; |
| 11 | typedef void * RsScript; |
Jason Sams | e5ffb87 | 2009-08-09 17:01:55 -0700 | [diff] [blame] | 12 | typedef void * RsSimpleMesh; |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 13 | typedef void * RsType; |
| 14 | typedef void * RsProgramFragment; |
Jason Sams | ccc010b | 2010-05-13 18:30:11 -0700 | [diff] [blame^] | 15 | typedef void * RsProgramStore; |
Jason Sams | 62bc1db | 2009-06-22 15:49:21 -0700 | [diff] [blame] | 16 | typedef void * RsLight; |
Jason Sams | 326e0dd | 2009-05-22 14:03:28 -0700 | [diff] [blame] | 17 | |
| 18 | |
| 19 | typedef struct { |
| 20 | float m[16]; |
| 21 | } rsc_Matrix; |
| 22 | |
| 23 | |
| 24 | typedef struct { |
| 25 | float v[4]; |
| 26 | } rsc_Vector4; |
| 27 | |
| 28 | #define RS_PROGRAM_VERTEX_MODELVIEW_OFFSET 0 |
| 29 | #define RS_PROGRAM_VERTEX_PROJECTION_OFFSET 16 |
| 30 | #define RS_PROGRAM_VERTEX_TEXTURE_OFFSET 32 |
| 31 | |