Unittests and demos update

-fixed bug in EntityManager
-added better support for non-betterC unittests
-added many new unittests
-slightly improved JUnit xml output
-fixed WASM compile script
-added new textures
-fixed model texture coordinaes in demos
-some minor bug fixes in demo
TODO: demos cpu usage in non-betterC mode
This commit is contained in:
Mergul 2020-04-16 22:16:20 +02:00
parent 46530ff45b
commit 84e04191c8
13 changed files with 453 additions and 51 deletions

View file

@ -138,6 +138,7 @@ struct CountSystem
struct EntitiesData
{
uint length;
const (Entity)[] entity;
}
bool onBegin()
@ -749,7 +750,7 @@ void loadGFX()
GfxConfig.materials = Mallocator.makeArray!Material(1);
GfxConfig.meshes = Mallocator.makeArray!Mesh(1);
float[16] vertices = [-0.5,-0.5, 0,0, -0.5,0.5, 0,1, 0.5,-0.5, 1,0, 0.5,0.5, 1,1];
float[16] vertices = [-0.5,-0.5, 0,1, -0.5,0.5, 0,0, 0.5,-0.5, 1,1, 0.5,0.5, 1,0];
GfxConfig.meshes[0].vertices = Mallocator.makeArray(vertices);
ushort[6] indices = [0,1,2,1,2,3];
GfxConfig.meshes[0].indices = Mallocator.makeArray(indices);