Does any one can code OpenGL4.0 program on windows platform?
Can you help me how to program OpenGL4.0 environment in visual studio 2008/2010?
Type: Posts; User: water
Does any one can code OpenGL4.0 program on windows platform?
Can you help me how to program OpenGL4.0 environment in visual studio 2008/2010?
Hi, i have a problem when I use #version 400 shader with glutInitContextVersion(4, 0), my glClearColor(0.0, 0.0, 0.0, 0.0);
the screen is black; but when I change to glutInitContextVersion(3, 3),...
I find the fininal revolustion: g++ main_draw.cpp main.cpp -o main -lGL -lglfw -DGL_GLEXT_PROTOTYPES,
but I don't quite understand this -DGL_GLEXT_PROTOTYPES
#include "main_draw.h"
char * main_draw::read_source_code(const char *file_path)
{
FILE *fp = fopen(file_path, "rt");
if(NULL == fp){
return NULL;
}
char a_char;
int size = 1;
I'm a beginer of openGL using glfw in g++, when I use g++ link with OpenGL Igot all of the openGL functions such as glCreateShader Unimplemented,
What can I do with "g++ link with '-lGL'"....