mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Added gui_util
This commit is contained in:
parent
e3f7f7218f
commit
2055cff0be
11 changed files with 122 additions and 35 deletions
|
|
@ -81,11 +81,14 @@ void MenuScreen::draw(float delta) {
|
|||
uishader->use();
|
||||
uishader->uniformMatrix("u_projview", uicamera->getProjView());
|
||||
|
||||
uint width = Window::width;
|
||||
uint height = Window::height;
|
||||
|
||||
batch->begin();
|
||||
batch->texture(engine->getAssets()->getTexture("menubg"));
|
||||
batch->rect(0, 0,
|
||||
Window::width, Window::height, 0, 0, 0,
|
||||
UVRegion(0, 0, Window::width/64, Window::height/64),
|
||||
width, height, 0, 0, 0,
|
||||
UVRegion(0, 0, width/64, height/64),
|
||||
false, false, vec4(1.0f));
|
||||
batch->render();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue