Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IDWOS.Graphics.CreateSurface(function (renderer) {
- IDWOS.Filesystem.OpenFile('model', function (filehandle) {
- IDWOS.Graphics.LoadModel(filehandle, function (cubemodel) {
- IDWOS.Free(filehandle);
- 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));
- IDWOS.Graphics.SetTransform(desktopTransform, function (transform) {
- IDWOS.Graphics.Context2D.ToTexture(desktopBackground, function (desktoptexture) {
- IDWOS.Graphics.SetCurrentTexture(desktoptexture, function (data) {
- IDWOS.Graphics.DrawMeshes(cubemodel.meshes, function (data) {
- IDWOS.ListenForInput(function (input) {
- desktopTransform.rotation.y += input.x * .01;
- desktopTransform.rotation.x += input.y * .01;
- IDWOS.Graphics.UpdateTransform(transform, desktopTransform);
- });
- return true;
- });
- return true;
- });
- return true;
- });
- });
- return true;
- });
- return true;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement