rewriting to OpenGL4.3

- rewrote Map to generate Triangles for glBindBuffer
- Coordinates is not longer used AFTER the change but generates
  Data until change is complete
- Size of Map in VRAM is sizeof(float)*(vert)*9 with vert = 2nm - n - m + 1
  * 3 float coordinats
  * 3 float color
  * 3 float normal
  yielding about 13.5mb VRAM for 500x500-Map
This commit is contained in:
Stefan Dresselhaus
2014-01-02 03:05:35 +01:00
parent 35f1a09d13
commit 673a0f786a
4 changed files with 102 additions and 13 deletions

View File

@ -19,7 +19,8 @@ executable Pioneers
text >=0.11.3 && <0.12,
stm >=2.4.2 && <2.5,
transformers >=0.3.0 && <0.4,
List >=0.5.1 && <0.6
List >=0.5.1 && <0.6,
OpenGLRaw >=1.4.0 && <1.5
ghc-options: -Wall
other-modules:
Map.Coordinates,