| Reference Manual - 1.4.11

IDirectFBSurface | SetMatrix

#### Set the transformation matrix.

DFBResult SetMatrix (
| IDirectFBSurface |  | * | thiz,
| const s32 |  | * | matrix
);

Enable usage of this matrix by setting DSRO_MATRIX via IDirectFBSurface::SetRenderOptions().

The matrix consists of 3x3 fixed point 16.16 values. The order in the array is from left to right and from top to bottom.

All drawing and blitting will be transformed:

                  X' = (X * v0 + Y * v1 + v2) / (X * v6 + Y * v7 + v8)
                  Y' = (X * v3 + Y * v4 + v5) / (X * v6 + Y * v7 + v8)

| This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License