Revision 6e7c8721
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedSurface.java | ||
---|---|---|
20 | 20 |
package org.distorted.library; |
21 | 21 |
|
22 | 22 |
import java.util.HashMap; |
23 |
import java.util.Iterator; |
|
24 | 23 |
import java.util.LinkedList; |
25 |
import java.util.Map; |
|
26 | 24 |
|
27 | 25 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
28 | 26 |
/** |
... | ... | |
68 | 66 |
private int mType; |
69 | 67 |
int mColorCreated; |
70 | 68 |
int[] mColorH = new int[1]; |
71 |
int mSizeX, mSizeY; // in screen space
|
|
69 |
int mWidth, mHeight;
|
|
72 | 70 |
|
73 | 71 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
74 | 72 |
|
... | ... | |
193 | 191 |
|
194 | 192 |
DistortedSurface(int width, int height, int create, int type) |
195 | 193 |
{ |
196 |
mSizeX = width ;
|
|
197 |
mSizeY = height;
|
|
194 |
mWidth = width ;
|
|
195 |
mHeight = height;
|
|
198 | 196 |
mColorCreated = create; |
199 | 197 |
mColorH[0] = 0; |
200 | 198 |
mID = type==TYPE_SYST ? --mNextSystemID : ++mNextClientID; |
... | ... | |
247 | 245 |
*/ |
248 | 246 |
public int getWidth() |
249 | 247 |
{ |
250 |
return mSizeX;
|
|
248 |
return mWidth;
|
|
251 | 249 |
} |
252 | 250 |
|
253 | 251 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
258 | 256 |
*/ |
259 | 257 |
public int getHeight() |
260 | 258 |
{ |
261 |
return mSizeY;
|
|
259 |
return mHeight;
|
|
262 | 260 |
} |
263 | 261 |
|
264 | 262 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
273 | 271 |
*/ |
274 | 272 |
public int getDepth(MeshObject mesh) |
275 | 273 |
{ |
276 |
return mesh==null ? 0 : (int)(mSizeX*mesh.zFactor);
|
|
274 |
return mesh==null ? 0 : (int)(mWidth*mesh.zFactor);
|
|
277 | 275 |
} |
278 | 276 |
} |
Also available in: Unified diff
Simplifications.