diff options
author | Eric Anholt <eric@anholt.net> | 2007-09-24 10:03:25 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-09-24 10:03:25 -0700 |
commit | 8cf9085bc7b96819d2bec1e749e15af58eefb2f3 (patch) | |
tree | 9a5f5ea7105198166afb5b5de8c6d75cb51d2c1e /src/mesa/drivers/dri/i915/intel_rotate.h | |
parent | 8fba8d2018643444fc17c590f3e8732e1a76c6b8 (diff) |
Move i915tex driver into place as just i915.
Diffstat (limited to 'src/mesa/drivers/dri/i915/intel_rotate.h')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_rotate.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_rotate.h b/src/mesa/drivers/dri/i915/intel_rotate.h new file mode 100644 index 0000000000..9c8802ca47 --- /dev/null +++ b/src/mesa/drivers/dri/i915/intel_rotate.h @@ -0,0 +1,39 @@ +#ifndef INTEL_ROTATE_H +#define INTEL_ROTATE_H 1 + +struct matrix23 +{ + int m00, m01, m02; + int m10, m11, m12; +}; + + + +extern void +matrix23Set(struct matrix23 *m, + int m00, int m01, int m02, int m10, int m11, int m12); + +extern void matrix23TransformCoordi(const struct matrix23 *m, int *x, int *y); + +extern void +matrix23TransformCoordf(const struct matrix23 *m, float *x, float *y); + +extern void +matrix23TransformDistance(const struct matrix23 *m, int *xDist, int *yDist); + +extern void +matrix23TransformRect(const struct matrix23 *m, + int *x, int *y, int *w, int *h); + +extern void +matrix23Rotate(struct matrix23 *m, int width, int height, int angle); + +extern void +matrix23Flip(struct matrix23 *m, int width, int height, int xflip, int yflip); + +extern void +matrix23Multiply(struct matrix23 *result, + const struct matrix23 *a, const struct matrix23 *b); + + +#endif /* INTEL_ROTATE_H */ |