Project

General

Profile

« Previous | Next » 

Revision e0b6c593

Added by Leszek Koltunski over 7 years ago

Javadoc

View differences:

src/main/java/org/distorted/library/DistortedTexture.java
28 28
import java.util.LinkedList;
29 29

  
30 30
///////////////////////////////////////////////////////////////////////////////////////////////////
31

  
31
/**
32
 * Class which represents a OpenGL Texture object.
33
 * <p>
34
 * Create a Texture of arbitrary size and feed some pixels to it via the setTexture() method.
35
 * <p>
36
 * Keep all objects created in a static LinkedList. The point: we need to be able to mark
37
 * Textures for deletion, and delete all marked objects later at a convenient time (that's
38
 * because we can only delete from a thread that holds the OpenGL context so here we provide a
39
 * framework where one is able to mark for deletion at any time and actual deletion takes place
40
 * on the next render).
41
 */
32 42
public class DistortedTexture
33 43
  {
34 44
  private static boolean mListMarked = false;

Also available in: Unified diff