Skip to content

Conversation

@RaulGalvez288
Copy link

Partial fix: #1546

Implemented width and height parameters for main and game start modes.

Still have to add vsync and window modes.

@RaulGalvez288 RaulGalvez288 marked this pull request as draft August 21, 2024 00:54
Copy link
Member

@heinezen heinezen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey thank you so much! I can already give you some feedback on the work you've done.

@RaulGalvez288
Copy link
Author

I did want to ask if changing the engine.cpp and engine.h was alright for this issue? or if I should just use Window::render like #1553

@heinezen
Copy link
Member

@RaulGalvez288 There is

struct window_settings {
// Width of the window in pixels.
size_t width = 1024;
// Height of the window in pixels.
size_t height = 768;
// Graphics API to use in the window's renderer.
graphics_api_t backend = graphics_api_t::DEFAULT;
// If true, enable vsync.
bool vsync = true;
// If true, enable debug logging for the selected backend.
bool debug = false;
};
if you want to use that.

@heinezen
Copy link
Member

@RaulGalvez288 Are you planning to continue working on this feature?

@heinezen
Copy link
Member

heinezen commented Dec 2, 2024

Closing for now as this MR has been inactive for a while.

@heinezen heinezen closed this Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI parameters for window settings

2 participants