paterns_menu: list and display paterns
This commit is contained in:
@@ -106,7 +106,7 @@ int main(int ac, char **av) {
|
||||
context->render = std::make_shared<Render>(context->settings_menu->getCellSize());
|
||||
context->selection_menu = std::make_shared<gol::SelectionMenu>(context);
|
||||
context->selection = std::make_shared<gol::Selection>(context);
|
||||
context->paterns_menu = std::make_shared<gol::PaternsMenu>();
|
||||
context->paterns_menu = std::make_shared<gol::PaternsMenu>(context);
|
||||
|
||||
// Speed handling values
|
||||
float sim_speed = 1.0f;
|
||||
@@ -115,6 +115,7 @@ int main(int ac, char **av) {
|
||||
|
||||
// Setups
|
||||
context->rules->setup(context->world);
|
||||
context->paterns_menu->refresh();
|
||||
// Diplay generations
|
||||
while (!WindowShouldClose()) {
|
||||
// Frames shinenigans
|
||||
|
||||
Reference in New Issue
Block a user