本文整理汇总了Java中com.watabou.glwrap.Matrix.translate方法的典型用法代码示例。如果您正苦于以下问题:Java Matrix.translate方法的具体用法?Java Matrix.translate怎么用?Java Matrix.translate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.watabou.glwrap.Matrix
的用法示例。
在下文中一共展示了Matrix.translate方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
@Override
protected void updateMatrix() {
// "origin" field is ignored
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
Matrix.scale(matrix, scale.x, scale.y);
Matrix.rotate(matrix, angle);
}
示例2: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
protected void updateMatrix() {
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
if (origin.x != 0 || origin.y != 0)
Matrix.translate(matrix, origin.x, origin.y);
if (angle != 0) {
Matrix.rotate(matrix, angle);
}
if (scale.x != 1 || scale.y != 1) {
Matrix.scale(matrix, scale.x, scale.y);
}
if (origin.x != 0 || origin.y != 0)
Matrix.translate(matrix, -origin.x, -origin.y);
}
示例3: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
@Override
protected void updateMatrix() {
// "origin" field is ignored
Matrix.setIdentity( matrix );
Matrix.translate( matrix, x, y );
Matrix.scale( matrix, scale.x, scale.y );
Matrix.rotate( matrix, angle );
}
示例4: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
protected void updateMatrix() {
Matrix.setIdentity( matrix );
Matrix.translate( matrix, x, y );
if (origin.x != 0 || origin.y != 0)
Matrix.translate( matrix, origin.x, origin.y );
if (angle != 0) {
Matrix.rotate( matrix, angle );
}
if (scale.x != 1 || scale.y != 1) {
Matrix.scale( matrix, scale.x, scale.y );
}
if (origin.x != 0 || origin.y != 0)
Matrix.translate( matrix, -origin.x, -origin.y );
}
示例5: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
@Override
protected void updateMatrix()
{
// "origin" field is ignored
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
Matrix.scale(matrix, scale.x, scale.y);
Matrix.rotate(matrix, angle);
}
示例6: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
protected void updateMatrix()
{
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
Matrix.translate(matrix, origin.x, origin.y);
if (angle != 0)
{
Matrix.rotate(matrix, angle);
}
if (scale.x != 1 || scale.y != 1)
{
Matrix.scale(matrix, scale.x, scale.y);
}
Matrix.translate(matrix, -origin.x, -origin.y);
}
示例7: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
protected void updateMatrix() {
Matrix.setIdentity( matrix );
Matrix.translate( matrix, x, y );
Matrix.translate( matrix, origin.x, origin.y );
if (angle != 0) {
Matrix.rotate( matrix, angle );
}
if (scale.x != 1 || scale.y != 1) {
Matrix.scale( matrix, scale.x, scale.y );
}
Matrix.translate(matrix, -origin.x, -origin.y);
}
示例8: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
protected void updateMatrix() {
Matrix.setIdentity( matrix );
Matrix.translate( matrix, x, y );
Matrix.translate( matrix, origin.x, origin.y );
if (angle != 0) {
Matrix.rotate( matrix, angle );
}
if (scale.x != 1 || scale.y != 1) {
Matrix.scale( matrix, scale.x, scale.y );
}
Matrix.translate( matrix, -origin.x, -origin.y );
}
示例9: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
@Override
protected void updateMatrix() {
// "origin" field is ignored
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
Matrix.scale(matrix, scale.x, scale.y);
Matrix.rotate(matrix, angle);
}
示例10: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
protected void updateMatrix() {
Matrix.setIdentity(matrix);
Matrix.translate(matrix, x, y);
Matrix.translate(matrix, origin.x, origin.y);
if (angle != 0) {
Matrix.rotate(matrix, angle);
}
if (scale.x != 1 || scale.y != 1) {
Matrix.scale(matrix, scale.x, scale.y);
}
Matrix.translate(matrix, -origin.x, -origin.y);
}
示例11: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
@Override
protected void updateMatrix() {
super.updateMatrix();
Matrix.copy(matrix, shadowMatrix);
Matrix.translate(shadowMatrix,
(width() * (1f - shadowWidth)) / 2f,
(height() * (1f - shadowHeight)) + shadowOffset);
Matrix.scale(shadowMatrix, shadowWidth, shadowHeight);
}
示例12: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
@Override
protected void updateMatrix() {
super.updateMatrix();
//the y value is set at the top of the character, not at the top of accents.
Matrix.translate(matrix, 0, -Math.round((baseLine() * 0.15f) / scale.y));
}
示例13: updateMatrix
import com.watabou.glwrap.Matrix; //导入方法依赖的package包/类
@Override
protected void updateMatrix() {
super.updateMatrix();
//the y value is set at the top of the character, not at the top of accents.
Matrix.translate( matrix, 0, -Math.round((baseLine()*0.15f)/scale.y) );
}