diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-01-11 00:52:51 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-01-11 00:52:51 -0300 |
commit | bc26f905817945300d397696330d1ab04a1af33c (patch) | |
tree | d06338399c8ea410042f6631fb3db3efcc100b05 /main/tests/test_render.cpp | |
parent | 710692278d1353aad08bc7bceb655afc1d6c950c (diff) | |
download | redot-engine-bc26f905817945300d397696330d1ab04a1af33c.tar.gz |
Type renames:
Matrix32 -> Transform2D
Matrix3 -> Basis
AABB -> Rect3
RawArray -> PoolByteArray
IntArray -> PoolIntArray
FloatArray -> PoolFloatArray
Vector2Array -> PoolVector2Array
Vector3Array -> PoolVector3Array
ColorArray -> PoolColorArray
Diffstat (limited to 'main/tests/test_render.cpp')
-rw-r--r-- | main/tests/test_render.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/tests/test_render.cpp b/main/tests/test_render.cpp index 51e1366073..3049ba7d45 100644 --- a/main/tests/test_render.cpp +++ b/main/tests/test_render.cpp @@ -95,7 +95,7 @@ public: static const int s = 20; for(int i=0;i<s;i++) { - Matrix3 rot(Vector3(0,1,0),i*Math_PI/s); + Basis rot(Vector3(0,1,0),i*Math_PI/s); for(int j=0;j<s;j++) { Vector3 v; @@ -179,7 +179,7 @@ public: vs->viewport_set_active(viewport,true); vs->viewport_attach_camera( viewport, camera ); vs->viewport_set_scenario( viewport, scenario ); - vs->camera_set_transform(camera, Transform( Matrix3(), Vector3(0,3,30 ) ) ); + vs->camera_set_transform(camera, Transform( Basis(), Vector3(0,3,30 ) ) ); vs->camera_set_perspective( camera, 60, 0.1, 1000); @@ -232,7 +232,7 @@ public: for(List<InstanceInfo>::Element *E=instances.front();E;E=E->next()) { - Transform pre( Matrix3(E->get().rot_axis, ofs), Vector3() ); + Transform pre( Basis(E->get().rot_axis, ofs), Vector3() ); vs->instance_set_transform( E->get().instance, pre * E->get().base ); /* if( !E->next() ) { |