BlockGame/blocks/RenderBase.cpp

49 lines
812 B
C++
Raw Normal View History

2022-02-05 20:44:31 +00:00
//
// Created by lukas on 05.02.22.
//
#include "RenderBase.h"
//template<class T>
//RenderBase<T>::RenderBase() {
//
//}
//template<class T>
//void RenderBase<T>::render() {
// r.render(*va, *ib);
//}
//template<class T>
//void RenderBase<T>::init() {
// s = setShader();
// va = setVertexArray();
// ib = setIndexBuffer();
//}
//template<class T>
//void RenderBase<T>::deinit() {
//
//}
//template<class T>
//unsigned RenderBase<T>::getMVPhandle() {
// return s.getUniformHandle("MVP");
//}
//template<class T>
//unsigned RenderBase<T>::getUniformhandle(std::string name) {
// return s.getUniformHandle(std::move(name));
//}
//template<class T>
//T *RenderBase<T>::getInstance() {
// if (instance == nullptr) {
// instance = new T();
// }
// return instance;
//
//}