uitextbox update
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <renderer/renderer.hpp>
|
||||
#include <renderer/texture.hpp>
|
||||
#include <renderer/font.hpp>
|
||||
#include <object/ui/uitextbox.hpp>
|
||||
#include <game/agame/sampletextbox.hpp>
|
||||
#include <object/components/boxcollider.hpp>
|
||||
|
||||
@@ -27,6 +28,9 @@ int main() {
|
||||
player->addComponent<Object::Components::BoxCollider>();
|
||||
//State::GameState::getInstance().addEntity(std::make_unique<AGame::Player>("Player2", std::make_shared<Game::Renderer::Font>("../resources/roboto.ttf", window.getRenderer()->getSDLRenderer(), 128, "Roboto"), t1));
|
||||
|
||||
// Sample textbox
|
||||
State::GameState::getInstance().addEntity(std::make_unique<AGame::SampleTextBox>("Sample Text Box", std::make_shared<Game::Renderer::Font>("../resources/roboto.ttf", window.getRenderer()->getSDLRenderer(), 48, "Roboto"), Object::DEFAULT_TRANSFORM, 640.f, 360.f));
|
||||
|
||||
window.run();
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user