adding clear window

This commit is contained in:
kbz_8
2023-04-01 17:51:29 +02:00
parent 3a93881392
commit 534bea942c
13 changed files with 62 additions and 26 deletions

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/04 17:36:44 by maldavid #+# #+# */
/* Updated: 2023/04/01 15:40:30 by maldavid ### ########.fr */
/* Updated: 2023/04/01 17:50:22 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -57,6 +57,11 @@ namespace mlx
texture->render(*_renderer, x, y);
}
void MLX_Window::clear()
{
_renderer->getPixelPutPipeline().clear();
}
void MLX_Window::endFrame()
{
auto cmd_buff = _renderer->getActiveCmdBuffer().get();