Is there an example of how to use the Overlay class anywhere?
I've done a lot of searching and can't find one.
I've been trying to get it to work and I just can't seem to figure it out.
From the java docs it sounds like you can just create an instance of the class and it should take care of itself from there.
Below is a snippet of what I am trying to do in the onSurfaceChanged() event.
private Overlay MapFrame = null;
@Override
public void onSurfaceChanged(GL10 gl, int w, int h) {
fb = new FrameBuffer(gl, w, h);
world = new World();
world.setAmbientLight(200, 200, 200);
/* the rest of the initialization code left out for brevity, it just loads a bunch of objects and textures*/
//"minimapframe" is a known texture in the texture manager
MapFrame = new Overlay(world, 0, 0, 128, 128, "minimapframe");
// I've been trying different combinations of this code
//MapFrame = new Overlay(world, fb, "minimapframe");
//MapFrame .setSourceCoordinates(0, 0, objTextureManager.getTexture("minimapframe").getWidth(), objTextureManager.getTexture("minimapframe").getHeight());
//MapFrame .setVisibility(true);
//MapFrame .setDepth(10.0F); // have tried different values here
}
From my understanding this should display the "minimapframe" texture in the upper left of the screen.
I am missing something?