renderiranje - nazaj na singlethreaded ker me SDL ne mara :(
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -1,11 +1,20 @@
|
||||
#include <iostream>
|
||||
#include <window/window.hpp>
|
||||
#include <state/gamestate.hpp>
|
||||
#include <object/entity.hpp>
|
||||
#include <object/transform.hpp>
|
||||
#include <game/player.hpp>
|
||||
#include <renderer/renderer.hpp>
|
||||
#include <renderer/texture.hpp>
|
||||
|
||||
using namespace Game;
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
int main() {
|
||||
Window::Window window = Window::Window();
|
||||
window.init(1280, 720, "Game Window");
|
||||
|
||||
State::GameState::getInstance().addEntity(std::make_unique<AGame::Player>("Player", std::make_shared<Game::Renderer::Texture>("../resources/missing_texture.png", window.getRenderer()->getSDLRenderer()), Object::DEFAULT_TRANSFORM));
|
||||
|
||||
window.run();
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user