mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
update Assets container - template-based now
This commit is contained in:
parent
848d121099
commit
d54b6b2e58
20 changed files with 68 additions and 143 deletions
|
|
@ -35,14 +35,14 @@ void MenuScreen::draw(float delta) {
|
|||
Window::setBgColor(glm::vec3(0.2f));
|
||||
|
||||
uicamera->setFov(Window::height);
|
||||
Shader* uishader = assets->getShader("ui");
|
||||
auto uishader = assets->get<Shader>("ui");
|
||||
uishader->use();
|
||||
uishader->uniformMatrix("u_projview", uicamera->getProjView());
|
||||
|
||||
uint width = Window::width;
|
||||
uint height = Window::height;
|
||||
|
||||
auto bg = assets->getTexture("gui/menubg");
|
||||
auto bg = assets->get<Texture>("gui/menubg");
|
||||
batch->begin();
|
||||
batch->texture(bg);
|
||||
batch->rect(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue