openglbook-samples
openglbook-samples copied to clipboard
Contains the source code samples for openglbook.com
I downloaded the code chapter.2.2.c, the compilation was smooth, but when I tried to execute the program it output the error "ERROR: Could not create the shaders: invalid operation". I...
Hi, I got an error when I called: glGenVertexArrays(1, &VaoId) I found that I had to add the following just before my glewInit(): glewExperimental = GL_TRUE; I was thinking that...
Congratulations for the OpenGLBook, it is a wonderful tool. I was reviewing the CreateProjectionMatrix (in the Utils.c file) and I found that the elements 11 and 14 are interchanged if...
In the last example chapter2.4 is needed to say that you need modify your RenderFunction from line: glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); to: glDrawArrays(GL_TRIANGLES, 0, 3);
Basically,you've used size_t to cache the sizeof values but glVertexAttribPointer needs GLsizei which means a downcast meaning possible loss of data.So we get this "warning C4267: 'function' : conversion from...
in the chapter two the following statement is missing from the initialize procedure glewExperimental = GL_TRUE; the statement is present in the downloadable source. without it the program crashes miserably
The paths passed into the `LoadShader` functions point to the wrong paths. ``` C ShaderIds[1] = LoadShader("./OpenGL 3.3/SimpleShader.fragment.3.3.glsl", GL_FRAGMENT_SHADER); ShaderIds[2] = LoadShader("./OpenGL 3.3/SimpleShader.vertex.3.3.glsl", GL_VERTEX_SHADER); ```
See the comments for issue #1 as well as [this post on StackOverflow](http://stackoverflow.com/questions/6645624/c-invalid-use-of-non-lvalue-array) for a description of the issue.