Wii Opera SDK v2.0: New Draw.drawScene and huge accelerations
By geekrecon. Sunday, 3. February 2008, 07:22:56
null = Draw.drawScene(2DPoly[][x1,y1,x2,y2,x3,y3,r,g,b], style);
"2DPoly[][x1,y1,x2,y2,x3,y3,r,g,b]" is the same argument structure as the return from Draw.getTranslation();
"style" can be a combination of Draw.WIREFRAME (1) or Draw.FILL (2). Those values can be added (+) or bitwise ORed (|) to combine the two values.
Here's an example of a frame drawn to a scene:
ThreeDee.LoadMesh(mesh); ThreeDee.Backface(); ThreeDee.Shade(); ThreeDee.ZSort(); Draw.drawScene(ThreeDee.GetTranslation(), Draw.WIREFRAME | Draw.FILL);