Added VSync
This commit is contained in:
parent
8f130ada92
commit
22e68de4cd
5 changed files with 34 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
#include "DrawData.hpp"
|
||||
#include <SDL3/SDL_render.h>
|
||||
#include <chrono>
|
||||
#include <include/core/SkCanvas.h>
|
||||
#include "InputManager.hpp"
|
||||
|
|
@ -40,6 +41,7 @@ class MainProgram {
|
|||
bool fullscreen = false;
|
||||
SkColorType defaultColorType;
|
||||
SkAlphaType defaultAlphaType;
|
||||
int vsyncValue = 1;
|
||||
|
||||
float scale = 1.0f;
|
||||
|
||||
|
|
@ -91,6 +93,7 @@ class MainProgram {
|
|||
void load_config();
|
||||
|
||||
void init_net_library();
|
||||
void set_vsync_value(int vsyncValue);
|
||||
|
||||
std::filesystem::path homePath;
|
||||
std::filesystem::path configPath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue