Ejemplo n.º 1
0
static GMatrix matrix_flip_y(int w, int h) {
    GMatrix matrix;
    matrix.setTranslate(0, h);
    matrix.preScale(1, -1);
    return matrix;
}
Ejemplo n.º 2
0
static GMatrix matrix_scale(int w, int h) {
    GMatrix matrix;
    matrix.setTranslate(10, 10);
    matrix.preScale(0.75f, 0.75f);
    return matrix;
}
Ejemplo n.º 3
0
static GMatrix matrix_flip_x(int w, int h) {
    GMatrix matrix;
    matrix.setTranslate(w, 0);
    matrix.preScale(-1, 1);
    return matrix;
}