polar-engine / hs-polar

Polar Game Engine is a modern, safe game engine written in Haskell.
http://polarengine.org
Apache License 2.0
6 stars 1 forks source link

Store vertices in efficient data structure #6

Open ori-sky opened 8 years ago

ori-sky commented 8 years ago

The example vertices, hard-coded in the renderer, are currently implemented with the type [GLfloat]. Whilst this makes it easy to work with the vertices, it also makes it more difficult in general for a number of reasons.

ori-sky commented 8 years ago

The pooledNew function looks pretty useful; however, I'll need to check whether or not data can easily be freed from the pool using free or a similar function.