mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-12 15:13:34 +00:00
adding clear window
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/10/05 16:30:19 by maldavid #+# #+# */
|
||||
/* Updated: 2022/12/18 23:09:55 by maldavid ### ########.fr */
|
||||
/* Updated: 2023/04/01 16:46:13 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/10/04 21:53:12 by maldavid #+# #+# */
|
||||
/* Updated: 2023/04/01 15:27:51 by maldavid ### ########.fr */
|
||||
/* Updated: 2023/04/01 17:26:18 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace mlx
|
||||
inline SDL_Window* getNativeWindow() const noexcept { return _win; }
|
||||
|
||||
bool beginFrame();
|
||||
void clear();
|
||||
void endFrame();
|
||||
|
||||
void pixel_put(int x, int y, int color);
|
||||
|
||||
Reference in New Issue
Block a user