ofthegoats / noter

OpenGL drawing program
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Use modern OpenGL #1

Open ofthegoats opened 2 years ago

ofthegoats commented 2 years ago

This is supposedly faster and more efficient. It might also provide tools to retain the full buffer, preventing loss on resize(?)

ofthegoats commented 2 years ago

The plan is now to to use modern opengl in combination with textures which can be drawn on top of. This might be easier if modern OpenGL is used, but it would probably be a good idea regardless to implement more features.

Can use a std::vector and .data() to make the arrays of vertices. Using type alignment for a struct vertex {int x, y...} will make this suitable to use as an array of vertices for OpenGL to read for drawing.

ofthegoats commented 2 years ago

Using core opengl from c3377b7d000d6bae146a909cc0a1c53c45203b83