Merge pull request #1444 from abarth/float64
Moves from vector_math to vector_math_64
This commit is contained in:
@@ -6,7 +6,7 @@ import 'dart:sky' as sky;
|
||||
|
||||
import 'package:sky/rendering.dart';
|
||||
import 'package:skysprites/skysprites.dart';
|
||||
import 'package:vector_math/vector_math.dart';
|
||||
import 'package:vector_math/vector_math_64.dart';
|
||||
|
||||
part 'custom_actions.dart';
|
||||
part 'explosions.dart';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'dart:math' as math;
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:vector_math/vector_math.dart';
|
||||
import 'package:vector_math/vector_math_64.dart';
|
||||
|
||||
main() {
|
||||
runTest();
|
||||
|
||||
@@ -64,7 +64,7 @@ sky.Picture paint(sky.Rect paintBounds) {
|
||||
sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
|
||||
final double devicePixelRatio = sky.view.devicePixelRatio;
|
||||
sky.Rect sceneBounds = new sky.Rect.fromLTWH(0.0, 0.0, sky.view.width * devicePixelRatio, sky.view.height * devicePixelRatio);
|
||||
Float32List deviceTransform = new Float32List(16)
|
||||
Float64List deviceTransform = new Float64List(16)
|
||||
..[0] = devicePixelRatio
|
||||
..[5] = devicePixelRatio
|
||||
..[10] = 1.0
|
||||
|
||||
@@ -23,7 +23,7 @@ sky.Picture paint(sky.Rect paintBounds) {
|
||||
sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
|
||||
final double devicePixelRatio = sky.view.devicePixelRatio;
|
||||
sky.Rect sceneBounds = new sky.Rect.fromLTWH(0.0, 0.0, sky.view.width * devicePixelRatio, sky.view.height * devicePixelRatio);
|
||||
Float32List deviceTransform = new Float32List(16)
|
||||
Float64List deviceTransform = new Float64List(16)
|
||||
..[0] = devicePixelRatio
|
||||
..[5] = devicePixelRatio
|
||||
..[10] = 1.0
|
||||
|
||||
@@ -218,7 +218,7 @@ sky.Picture paint(sky.Rect paintBounds) {
|
||||
sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
|
||||
final double devicePixelRatio = sky.view.devicePixelRatio;
|
||||
sky.Rect sceneBounds = new sky.Rect.fromLTWH(0.0, 0.0, sky.view.width * devicePixelRatio, sky.view.height * devicePixelRatio);
|
||||
Float32List deviceTransform = new Float32List(16)
|
||||
Float64List deviceTransform = new Float64List(16)
|
||||
..[0] = devicePixelRatio
|
||||
..[5] = devicePixelRatio
|
||||
..[10] = 1.0
|
||||
|
||||
@@ -32,7 +32,7 @@ sky.Picture paint(sky.Rect paintBounds) {
|
||||
new sky.Paint()..setShader(yellowBlue));
|
||||
|
||||
// Scale x and y by 0.5.
|
||||
var scaleMatrix = new Float32List.fromList([
|
||||
var scaleMatrix = new Float64List.fromList([
|
||||
0.5, 0.0, 0.0, 0.0,
|
||||
0.0, 0.5, 0.0, 0.0,
|
||||
0.0, 0.0, 1.0, 0.0,
|
||||
|
||||
@@ -39,7 +39,7 @@ sky.Picture paint(sky.Rect paintBounds) {
|
||||
sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
|
||||
final double devicePixelRatio = sky.view.devicePixelRatio;
|
||||
sky.Rect sceneBounds = new sky.Rect.fromLTWH(0.0, 0.0, sky.view.width * devicePixelRatio, sky.view.height * devicePixelRatio);
|
||||
Float32List deviceTransform = new Float32List(16)
|
||||
Float64List deviceTransform = new Float64List(16)
|
||||
..[0] = devicePixelRatio
|
||||
..[5] = devicePixelRatio
|
||||
..[10] = 1.0
|
||||
|
||||
@@ -31,7 +31,7 @@ sky.Picture paint(sky.Rect paintBounds, double delta) {
|
||||
sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
|
||||
final double devicePixelRatio = sky.view.devicePixelRatio;
|
||||
sky.Rect sceneBounds = new sky.Rect.fromLTWH(0.0, 0.0, sky.view.width * devicePixelRatio, sky.view.height * devicePixelRatio);
|
||||
Float32List deviceTransform = new Float32List(16)
|
||||
Float64List deviceTransform = new Float64List(16)
|
||||
..[0] = devicePixelRatio
|
||||
..[5] = devicePixelRatio
|
||||
..[10] = 1.0
|
||||
|
||||
@@ -44,7 +44,7 @@ sky.Picture paint(sky.Rect paintBounds, double delta) {
|
||||
sky.Scene composite(sky.Picture picture, sky.Rect paintBounds) {
|
||||
final double devicePixelRatio = sky.view.devicePixelRatio;
|
||||
sky.Rect sceneBounds = new sky.Rect.fromLTWH(0.0, 0.0, sky.view.width * devicePixelRatio, sky.view.height * devicePixelRatio);
|
||||
Float32List deviceTransform = new Float32List(16)
|
||||
Float64List deviceTransform = new Float64List(16)
|
||||
..[0] = devicePixelRatio
|
||||
..[5] = devicePixelRatio
|
||||
..[10] = 1.0
|
||||
|
||||
@@ -27,7 +27,7 @@ void beginFrame(double timeStamp) {
|
||||
// composite
|
||||
final double devicePixelRatio = sky.view.devicePixelRatio;
|
||||
sky.Rect sceneBounds = new sky.Rect.fromLTWH(0.0, 0.0, sky.view.width * devicePixelRatio, sky.view.height * devicePixelRatio);
|
||||
Float32List deviceTransform = new Float32List(16)
|
||||
Float64List deviceTransform = new Float64List(16)
|
||||
..[0] = devicePixelRatio
|
||||
..[5] = devicePixelRatio
|
||||
..[10] = 1.0
|
||||
|
||||
Reference in New Issue
Block a user