Index: samples/android_sample/assets/dart/main.dart |
=================================================================== |
--- samples/android_sample/assets/dart/main.dart (revision 16976) |
+++ samples/android_sample/assets/dart/main.dart (working copy) |
@@ -3,10 +3,10 @@ |
// BSD-style license that can be found in the LICENSE file. |
import "dart:math" as Math; |
-import "android_extension.dart"; |
+import "extension.dart"; |
+ //precision mediump float; |
vsm
2013/01/14 21:31:40
Delete the above.
gram
2013/01/16 01:49:16
Done.
|
const FRAGMENT_PROGRAM = """ |
- precision mediump float; |
const vec3 lightDir = vec3(0.577350269, 0.577350269, -0.577350269); |
varying vec3 vPosition; |
@@ -262,6 +262,7 @@ |
int width, height; |
drawScene() { |
+ log("In drawScene"); |
var x1 = Math.sin(t * 1.1) * 1.5; |
var y1 = Math.cos(t * 1.3) * 1.5; |
var z1 = Math.sin(t + Math.PI/3) * 1.5; |
@@ -317,6 +318,7 @@ |
if (t > Math.PI * 200) { |
t -= Math.PI * 200; |
} |
+ log("Done drawScene"); |
} |
setup(int w, int h) { |
@@ -325,21 +327,23 @@ |
gl.clearDepth(1.0); |
initBuffers(); |
resize(w, h); |
- playBackground("music/la_ere_gymnopedie.mp3"); |
+ //playBackground("music/la_ere_gymnopedie.mp3"); |
vsm
2013/01/14 21:31:40
Either delete or add TODO to restore. Nit: space
gram
2013/01/16 01:49:16
Done.
|
} |
resize(int w, int h) { |
+ log("in resize"); |
width = w; |
height = h; |
ratio = width / height; |
gl.viewport(0, 0, width, height); |
t -= 0.03; |
drawScene(); |
+ log("done resize"); |
} |
update() { |
drawScene(); |
- eglSwapBuffers(); |
+ glSwapBuffers(); |
} |
onMotionDown(num when, num x, num y) { |