mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
world render refactor
This commit is contained in:
parent
dda9c40c41
commit
6c70bb531b
5 changed files with 27 additions and 43 deletions
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue