Redid some log formatting.
This commit is contained in:
8
main.cpp
8
main.cpp
@@ -32,13 +32,13 @@ class MyWindow : public ReWindow::RWindow {
|
||||
|
||||
int main() {
|
||||
auto* window = new MyWindow("Test Window", 600, 480);
|
||||
DEBUG(std::format("New window {} created. Width: {} Height: {}", window->getTitle(), window->getWidth(), window->getHeight()));
|
||||
DEBUG(std::format("New window '{}' created. width={} height={}", window->getTitle(), window->getWidth(), window->getHeight()));
|
||||
|
||||
window->setRenderer(RenderingAPI::OPENGL);
|
||||
DEBUG(std::format("Rendering API OPENGL set for window {}", window->getTitle()));
|
||||
DEBUG(std::format("Rendering API OPENGL set for window '{}'", window->getTitle()));
|
||||
|
||||
window->Open();
|
||||
DEBUG(std::format("Opened window {}", window->getTitle()));
|
||||
DEBUG(std::format("Opened window '{}'", window->getTitle()));
|
||||
|
||||
// TODO: Cannot set flags until after window is open
|
||||
// Make this work somehow
|
||||
@@ -46,7 +46,7 @@ int main() {
|
||||
window->setFullscreen(false);
|
||||
window->setVsyncEnabled(false);
|
||||
window->setResizable(false);
|
||||
DEBUG(std::format("Window {} flags: IN_FOCUS={} FULLSCREEN={} RESIZEABLE={} VSYNC={} QUIT={}",
|
||||
DEBUG(std::format("Window '{}' flags: IN_FOCUS={} FULLSCREEN={} RESIZEABLE={} VSYNC={} QUIT={}",
|
||||
window->getTitle(),
|
||||
window->getFlag(RWindowFlags::IN_FOCUS),
|
||||
window->getFlag(RWindowFlags::FULLSCREEN),
|
||||
|
Reference in New Issue
Block a user