world render refactor

This commit is contained in:
MihailRis
2023-11-19 00:22:12 +03:00
parent dda9c40c41
commit 6c70bb531b
5 changed files with 27 additions and 43 deletions
+4 -8
View File
@@ -1,10 +1,3 @@
/*
* LineBatch.cpp
*
* Created on: Jun 25, 2020
* Author: MihailRis
*/
#include "LineBatch.h"
#include "Mesh.h"
@@ -67,7 +60,6 @@ void LineBatch::box(float x, float y, float z, float w, float h, float d,
line(x+w, y+h, z-d, x+w, y+h, z+d, r,g,b,a);
}
#include <iostream>
void LineBatch::render(){
if (index == 0)
return;
@@ -75,3 +67,7 @@ void LineBatch::render(){
mesh->draw(GL_LINES);
index = 0;
}
void LineBatch::lineWidth(float width) {
glLineWidth(width);
}