Working on refactoring

This commit is contained in:
Vladislav Khorev committed 2026-03-07 20:03:16 +03:00
1 parent 928600acd4
commit 3c2c06ca40
8 files changed
+36 -36

No files matched your search

+1 -6
View File
@@ -4,6 +4,7 @@
#include <fstream>
#include <iostream>
#include <algorithm>
#include "GameConstants.h"
namespace ZL {
@@ -61,8 +62,6 @@ namespace ZL {
}
if (!(*tex)) return;
static const std::string textureUniformName = "Texture";
renderer.PushMatrix();
renderer.TranslateMatrix({ animOffsetX, animOffsetY, 0.0f });
renderer.ScaleMatrix({ animScaleX, animScaleY, 1.0f });
@@ -140,8 +139,6 @@ namespace ZL {
}
void UiSlider::draw(Renderer& renderer) const {
static const std::string textureUniformName = "Texture";
renderer.RenderUniform1i(textureUniformName, 0);
if (texTrack) {
glBindTexture(GL_TEXTURE_2D, texTrack->getTexID());
@@ -186,8 +183,6 @@ namespace ZL {
void UiStaticImage::draw(Renderer& renderer) const {
if (!texture) return;
static const std::string textureUniformName = "Texture";
renderer.RenderUniform1i(textureUniformName, 0);
glBindTexture(GL_TEXTURE_2D, texture->getTexID());
renderer.DrawVertexRenderStruct(mesh);