style: renomenat InputType a InputActions

This commit is contained in:
2025-03-16 18:57:08 +01:00
parent 1b38a5a581
commit 43a1f1a8f6
13 changed files with 199 additions and 199 deletions

View File

@@ -88,10 +88,10 @@ void Screen::renderScreen()
}
// Establece el modo de video
void Screen::setVideoMode(ScreenVideoMode video_mode)
void Screen::setVideoMode(ScreenVideoMode mode)
{
// Actualiza las opciones
options.video.mode = video_mode;
options.video.mode = mode;
// Configura el modo de pantalla
Uint32 flags = SDL_GetWindowFlags(window_);
@@ -316,17 +316,17 @@ void Screen::loadShaders()
{
const std::string GLSL_FILE = param.game.game_area.rect.h == 256 ? "crtpi_256.glsl" : "crtpi_240.glsl";
std::ifstream f(Asset::get()->get(GLSL_FILE).c_str());
shaderSource = std::string((std::istreambuf_iterator<char>(f)), std::istreambuf_iterator<char>());
shader_source_ = std::string((std::istreambuf_iterator<char>(f)), std::istreambuf_iterator<char>());
}
// Inicializa los shaders
void Screen::initShaders()
{
if (shaderSource.empty())
if (shader_source_.empty())
{
loadShaders();
}
shader::init(window_, game_canvas_, shaderSource);
shader::init(window_, game_canvas_, shader_source_);
}
// Calcula el tamaño de la ventana