source: java/client_3D/src/com/framsticks/net/client3D/graphics/loaders/OBJFaceVertex.java @ 65

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: 1.0 KB
Line 
1package com.framsticks.net.client3D.graphics.loaders;
2
3/**
4 * A vertice and its attributes. The real data about the attributes are stored
5 * in the ObjMesh class - only indexes to the array are stored here.
6 *
7 * @author vorg
8 *
9 */
10public class OBJFaceVertex {
11        private int normalIndex;
12        private int texCoordIndex;
13        private int vertexIndex;
14
15        public int getNormalIndex() {
16                return normalIndex;
17        }
18
19        public void setNormalIndex(int normalIndex) {
20                this.normalIndex = normalIndex;
21        }
22
23        public int getTexCoordIndex() {
24                return texCoordIndex;
25        }
26
27        public void setTexCoordIndex(int texCoordIndex) {
28                this.texCoordIndex = texCoordIndex;
29        }
30
31        public int getVertexIndex() {
32                return vertexIndex;
33        }
34
35        public void setVertexIndex(int vertexIndex) {
36                this.vertexIndex = vertexIndex;
37        }
38
39        @Override
40        public boolean equals(java.lang.Object obj) {
41                OBJFaceVertex v = (OBJFaceVertex) obj;
42                return (vertexIndex == v.getVertexIndex())
43                                && (normalIndex == v.getNormalIndex())
44                                && (texCoordIndex == v.getTexCoordIndex());
45        }
46
47}
Note: See TracBrowser for help on using the repository browser.