32 lines
769 B
C
32 lines
769 B
C
/**
|
|
* Copyright (c) 2025 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#include "renderer.h"
|
|
#include "display/framebuffer/framebuffer.h"
|
|
|
|
// 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);
|
|
|
|
// 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();
|
|
// }
|