summaryrefslogtreecommitdiff
path: root/src/main/game.c
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-18 11:46:26 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-18 11:46:26 +0200
commit24339d371c2194405dc151e8de0c319d976a78ba (patch)
tree8d2f2e2f18f81e89f275322de4267d50c352a11c /src/main/game.c
parent77a456b65b3d21213db9a5c88076f511b753e07c (diff)
downloadtris-24339d371c2194405dc151e8de0c319d976a78ba.tar.gz
tris-24339d371c2194405dc151e8de0c319d976a78ba.zip
Move the process of rendering line from game to engine
Diffstat (limited to 'src/main/game.c')
-rw-r--r--src/main/game.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/main/game.c b/src/main/game.c
index ea1a935..007bc8c 100644
--- a/src/main/game.c
+++ b/src/main/game.c
@@ -17,21 +17,13 @@
* along with Tris Game. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <GL/gl.h>
-
#include "engine/engine.h"
void
game_draw_field(int box_size, int x, int y)
{
- glLineWidth(5.0f);
- glBegin(GL_LINES);
- glColor3f(1.0f, 1.0f, 0.0f); /* Yellow */
-
engine_draw_line(box_size, y, box_size, box_size * 3);
engine_draw_line(box_size * 2, y, box_size * 2, box_size * 3);
engine_draw_line(x, box_size, box_size * 3, box_size);
engine_draw_line(x, box_size * 2, box_size * 3, box_size * 2);
-
- glEnd();
}