Revision 4bb94a7d
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/library/main/InternalSurface.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import android.opengl.GLES31; |
23 | 23 |
|
24 |
import org.distorted.library.mesh.MeshBase; |
|
25 |
|
|
26 | 24 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
27 |
/** |
|
28 |
* This is not really part of the public API. |
|
29 |
* |
|
30 |
* @y.exclude |
|
31 |
*/ |
|
32 |
public abstract class InternalSurface extends InternalObject |
|
25 |
|
|
26 |
abstract class InternalSurface extends InternalObject |
|
33 | 27 |
{ |
34 | 28 |
int mColorCreated; |
35 | 29 |
int mNumColors; |
... | ... | |
90 | 84 |
return mHeight; |
91 | 85 |
} |
92 | 86 |
|
93 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
94 |
/** |
|
95 |
* Return the depth of this Surface. |
|
96 |
* <p> |
|
97 |
* Admittedly quite a strange method. Why do we need to pass a Mesh to it? Because one cannot determine |
|
98 |
* 'depth' of a Surface (bitmap really!) when rendered based only on the texture itself, that depends |
|
99 |
* on the Mesh it is rendered with. |
|
100 |
* |
|
101 |
* @return depth of the Object, in pixels. |
|
102 |
*/ |
|
103 |
|
|
104 |
/* |
|
105 |
public int getDepth(MeshBase mesh) |
|
106 |
{ |
|
107 |
return mesh==null ? 0 : (int)(mWidth*mesh.getZFactor() ); |
|
108 |
} |
|
109 |
*/ |
|
110 | 87 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
111 | 88 |
/** |
112 | 89 |
* Bind the underlying rectangle of pixels as a OpenGL Texture. |
Also available in: Unified diff
Hide the InternalSurface class inside its package.