Advertisement
Guest User

Untitled

a guest
Jun 9th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  IDWOS.Graphics.CreateSurface(function (renderer) {
  2.                     IDWOS.Filesystem.OpenFile('model', function (filehandle) {
  3.                         IDWOS.Graphics.LoadModel(filehandle, function (cubemodel) {
  4.                             IDWOS.Free(filehandle);
  5.                             var desktopTransform = new IDWOS.Graphics.Transform(new IDWOS.Graphics.Vector3D(3, 1.7, 1), new IDWOS.Graphics.Vector3D(0, 0, 0), new IDWOS.Graphics.Vector3D(0, 0, 0));
  6.                             IDWOS.Graphics.SetTransform(desktopTransform, function (transform) {
  7.                                 IDWOS.Graphics.Context2D.ToTexture(desktopBackground, function (desktoptexture) {
  8.                                     IDWOS.Graphics.SetCurrentTexture(desktoptexture, function (data) {
  9.                                         IDWOS.Graphics.DrawMeshes(cubemodel.meshes, function (data) {
  10.                                             IDWOS.ListenForInput(function (input) {
  11.                                                 desktopTransform.rotation.y += input.x * .01;
  12.                                                 desktopTransform.rotation.x += input.y * .01;
  13.                                                 IDWOS.Graphics.UpdateTransform(transform, desktopTransform);
  14.                                             });
  15.                                             return true;
  16.                                         });
  17.                                         return true;
  18.                                     });
  19.                                     return true;
  20.                                 });
  21.  
  22.                             });
  23.  
  24.                             return true;
  25.                         });
  26.                         return true;
  27.                     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement