mumin16 wrote on Monday, February 04, 2013:
I want to use opengl es(angle project-1823 revision) with vs2010 in win7.
I use the last revision of glfw3.
But glfwCreateWindow is unsuccessful.
my code:
// Include GLFW
#include <GL//glfw3.h>
#pragma comment(lib,“glfw3.lib”)///last revision
#pragma comment(lib,“libEGL.lib”)//angle project 1823(last revision)
#pragma comment(lib,“libGLESv2.lib”)//angle project 1823
int main(){
// Initialise GLFW- ok
if( !glfwInit() )
{
fprintf( stderr, “Failed to initialize GLFW.\n” );
return -1;
}
//set hints - ok
glfwDefaultWindowHints();
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
//create window - NOOOOOO
if( !glfwCreateWindow ( 1024, 768, "engine",0,0))
{
fprintf( stderr, "Failed to create GLFW window.\n" );
glfwTerminate();
return -1;
}
…
…
…