本文整理汇总了Java中org.newdawn.slick.Graphics.texture方法的典型用法代码示例。如果您正苦于以下问题:Java Graphics.texture方法的具体用法?Java Graphics.texture怎么用?Java Graphics.texture使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.newdawn.slick.Graphics
的用法示例。
在下文中一共展示了Graphics.texture方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: render
import org.newdawn.slick.Graphics; //导入方法依赖的package包/类
/**
* @see org.newdawn.slick.BasicGame#render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
*/
public void render(GameContainer container, Graphics g) {
g.drawString("R - Toggle Rotationg",10,50);
g.drawImage(image1, 100, 236);
g.drawImage(image2, 600, 236);
g.translate(0, -150);
g.rotate(400, 300, ang);
g.texture(shape, image2);
g.texture(shape, image1, fill);
g.resetTransform();
g.translate(0, 150);
g.rotate(400, 300, ang);
g.texture(poly, image2);
g.texture(poly, image1, fill);
g.resetTransform();
}
示例2: render
import org.newdawn.slick.Graphics; //导入方法依赖的package包/类
/**
* @see org.newdawn.slick.Game#render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
*/
public void render(GameContainer container, Graphics g) throws SlickException {
g.setColor(Color.white);
g.texture(poly, image);
ShapeRenderer.texture(poly, image, texPaint);
}
示例3: render
import org.newdawn.slick.Graphics; //导入方法依赖的package包/类
/**
* @see org.newdawn.slick.Game#render(org.newdawn.slick.GameContainer, org.newdawn.slick.Graphics)
*/
public void render(GameContainer container, Graphics g) throws SlickException {
g.setColor(Color.white);
g.texture(poly, image);
}