blob: b82eaf1d6c59e085cdf7794fc254585f08608c37 [file] [log] [blame]
Jason Sams326e0dd2009-05-22 14:03:28 -07001#include <stdint.h>
2
3
4typedef void * RsAdapter1D;
5typedef void * RsAdapter2D;
6typedef void * RsAllocation;
7typedef void * RsContext;
8typedef void * RsDevice;
9typedef void * RsElement;
10typedef void * RsSampler;
11typedef void * RsScript;
Alex Sakhartchouk4e9a7a82010-07-01 16:14:06 -070012typedef void * RsMesh;
Jason Sams326e0dd2009-05-22 14:03:28 -070013typedef void * RsType;
14typedef void * RsProgramFragment;
Jason Samsccc010b2010-05-13 18:30:11 -070015typedef void * RsProgramStore;
Jason Sams326e0dd2009-05-22 14:03:28 -070016
17typedef struct {
18 float m[16];
19} rsc_Matrix;
20
21
22typedef struct {
23 float v[4];
24} rsc_Vector4;
25
26#define RS_PROGRAM_VERTEX_MODELVIEW_OFFSET 0
27#define RS_PROGRAM_VERTEX_PROJECTION_OFFSET 16
28#define RS_PROGRAM_VERTEX_TEXTURE_OFFSET 32
Alex Sakhartchouke7ae69f2010-09-14 09:50:43 -070029#define RS_PROGRAM_VERTEX_MVP_OFFSET 48