Last change
on this file since 65 was
65,
checked in by Maciej Komosinski, 13 years ago
|
added sources of the 3D client for the Framsticks server
|
File size:
424 bytes
|
Line | |
---|
1 | package pl.vorg.mowa.core.graphics;
|
---|
2 |
|
---|
3 | import javax.media.opengl.GL;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * A type of a figure which can be a part of a 3d object.
|
---|
7 | *
|
---|
8 | * @author vorg
|
---|
9 | *
|
---|
10 | */
|
---|
11 | public enum PrimitiveType {
|
---|
12 | None(GL.GL_POINTS), Points(GL.GL_POINTS), Triangles(GL.GL_TRIANGLES), Quads(
|
---|
13 | GL.GL_QUADS);
|
---|
14 |
|
---|
15 | private final int glId;
|
---|
16 |
|
---|
17 | PrimitiveType(int glId) {
|
---|
18 | this.glId = glId;
|
---|
19 | }
|
---|
20 |
|
---|
21 | public int toGL() {
|
---|
22 | return glId;
|
---|
23 | }
|
---|
24 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.