Amoroso.
Passou por isto,
import java.applet.Applet;
import java.awt.*;
import go.*;
//
// GoSquare class containing data representing a square,
// and a render method for drawing the square.
//
class GoSquare extends GoInterface
{
GoTriangleFan data;
GoSquare()
{
data = new GoTriangleFan(4);
data.xyz(0, -0.5, -0.5, 0.0);
data.xyz(1, 0.5, -0.5, 0.0);
data.xyz(2, 0.5, 0.5, 0.0);
data.xyz(3, -0.5, 0.5, 0.0);
}
//
// Interface render method.
//
public void render()
{
go.clear(Go.IMAGE);
go.render(data);
swap();
}
}
//
// Java applet
//
public class square extends Applet
{
public void init()
{
setLayout(new GridLayout(1, 1));
add("Center", new GoSquare());
}
}
Foi complicado, mas consegui chegar lá.

<< Home