Skip to content

Commit

Permalink
remove build, enhance gitingore, add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
maksw2 committed Jun 20, 2024
1 parent a04535e commit 4918c73
Show file tree
Hide file tree
Showing 26 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vscode
bin/
Binary file removed bin/main.exe
Binary file not shown.
Binary file removed bin/obj/camera.o
Binary file not shown.
Binary file removed bin/obj/file.o
Binary file not shown.
Binary file removed bin/obj/indexBuffer.o
Binary file not shown.
Binary file removed bin/obj/input.o
Binary file not shown.
Binary file removed bin/obj/main.o
Binary file not shown.
Binary file removed bin/obj/mesh.o
Binary file not shown.
Binary file removed bin/obj/model.o
Binary file not shown.
Binary file removed bin/obj/shader.o
Binary file not shown.
Binary file removed bin/obj/texture.o
Binary file not shown.
Binary file removed bin/obj/transform.o
Binary file not shown.
Binary file removed bin/obj/vendor/glad/glad.o
Binary file not shown.
Binary file removed bin/obj/vendor/imgui/imgui.o
Binary file not shown.
Binary file removed bin/obj/vendor/imgui/imgui_demo.o
Binary file not shown.
Binary file removed bin/obj/vendor/imgui/imgui_draw.o
Binary file not shown.
Binary file removed bin/obj/vendor/imgui/imgui_impl_glfw.o
Binary file not shown.
Binary file removed bin/obj/vendor/imgui/imgui_impl_opengl3.o
Binary file not shown.
Binary file removed bin/obj/vendor/imgui/imgui_tables.o
Binary file not shown.
Binary file removed bin/obj/vendor/imgui/imgui_widgets.o
Binary file not shown.
Binary file removed bin/obj/vendor/stb/stb.o
Binary file not shown.
Binary file removed bin/obj/vertexArray.o
Binary file not shown.
Binary file removed bin/obj/vertexBuffer.o
Binary file not shown.
Binary file removed bin/obj/window.o
Binary file not shown.
1 change: 1 addition & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
make
8 changes: 8 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ int main(int argc, const char* argv[]) {
model.transform.rotate(1.0f, glm::vec3(0.0f, 1.0f, 0.0f));
}

if (window.input->getKey(VEGA_KEY_ESCAPE)) {
delete shader;
shader->destroy();
model.destroy();
window.destroy();
return 0;
}

model.render(shader, &camera);

window.checkErrors();
Expand Down

0 comments on commit 4918c73

Please sign in to comment.