3 class MyApp : GuiApplication
11 position = Vector3D { 0, 0, -300 },
12 orientation = Euler { 0, 0, 0 },
19 orientation = Euler { pitch = 10, yaw = 30 };
22 class Hello3D : Window
26 borderStyle = sizable;
36 cube.Create(displaySystem);
37 cube.transform.scaling = { 100, 100, 100 };
38 cube.transform.orientation = Euler { 50, 30, 50 };
39 cube.UpdateTransform();
43 void OnResize(int w, int h)
45 camera.Setup(w, h, null);
49 void OnRedraw(Surface surface)
51 surface.Clear(depthBuffer);
52 display.SetLight(0, light);
53 display.SetCamera(surface, camera);
54 display.DrawObject(cube);
55 display.SetCamera(surface, null);