Change Default Resolution.

This commit is contained in:
2025-05-09 12:54:30 -05:00
parent c80ce428cc
commit 6e650db940
3 changed files with 6 additions and 3 deletions

View File

@@ -120,6 +120,8 @@ public:
void ZoomIn(float rate);
void ZoomInTowards(const Vector2 &dir, float rate);
void ZoomOut(float rate);
/// Performs a logic update.

View File

@@ -8,8 +8,8 @@
int main(int argc, char** argv) {
ReWindow::Logger::Debug.EnableConsole(false);
int default_app_width = 1080;
int default_app_height = 768;
int default_app_width = 1660;
int default_app_height = 900;
// TODO: Create AppConfig struct and pass to constructor.

View File

@@ -16,7 +16,6 @@ void FractalInspectorApp::OnShaderLoadFail(const std::string& type, const std::s
FractalInspectorApp::FractalInspectorApp(int width, int height):
OpenGLWindow("FractalInspector",width, height, GL_VER_MAJOR, GL_VER_MINOR) {
Shader::OnCompilationErrorMessage += [this] (auto... args) { OnShaderLoadFail(args...);};
u_time = 0;
}
@@ -414,6 +413,8 @@ void FractalInspectorApp::ZoomIn(float rate) {
u_translation -= Vector2(0.5f, 0.5f)*rate;
}
void FractalInspectorApp::ZoomInTowards(const Vector2& dir, float rate) {}
void FractalInspectorApp::ZoomOut(float rate) {
rate = rate * u_scale;