Made a big mess of the codebase
This commit is contained in:
@@ -6,29 +6,27 @@
|
||||
*/
|
||||
|
||||
#include "renderer.h"
|
||||
#include "display/mesh/meshrenderer.h"
|
||||
#include "scene/node.h"
|
||||
#include "display/framebuffer/framebuffer.h"
|
||||
|
||||
void rendererRender(const ecsid_t camera) {
|
||||
if(camera == -1) return;
|
||||
// void rendererRender(const ecsid_t camera) {
|
||||
// if(camera == -1) return;
|
||||
|
||||
// Get the meshes.
|
||||
uint32_t meshCount;
|
||||
ecsid_t meshes[ECS_ENTITY_COUNT_MAX];
|
||||
ecsid_t id;
|
||||
meshCount = meshRendererGetAll(meshes);
|
||||
// // Get the meshes.
|
||||
// uint32_t meshCount;
|
||||
// ecsid_t meshes[ECS_ENTITY_COUNT_MAX];
|
||||
// ecsid_t id;
|
||||
// meshCount = meshRendererGetAll(meshes);
|
||||
|
||||
frameBufferBind(NULL);
|
||||
frameBufferClear(
|
||||
FRAMEBUFFER_CLEAR_COLOR | FRAMEBUFFER_CLEAR_DEPTH,
|
||||
COLOR_CORNFLOWER_BLUE
|
||||
);
|
||||
cameraPush(camera);
|
||||
for(uint32_t i = 0; i < meshCount; i++) {
|
||||
id = meshes[i];
|
||||
nodeMatrixPush(id);
|
||||
meshRendererDraw(id);
|
||||
}
|
||||
cameraPop();
|
||||
}
|
||||
// frameBufferBind(NULL);
|
||||
// frameBufferClear(
|
||||
// FRAMEBUFFER_CLEAR_COLOR | FRAMEBUFFER_CLEAR_DEPTH,
|
||||
// COLOR_CORNFLOWER_BLUE
|
||||
// );
|
||||
// cameraPush(camera);
|
||||
// for(uint32_t i = 0; i < meshCount; i++) {
|
||||
// id = meshes[i];
|
||||
// nodeMatrixPush(id);
|
||||
// meshRendererDraw(id);
|
||||
// }
|
||||
// cameraPop();
|
||||
// }
|
Reference in New Issue
Block a user