aboutsummaryrefslogtreecommitdiff
path: root/bin/tests/test_physics_2d.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-02 19:12:25 -0300
committerJuan Linietsky2017-01-02 19:12:25 -0300
commitce26eb74bca48f16e9a34b4eb1c34e50dfc5daae (patch)
tree5f9c387037d0142d40f7275575436483dc0a7237 /bin/tests/test_physics_2d.cpp
parentab4126f51061277e87b41c48b40e7b54942d4eca (diff)
parent45c5c89de961357a7042d9e1f063e288d7a510cf (diff)
downloadgodot-ce26eb74bca48f16e9a34b4eb1c34e50dfc5daae.tar.gz
godot-ce26eb74bca48f16e9a34b4eb1c34e50dfc5daae.tar.zst
godot-ce26eb74bca48f16e9a34b4eb1c34e50dfc5daae.zip
Diffstat (limited to 'bin/tests/test_physics_2d.cpp')
-rw-r--r--bin/tests/test_physics_2d.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/tests/test_physics_2d.cpp b/bin/tests/test_physics_2d.cpp
index 845e20b6c..f369c361d 100644
--- a/bin/tests/test_physics_2d.cpp
+++ b/bin/tests/test_physics_2d.cpp
@@ -85,7 +85,7 @@ class TestPhysics2DMainLoop : public MainLoop {
}
}
- Image image(32,2,0,Image::FORMAT_GRAYSCALE_ALPHA,pixels);
+ Image image(32,2,0,Image::FORMAT_LA8,pixels);
body_shape_data[Physics2DServer::SHAPE_SEGMENT].image=vs->texture_create_from_image(image);
@@ -113,7 +113,7 @@ class TestPhysics2DMainLoop : public MainLoop {
}
}
- Image image(32,32,0,Image::FORMAT_GRAYSCALE_ALPHA,pixels);
+ Image image(32,32,0,Image::FORMAT_LA8,pixels);
body_shape_data[Physics2DServer::SHAPE_CIRCLE].image=vs->texture_create_from_image(image);
@@ -141,7 +141,7 @@ class TestPhysics2DMainLoop : public MainLoop {
}
}
- Image image(32,32,0,Image::FORMAT_GRAYSCALE_ALPHA,pixels);
+ Image image(32,32,0,Image::FORMAT_LA8,pixels);
body_shape_data[Physics2DServer::SHAPE_RECTANGLE].image=vs->texture_create_from_image(image);
@@ -173,7 +173,7 @@ class TestPhysics2DMainLoop : public MainLoop {
}
}
- Image image(32,64,0,Image::FORMAT_GRAYSCALE_ALPHA,pixels);
+ Image image(32,64,0,Image::FORMAT_LA8,pixels);
body_shape_data[Physics2DServer::SHAPE_CAPSULE].image=vs->texture_create_from_image(image);
@@ -381,7 +381,7 @@ public:
RID vp = vs->viewport_create();
canvas = vs->canvas_create();
vs->viewport_attach_canvas(vp,canvas);
- vs->viewport_attach_to_screen(vp);
+ vs->viewport_attach_to_screen(vp,Rect2(Vector2(),OS::get_singleton()->get_window_size()));
Matrix32 smaller;
//smaller.scale(Vector2(0.6,0.6));
//smaller.elements[2]=Vector2(100,0);