-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMap.java
More file actions
41 lines (28 loc) · 656 Bytes
/
Copy pathMap.java
File metadata and controls
41 lines (28 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import org.lwjgl.opengl.GL11;
/*
* Math.java
* Project Disconnect
*
* Created by Drew Malin on 9/3/2011.
* Copyright 2011 Drew Malin. All rights reserved.
*
*/
public class Map {
public Map(String string) {
// TODO Auto-generated constructor stub
//string = map text file
}
public void draw() {
GL11.glBegin(GL11.GL_LINES);
GL11.glColor3d(1.0, 0.0, 0.0);
for (int x = -5; x <= 5; x++) {
GL11.glVertex3d((double)x, 0d, -5d);
GL11.glVertex3d((double)x, 0d, 5d);
}
for (int z = -5; z <= 5; z++) {
GL11.glVertex3d(5d, 0d, (double)z);
GL11.glVertex3d(-5d, 0d, (double)z);
}
GL11.glEnd();
}
}