Last change
on this file since 66 was
66,
checked in by Maciej Komosinski, 13 years ago
|
set 'eol-style' to 'native'
|
-
Property svn:eol-style set to
native
|
File size:
400 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.