1
votes

I've been having a problem trying to get OpenGL 3.2 to work and after spending a few hours trying to figure out what was wrong I realized that it does not support glBegin. I use that command probably about 50-100 times in my engine to draw full screen quads and GUI elements. So what is a simple way to just draw a rectangle with OpenGL 3.2? Do I actually have to create a vertex buffer, fragment shader, and vertex shader to do something so simple?!

1
If you want to use the modern api then yeah, you will have to create vertex and fragment shaders... The fixed pipeline is gone, unless you use the compatibility extension.K-ballo
You can always revert to compatibility profile but then you gain nothing in using the newer version.Also there is no point getting stuff with Fixed pipeline.The programmable pipeline is not the future , it already here.Michael IV

1 Answers

5
votes

Do I actually have to create a vertex buffer, fragment shader, and vertex shader to do something so simple?!

Yep, no freebies in Core profile.