On Saturday, 3 September 2016 at 11:02:11 UTC, Lodovico Giaretta wrote:

//glGetShaderInfoLog(vertexShader, 512, null, infoLog);

glGetShaderInfoLog(vertexShader, 512, null, &infoLog[0]);

Thank you, I knew I had to do something like this!


//glfwSetKeyCallback(window, key_callback);

glfwSetKeyCallback(window, &key_callback);

I actually tried this before but it doesn't work. I get the following error:

Error: function pointer glfwSetKeyCallback (GLFWwindow*, extern (C) void function(GLFWwindow*, int, int, int, int) nothrow) is not callable using argument types (GLFWwindow*, void function(GLFWwindow* window, int key, int scancode, int action, int mode))


  • Using OpenGL Darren via Digitalmars-d-learn
    • Re: Using OpenGL Mike Parker via Digitalmars-d-learn
      • Re: Using OpenGL Darren via Digitalmars-d-learn
        • Re: Using OpenGL pineapple via Digitalmars-d-learn
          • Re: Using OpenG... Darren via Digitalmars-d-learn
            • Re: Using ... Lodovico Giaretta via Digitalmars-d-learn
              • Re: Us... Darren via Digitalmars-d-learn
                • Re... Lodovico Giaretta via Digitalmars-d-learn
                • Re... Mike Parker via Digitalmars-d-learn
                • Re... Darren via Digitalmars-d-learn
              • Re: Us... Mike Parker via Digitalmars-d-learn
                • Re... Darren via Digitalmars-d-learn
                • Re... Mike Parker via Digitalmars-d-learn
                • Re... Mike Parker via Digitalmars-d-learn
                • Re... Darren via Digitalmars-d-learn
                • Re... Nicholas Wilson via Digitalmars-d-learn
                • Re... Guillaume Piolat via Digitalmars-d-learn

Reply via email to