-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTextureHandle.java
executable file
·49 lines (43 loc) · 1.3 KB
/
TextureHandle.java
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
42
43
44
45
46
47
48
49
/*************************************************************************\
* FORFATTER : Daniel Sveistrup
* DATO : 2. April 2006
*
* BESKRIVELSE: Denne klasse holder data omkring en enkelt tekstur.
* Alle objekter der ønsker at benytte en tekstur,
* har en instans af dette objekt.
*
* NOTER : 2. April 2006 --- Fil oprettet.
\*************************************************************************/
public class TextureHandle
{
/*********************************************************************\
* CONSTRUCTOR
*
* ARGS: int<textureID>, float<width>, float<height>
\*********************************************************************/
public TextureHandle( int textureHandle, float width, float height )
{
this.textureHandle = textureHandle;
this.width = width;
this.height = height;
}
/*********************************************************************\
* GET AND SET METHODS
*
\*********************************************************************/
public int getTextureHandle()
{
return textureHandle;
}
public float getWidth()
{
return width;
}
public float getHeight()
{
return height;
}
private int textureHandle;
private float width;
private float height;
}