Project

General

Profile

« Previous | Next » 

Revision c1e24646

Added by Leszek Koltunski about 7 years ago

Introduce Effects.blitPriv() (faster than previous drawNoEffectsPriv)

View differences:

src/main/java/org/distorted/library/DistortedTexture.java
101 101
    if( mColorCreated!=DONT_CREATE ) mColorCreated = NOT_CREATED_YET;
102 102
    }
103 103

  
104
///////////////////////////////////////////////////////////////////////////////////////////////////
105

  
106
  static void getUniforms(int mProgramH)
107
    {
108
    int textureH= GLES30.glGetUniformLocation( mProgramH, "u_Texture");
109

  
110
    GLES30.glActiveTexture(GLES30.GL_TEXTURE0);
111
    GLES30.glUniform1i(textureH, 0);
112
    }
113

  
114 104
///////////////////////////////////////////////////////////////////////////////////////////////////
115 105
// create SYSTEM or TREE textures (those are just like normal Textures, just hold information
116 106
// that they were autocreated only for the Library's internal purposes (SYSTEM) or for using

Also available in: Unified diff