primera versio de menu
This commit is contained in:
18
source/core/rendering/menu.hpp
Normal file
18
source/core/rendering/menu.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
namespace Menu {
|
||||
void init();
|
||||
void destroy();
|
||||
|
||||
[[nodiscard]] auto isOpen() -> bool;
|
||||
void toggle();
|
||||
void close();
|
||||
|
||||
// Pinta el menú sobre el buffer ARGB — cridat des d'Overlay::render si està obert
|
||||
void render(Uint32* pixel_data);
|
||||
|
||||
// Gestió d'input — cridat des del Director en KEY_DOWN
|
||||
void handleKey(SDL_Scancode sc);
|
||||
} // namespace Menu
|
||||
Reference in New Issue
Block a user