Hi, I found a bug at Rectangle.
When I create rectangle and use setTexture(texture) the result is ether just fill white or nothing at all. But if put the texture in the constructor it works as expected. I plan to use different texture depending on state of the unit so this is a problem.
Thanks.
P.S the same white rect just fills the rectangle if I set the texture in a Appearance and then apply the appearance to the rectangle.
You can only change the Texture through setTexture() when the constructor got a Texture. If you don't know the initial Texture a construction time, just do the following:
Rectangle rect = new Rectangle( TextureLoader.getFallbackTexture(), ... );
The reason is, that the Geometry needs texture coordinates, which are only created, when it is told to.
Hope, that helps.
Marvin