Change Default Resolution.
This commit is contained in:
@@ -120,6 +120,8 @@ public:
|
||||
|
||||
void ZoomIn(float rate);
|
||||
|
||||
void ZoomInTowards(const Vector2 &dir, float rate);
|
||||
|
||||
void ZoomOut(float rate);
|
||||
|
||||
/// Performs a logic update.
|
||||
|
4
main.cpp
4
main.cpp
@@ -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.
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user