Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Suggestion: Inline OpenGL Code

edited August 2013 in Suggestions Posts: 2,820

One of the coolest features of another programing environment I use to use (BlitzMax) was that you could write OpenGL code right inside the script. So, for instance, you could write:

GLGraphics 640,480 While Not KeyHit( KEY_ESCAPE ) glClear GL_COLOR_BUFFER_BIT glBegin GL_TRIANGLES glVertex2i 0,1 glVertex2i 1,-1 glVertex2i -1,-1 glEnd Flip Wend

While shaders are useful, they can't do everything (easily). We still have to create a mesh to do everything with them. With this, we could write almost any graphic effect without meshes whenever we wanted to.


Sign In or Register to comment.