Change window title, add screenshot

This commit is contained in:
karl 2020-01-15 18:29:19 +01:00
parent d538ff64ec
commit f61d58a859
2 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,7 @@ int main() {
return -1;
/* Create a windowed mode window and its OpenGL context */
window = glfwCreateWindow(1280, 720, "Hello World", NULL, NULL);
window = glfwCreateWindow(1280, 720, "ECSGame", NULL, NULL);
if (!window) {
glfwTerminate();
return -1;
@ -133,6 +133,7 @@ int main() {
ground->assign<Transform>();
ground->assign<ObjMesh>(ObjMesh("Resources/Ground.obj", ObjMesh::Settings()));
ground->assign<Texture>("Resources/Grass.jpg", Texture::Settings(true, false));
ground->assign<Material>(1.0, 0.0);
ground->get<Transform>()->translate(glm::vec3(0.0f, 0.0f, 0.0f));
Entity *sun = world->create();

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 KiB