BlockGame/gl/Renderer.cpp

16 lines
319 B
C++
Raw Normal View History

2022-02-05 20:44:31 +00:00
//
// Created by lukas on 04.02.22.
//
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#include "Renderer.h"
void Renderer::render(const VertexArray& va, const IndexBuffer& ib, const Shader& s) {
va.Bind();
ib.Bind();
s.Bind();
glDrawElements(GL_TRIANGLES, ib.getcount(), GL_UNSIGNED_INT, nullptr);
}