glfwCreateWindow is unsuccessful in glfw3!

Using GLFW
mumin16
2013-02-04
2014-09-18
  • mumin16

    mumin16 - 2013-02-04

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

    ...
    ...
    ..

     
  • Camilla Löwy

    Camilla Löwy - 2013-03-19

    Did you compile GLFW to use EGL?

    Did you set an error callback?

     
  • Camilla Löwy

    Camilla Löwy - 2014-09-18

    ANGLE does not support OpenGL ES 1.0.

     
  • Camilla Löwy

    Camilla Löwy - 2014-09-18

    Did you set an error callback?

     
  • Camilla Löwy

    Camilla Löwy - 2014-09-18

    Zero is not a valid window size.