Project

General

Profile

« Previous | Next » 

Revision 8d52a49c

Added by Leszek Koltunski almost 8 years ago

Do not add Screen to the Surface lists.

View differences:

src/main/java/org/distorted/library/DistortedScreen.java
44 44
 */
45 45
  public DistortedScreen()
46 46
    {
47
    super(0,0,CREATED,CREATED,0,false);
47
    // set color to 'DONT_CREATE' so that Screens will not get added to the Surface lists
48
    // set depth to 'CREATED' so that depth will be, by default, on.
49
    super(0,0,DONT_CREATE,CREATED,0,false);
48 50
    }
49 51
  }
src/main/java/org/distorted/library/DistortedSurface.java
207 207

  
208 208
////////////////////////////////////////////////////////////////////////////////////////////////////
209 209
/**
210
 * Return unique ID of the Surface.
210
 * Return unique ID of this Surface.
211 211
 */
212 212
  public long getID()
213 213
    {
......
217 217
///////////////////////////////////////////////////////////////////////////////////////////////////
218 218

  
219 219
/**
220
 * Returns the height of the Surface.
220
 * Return the height of this Surface.
221 221
 *
222 222
 * @return height of the object, in pixels.
223 223
 */
......
228 228

  
229 229
///////////////////////////////////////////////////////////////////////////////////////////////////
230 230
/**
231
 * Returns the width of the Surface.
231
 * Return the width of this Surface.
232 232
 *
233 233
 * @return width of the Object, in pixels.
234 234
 */
......
239 239

  
240 240
///////////////////////////////////////////////////////////////////////////////////////////////////
241 241
/**
242
 * Returns the depth of the Surface.
242
 * Return the depth of this Surface.
243 243
 * <p>
244 244
 * Admittedly quite a strange method. Why do we need to pass a Mesh to it? Because one cannot determine
245 245
 * 'depth' of a Surface (bitmap really!) when rendered based only on the texture itself, that depends

Also available in: Unified diff