draw basic field over player when player is attacking

This commit is contained in:
2024-12-28 04:06:27 +00:00
parent fccbb15f15
commit 5f437ae76d
5 changed files with 162 additions and 6 deletions

View File

@@ -13,6 +13,8 @@ unsigned int DYNAMIC_DRAW = GL_DYNAMIC_DRAW;
// OpenGL functions used below
void loadGlad() {
gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
}
void viewport(int width, int height) {