mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-12 07:03:34 +00:00
almost first rendering, fixing renderer issues
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/10/04 21:53:12 by maldavid #+# #+# */
|
||||
/* Updated: 2022/12/18 03:41:53 by maldavid ### ########.fr */
|
||||
/* Updated: 2022/12/19 00:40:26 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <renderer/renderer.h>
|
||||
#include <renderer/buffers/vk_vbo.h>
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
@@ -26,11 +29,16 @@ namespace mlx
|
||||
inline int& get_id() noexcept { return _id; }
|
||||
inline SDL_Window* getNativeWindow() const noexcept { return _win; }
|
||||
|
||||
void pixel_put(int x, int y, int color) {}
|
||||
bool beginFrame();
|
||||
void endFrame();
|
||||
|
||||
void pixel_put(int x, int y, int color);
|
||||
|
||||
~MLX_Window();
|
||||
|
||||
private:
|
||||
std::unique_ptr<Renderer> _renderer;
|
||||
VBO _vbo;
|
||||
SDL_Window* _win = nullptr;
|
||||
int _id;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user