Project

General

Profile

« Previous | Next » 

Revision 09ab7524

Added by Leszek Koltunski about 7 years ago

Introduce 3 types of Surfaces: System, Tree, User

View differences:

src/main/java/org/distorted/library/DistortedTexture.java
111 111
    GLES30.glUniform1i(textureH, 0);
112 112
    }
113 113

  
114
///////////////////////////////////////////////////////////////////////////////////////////////////
115
// create SYSTEM or TREE textures (those are just like normal Textures, just hold information
116
// that they were autocreated only for the Library's internal purposes (SYSTEM) or for using
117
// inside a Tree of DistortedNodes (TREE)
118
// SYSTEM surfaces do not get removed in onDestroy().
119

  
120
  public DistortedTexture(int width, int height, int type)
121
    {
122
    super(width,height,NOT_CREATED_YET,type);
123
    mBmp= null;
124
    }
125

  
114 126
///////////////////////////////////////////////////////////////////////////////////////////////////
115 127
// PUBLIC API
116 128
///////////////////////////////////////////////////////////////////////////////////////////////////
......
119 131
 */
120 132
  public DistortedTexture(int width, int height)
121 133
    {
122
    super(width,height,NOT_CREATED_YET,false);
134
    super(width,height,NOT_CREATED_YET,TYPE_USER);
123 135
    mBmp= null;
124 136
    }
125 137

  

Also available in: Unified diff