Merge "Add skip to field packer. remove hsb functions from env headers. add RS_PACKED define for packed structures."
This commit is contained in:
@@ -40,6 +40,10 @@ public class FieldPacker {
|
||||
mPos = i;
|
||||
}
|
||||
|
||||
public void skip(int i) {
|
||||
mPos += i;
|
||||
}
|
||||
|
||||
public void addI8(byte v) {
|
||||
mData[mPos++] = v;
|
||||
}
|
||||
|
||||
@@ -40,9 +40,6 @@ extern void rsgClearDepth(float);
|
||||
///////////////////////////////////////////////////////
|
||||
// misc
|
||||
extern void color(float, float, float, float);
|
||||
extern void hsb(float, float, float, float);
|
||||
extern void hsbToRgb(float, float, float, float*);
|
||||
extern int hsbToAbgr(float, float, float, float);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -58,3 +58,5 @@ typedef struct {
|
||||
float m[16];
|
||||
} rs_matrix4x4;
|
||||
|
||||
#define RS_PACKED __attribute__((packed, aligned(4)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user