Changeset 37

Show
Ignore:
Timestamp:
07/09/07 21:56:19 (1 year ago)
Author:
Deformative
Message:

Oops

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/demo1/main.d

    r34 r37  
    5757    CameraNode camera = new CameraNode(ship.getCameraSpot()); 
    5858    camera.setView(2, 20000, 60, 0, 1); // wide angle view 
    59     Device.texture = camera.getTexture(); 
    6059 
     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     
    6168    // Music 
    6269    SoundNode music = new SoundNode(camera); 
     
    103110    scene.onUpdate(&update); 
    104111 
    105  
    106  
     112    Device.resizeWindow(800, 600); 
     113    disp.recalculateTexture(); 
     114     
    107115    // Rendering / Input Loop 
    108116    int fps = 0;