Revision c90aca24
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/library/main/InternalSurface.java | ||
---|---|---|
100 | 100 |
* |
101 | 101 |
* @return depth of the Object, in pixels. |
102 | 102 |
*/ |
103 |
|
|
104 |
/* |
|
103 | 105 |
public int getDepth(MeshBase mesh) |
104 | 106 |
{ |
105 | 107 |
return mesh==null ? 0 : (int)(mWidth*mesh.getZFactor() ); |
106 | 108 |
} |
107 |
|
|
109 |
*/ |
|
108 | 110 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
109 | 111 |
/** |
110 | 112 |
* Bind the underlying rectangle of pixels as a OpenGL Texture. |
Also available in: Unified diff
Move the 'pre-multiply mesh before applying any effects' thing from [(Xsize of texture, Ysize of texture) x Mesh's zFactor] to Effects.setStretch(sx,sy,sz)