У меня возникли проблемы с запуском:
основной файл:
//
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "methantantis.h"
static unsigned int CompileShader( unsigned int type, const std::string source){
unsigned int id = glCreateShader(type);
const char* src = source.c_str();
glShaderSource(id, 1, &src, nullptr);
glCompileShader(id);
int result;
glGetShaderiv(id, GL_COMPILE_STATUS, &result);
if (result == GL_FALSE){
int length;
glGetShaderiv(id, GL_INFO_LOG_LENGTH, &length);
char* message = (char*)alloca(length * sizeof(char));
glGetShaderInfoLog(id, length, &length, message);
std::cout
Подробнее здесь: https://stackoverflow.com/questions/798 ... nt-display