Changeset 37
- Timestamp:
- 07/09/07 21:56:19 (1 year ago)
- Files:
-
- trunk/src/demo1/main.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/demo1/main.d
r34 r37 57 57 CameraNode camera = new CameraNode(ship.getCameraSpot()); 58 58 camera.setView(2, 20000, 60, 0, 1); // wide angle view 59 Device.texture = camera.getTexture();60 59 60 Surface disp = new Surface(null); 61 disp.texture = camera.getTexture(); 62 disp.topLeft = Vec2f(0,0); 63 disp.bottomRight = Vec2f(1,1); 64 disp.map(); 65 66 67 61 68 // Music 62 69 SoundNode music = new SoundNode(camera); … … 103 110 scene.onUpdate(&update); 104 111 105 106 112 Device.resizeWindow(800, 600); 113 disp.recalculateTexture(); 114 107 115 // Rendering / Input Loop 108 116 int fps = 0;
