Open ofthegoats opened 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.
Using core opengl from c3377b7d000d6bae146a909cc0a1c53c45203b83
This is supposedly faster and more efficient. It might also provide tools to retain the full buffer, preventing loss on resize(?)