-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJustInCase.java
More file actions
39 lines (34 loc) · 1.14 KB
/
JustInCase.java
File metadata and controls
39 lines (34 loc) · 1.14 KB
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
public class JustInCase {asdfasdf
}
/*public static void renderBody (Body body) {
glPushMatrix();
Vec2 bodyPosition = body.getPosition().mul(GameSettings.pixelsToMeters);
glTranslatef(bodyPosition.x, bodyPosition.y, 0);
glRotated(Math.toDegrees(body.getAngle()), 0, 0, 1);
glRectf(-.75f * GameSettings.pixelsToMeters,
-.75f * GameSettings.pixelsToMeters,
.75f * GameSettings.pixelsToMeters,
.75f * GameSettings.pixelsToMeters);
glPopMatrix();
}*/
/*public static void renderRectangle (Body body, float width, float height) {
glPushMatrix();
Vec2 bodyPosition = body.getPosition().mul(GameSettings.pixelsToMeters);
glTranslatef(bodyPosition.x, bodyPosition.y, 0);
glRotated(Math.toDegrees(body.getAngle()), 0, 0, 1);
glRectf(-.75f * GameSettings.pixelsToMeters,
-.75f * GameSettings.pixelsToMeters,
.75f * GameSettings.pixelsToMeters,
.75f * GameSettings.pixelsToMeters);
glPopMatrix();
}
public static void renderBody (Rectangle rectangle) {
glPushMatrix();
glTranslatef(rectangle.position.x, rectangle.position.y, 0);
//glRotated(Math.toDegrees(body.getAngle()), 0, 0, 1);
glRecti(0,
0,
rectangle.width,
rectangle.height);
glPopMatrix();
}*/