Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial 2 should make clear you need shaders for the white triangle too #64

Open
fabio-t opened this issue Mar 10, 2018 · 0 comments
Open

Comments

@fabio-t
Copy link

fabio-t commented Mar 10, 2018

In tutorial 2, at this point we are supposed to run code and see a white triangle:

http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/#drawing-our-triangle

However, we'll only see a black screen if using the core profile. That's because shaders are mandatory there.

Maybe it could be made clear in the text that, with these settings (used in Tutorial 1) we won't actually see the white triangle?

glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); // We want OpenGL 3.3
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // We don't want the old OpenGL 

As an absolute beginner, I was not quite sure why the triangle wasn't drawn, so I didn't even attempt to go to the next step, shaders. Just spent far too long tweaking options and searching the web for a solution.. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant