Change window title, add screenshot
This commit is contained in:
parent
d538ff64ec
commit
f61d58a859
3
main.cpp
3
main.cpp
@ -44,7 +44,7 @@ int main() {
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Create a windowed mode window and its OpenGL context */
|
/* 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) {
|
if (!window) {
|
||||||
glfwTerminate();
|
glfwTerminate();
|
||||||
return -1;
|
return -1;
|
||||||
@ -133,6 +133,7 @@ int main() {
|
|||||||
ground->assign<Transform>();
|
ground->assign<Transform>();
|
||||||
ground->assign<ObjMesh>(ObjMesh("Resources/Ground.obj", ObjMesh::Settings()));
|
ground->assign<ObjMesh>(ObjMesh("Resources/Ground.obj", ObjMesh::Settings()));
|
||||||
ground->assign<Texture>("Resources/Grass.jpg", Texture::Settings(true, false));
|
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));
|
ground->get<Transform>()->translate(glm::vec3(0.0f, 0.0f, 0.0f));
|
||||||
|
|
||||||
Entity *sun = world->create();
|
Entity *sun = world->create();
|
||||||
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 594 KiB |
Loading…
x
Reference in New Issue
Block a user