here a triangle works -.-
This commit is contained in:
@ -88,47 +88,47 @@ prettyMap _ = []
|
||||
|
||||
generateCube :: [GLfloat]
|
||||
generateCube = [ -- lower plane
|
||||
-0.3,-0.3,-0.3,
|
||||
0.3,-0.3,0.3,
|
||||
0.3,-0.3,-0.3,
|
||||
-0.3,-0.3,-0.3,
|
||||
-0.3,-0.3,0.3,
|
||||
0.3,-0.3,0.3,
|
||||
-3.0,-3.0,-3.0,
|
||||
3.0,-3.0,3.0,
|
||||
3.0,-3.0,-3.0,
|
||||
-3.0,-3.0,-3.0,
|
||||
-3.0,-3.0,3.0,
|
||||
3.0,-3.0,3.0,
|
||||
-- upper plane
|
||||
-0.3,0.3,-0.3,
|
||||
0.3,0.3,0.3,
|
||||
0.3,0.3,-0.3,
|
||||
-0.3,0.3,-0.3,
|
||||
-0.3,0.3,0.3,
|
||||
0.3,0.3,0.3,
|
||||
-3.0,3.0,-3.0,
|
||||
3.0,3.0,3.0,
|
||||
3.0,3.0,-3.0,
|
||||
-3.0,3.0,-3.0,
|
||||
-3.0,3.0,3.0,
|
||||
3.0,3.0,3.0,
|
||||
-- left plane
|
||||
-0.3,-0.3,-0.3,
|
||||
-0.3,0.3,0.3,
|
||||
-0.3,-0.3,0.3,
|
||||
-0.3,-0.3,-0.3,
|
||||
-0.3,0.3,0.3,
|
||||
-0.3,0.3,-0.3,
|
||||
-3.0,-3.0,-3.0,
|
||||
-3.0,3.0,3.0,
|
||||
-3.0,-3.0,3.0,
|
||||
-3.0,-3.0,-3.0,
|
||||
-3.0,3.0,3.0,
|
||||
-3.0,3.0,-3.0,
|
||||
-- right plane
|
||||
0.3,-0.3,-0.3,
|
||||
0.3,0.3,0.3,
|
||||
0.3,-0.3,0.3,
|
||||
0.3,-0.3,-0.3,
|
||||
0.3,0.3,0.3,
|
||||
0.3,0.3,-0.3,
|
||||
3.0,-3.0,-3.0,
|
||||
3.0,3.0,3.0,
|
||||
3.0,-3.0,3.0,
|
||||
3.0,-3.0,-3.0,
|
||||
3.0,3.0,3.0,
|
||||
3.0,3.0,-3.0,
|
||||
-- front plane
|
||||
-0.3,-0.3,-0.3,
|
||||
0.3,0.3,-0.3,
|
||||
0.3,-0.3,-0.3,
|
||||
-0.3,-0.3,-0.3,
|
||||
0.3,0.3,-0.3,
|
||||
-0.3,0.3,-0.3,
|
||||
-3.0,-3.0,-3.0,
|
||||
3.0,3.0,-3.0,
|
||||
3.0,-3.0,-3.0,
|
||||
-3.0,-3.0,-3.0,
|
||||
3.0,3.0,-3.0,
|
||||
-3.0,3.0,-3.0,
|
||||
-- back plane
|
||||
-0.3,-0.3,0.3,
|
||||
0.3,0.3,0.3,
|
||||
0.3,-0.3,0.3,
|
||||
-0.3,-0.3,0.3,
|
||||
0.3,0.3,0.3,
|
||||
-0.3,0.3,0.3
|
||||
-3.0,-3.0,3.0,
|
||||
3.0,3.0,3.0,
|
||||
3.0,-3.0,3.0,
|
||||
-3.0,-3.0,3.0,
|
||||
3.0,3.0,3.0,
|
||||
-3.0,3.0,3.0
|
||||
]
|
||||
|
||||
generateTriangles :: PlayMap -> [GLfloat]
|
||||
|
Reference in New Issue
Block a user