Revision af4cc5db
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedInputSurface.java | ||
---|---|---|
25 | 25 |
* A Surface that we can set as Input, i.e. take its rectangle of pixels and skin our Mesh with it. |
26 | 26 |
*/ |
27 | 27 |
|
28 |
public interface DistortedInputSurface extends DistortedSurface
|
|
28 |
interface DistortedInputSurface
|
|
29 | 29 |
{ |
30 |
/** |
|
31 |
* Create the underlying OpenGL part of the Surface. |
|
32 |
*/ |
|
33 |
void create(); |
|
34 |
/** |
|
35 |
* Return a unique ID of this Surface. |
|
36 |
*/ |
|
37 |
long getID(); |
|
38 |
/** |
|
39 |
* Return the width of this Surface. |
|
40 |
*/ |
|
41 |
int getWidth(); |
|
42 |
/** |
|
43 |
* Return the height of this Surface. |
|
44 |
*/ |
|
45 |
int getHeight(); |
|
30 | 46 |
/** |
31 | 47 |
* Take the underlying rectangle of pixels and bind this texture to OpenGL. |
32 | 48 |
*/ |
Also available in: Unified diff
Simplify yesterday's refactoring.