我想要创建一个简单的Adorner,它用一个边界框标记一个选定的元素。我希望它是尖锐的和准确的一个像素以外的目标内容。我找到了一些有用的代码,但它并不完全像我想要的那样工作。
我的OnRender SelectAdorner的方法是:
Rect adornedElementRect = new Rect(AdornedElement.DesiredSize);
SolidColorBrush renderBrush = new SolidColorBrush(Colors.Transparent);
Pen renderPen = new Pen(new SolidColorBrush(Co
嗨,我是新来的libgdx,并试图构建一个路多game.right,我知道我可以画板,但当我试图显示骰子或任何和平,什么都没有发生,我附加游戏代码。请阅读并帮忙。
public void create() {
float w = Gdx.graphics.getWidth();
float h = Gdx.graphics.getHeight();
batch = new SpriteBatch();
camera = new OrthographicCamera(1, h / w);
boardtexture = new Texture(Gdx.fil