Hello,
I want to write a rogue-like game and decided not to use any of the curses libraries and use ogl instead. Right now I want to represent a standart sized console window with 80x25 characters. This is how I draw the tiles at the moment:
- I use vertex arrays with 2 triangles for every tile I want to draw as background.
- Then I draw the same geometry again with textures and alphablending on and other colors(foreground color)
With that I can draw every letter with any background/foreground color combination. The letters are stored in the texture. This method is not very fast so I wanted to ask you what kind of improvement you would suggest. Vertex sharing was my first idea, but that would mean that every vertex has only one colorattribute and therefore the colors would mix over tile boundaries, which is bad…
Thanks
thala