예제 #1
0
 public MagicBlackCatFilter(Context context) {
   super(NO_FILTER_VERTEX_SHADER, OpenGLUtils.readShaderFromRawResource(context, R.raw.blackcat));
 }
예제 #2
0
 public void onInit() {
   super.onInit();
   inputTextureHandles[0] = OpenGLUtils.loadTexture(mContext, "filter/xpromap.png");
   inputTextureHandles[1] = OpenGLUtils.loadTexture(mContext, "filter/vignettemap_new.png");
 }
예제 #3
0
 public MagicSunriseFilter(Context context) {
   super(NO_FILTER_VERTEX_SHADER, OpenGLUtils.readShaderFromRawResource(context, R.raw.sunrise));
   mContext = context;
 }
예제 #4
0
 public MagicXproIIFilter(Context context) {
   super(
       NO_FILTER_VERTEX_SHADER,
       OpenGLUtils.readShaderFromRawResource(context, R.raw.xproii_filter_shader));
   mContext = context;
 }