This commit is contained in:
MihailRis
2024-02-25 22:44:37 +03:00
parent d189bdc107
commit e06350915e
9 changed files with 284 additions and 236 deletions
+7 -5
View File
@@ -76,11 +76,13 @@ void MenuScreen::draw(float delta) {
batch->begin();
batch->texture(engine->getAssets()->getTexture("gui/menubg"));
batch->rect(0, 0,
width, height, 0, 0, 0,
UVRegion(0, 0, width/64, height/64),
false, false, glm::vec4(1.0f));
batch->render();
batch->rect(
0, 0,
width, height, 0, 0, 0,
UVRegion(0, 0, width/64, height/64),
false, false, glm::vec4(1.0f)
);
batch->flush();
}
static bool backlight;