glfwCreateWindow is unsuccessful in glfw3!

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;
}



elmindreda wrote on Tuesday, March 19, 2013:

Did you compile GLFW to use EGL?

Did you set an error callback?

osii-dev wrote on Thursday, September 18, 2014:

For reference: https://github.com/glfw/glfw/issues/343

elmindreda wrote on Thursday, September 18, 2014:

ANGLE does not support OpenGL ES 1.0.

elmindreda wrote on Thursday, September 18, 2014:

Did you set an error callback?

elmindreda wrote on Thursday, September 18, 2014:

Zero is not a valid window size.