Remove prints and change defines
This commit is contained in:
parent
1f2f2f9541
commit
ce3c986ad2
|
|
@ -1,5 +1,5 @@
|
||||||
#define BECS_MAX_ENTITIES 100000
|
#define BECS_MAX_ENTITIES 100000ULL
|
||||||
#define BECS_MAX_COMPONENTS 4
|
#define BECS_MAX_COMPONENTS 4ULL
|
||||||
#define BECS_IMPLEMENTATION
|
#define BECS_IMPLEMENTATION
|
||||||
#include "../../becs.h"
|
#include "../../becs.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
@ -109,7 +109,6 @@ void DrawCircleBatched(Vector2 *positions, float *radii, Color *colors, uint32_t
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rlEnd();
|
rlEnd();
|
||||||
printf("Drawing %d circles\n", count);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderSystemBatched(BECS_ECS *ecs, float dt, Position *pos, ParticleData *data, Vector2 *posArray, float *radArray, Color *colArray) {
|
void RenderSystemBatched(BECS_ECS *ecs, float dt, Position *pos, ParticleData *data, Vector2 *posArray, float *radArray, Color *colArray) {
|
||||||
|
|
@ -122,7 +121,6 @@ void RenderSystemBatched(BECS_ECS *ecs, float dt, Position *pos, ParticleData *d
|
||||||
colArray[batchCount]=(Color){255,255,255,(unsigned char)(alpha*255)};
|
colArray[batchCount]=(Color){255,255,255,(unsigned char)(alpha*255)};
|
||||||
batchCount++;
|
batchCount++;
|
||||||
}
|
}
|
||||||
printf("entityCount %u, batchCount: %u\n", entityCount, batchCount);
|
|
||||||
DrawCircleBatched(posArray, radArray, colArray, batchCount, 16);
|
DrawCircleBatched(posArray, radArray, colArray, batchCount, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -171,7 +169,7 @@ int main(void) {
|
||||||
// Spawn particle on mouse click
|
// Spawn particle on mouse click
|
||||||
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) {
|
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) {
|
||||||
Vector2 mousePos = GetMousePosition();
|
Vector2 mousePos = GetMousePosition();
|
||||||
for (uint32_t i = 0; i < 60; i++) {
|
for (uint32_t i = 0; i < 100; i++) {
|
||||||
SpawnParticle(&ecs, posID, velID, accID, dataID, mousePos.x, mousePos.y);
|
SpawnParticle(&ecs, posID, velID, accID, dataID, mousePos.x, mousePos.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue