资源简介
android-openGL-canvas-master.zip
代码片段和文件信息
/*
*
* *
* * * Copyright (C) 2016 ChillingVan
* * *
* * * Licensed under the Apache License Version 2.0 (the “License“);
* * * you may not use this file except in compliance with the License.
* * * You may obtain a copy of the License at
* * *
* * * http://www.apache.org/licenses/LICENSE-2.0
* * *
* * * Unless required by applicable law or agreed to in writing software
* * * distributed under the License is distributed on an “AS IS“ BASIS
* * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* * * See the License for the specific language governing permissions and
* * * limitations under the License.
* *
*
*/
package com.chillingvan.canvasgl;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.SurfaceTexture;
import android.opengl.GLES20;
import android.opengl.Matrix;
import android.os.Build;
import android.support.annotation.IntRange;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.chillingvan.canvasgl.glcanvas.BasicTexture;
import com.chillingvan.canvasgl.glcanvas.BitmapTexture;
import com.chillingvan.canvasgl.glcanvas.GLCanvas;
import com.chillingvan.canvasgl.glcanvas.GLES20Canvas;
import com.chillingvan.canvasgl.glcanvas.GLPaint;
import com.chillingvan.canvasgl.glcanvas.RawTexture;
import com.chillingvan.canvasgl.shapeFilter.BasicDrawShapeFilter;
import com.chillingvan.canvasgl.shapeFilter.DrawCircleFilter;
import com.chillingvan.canvasgl.shapeFilter.DrawShapeFilter;
import com.chillingvan.canvasgl.textureFilter.BasicTextureFilter;
import com.chillingvan.canvasgl.textureFilter.FilterGroup;
import com.chillingvan.canvasgl.textureFilter.TextureFilter;
import java.util.Map;
import java.util.WeakHashMap;
/**
* Created by Matthew on 2016/9/27.
*/
public class CanvasGL implements ICanvasGL {
private Map bitmapTextureMap = new WeakHashMap<>();
protected final GLCanvas glCanvas;
protected final BasicTextureFilter basicTextureFilter;
private float[] canvasBackgroundColor;
private float[] surfaceTextureMatrix = new float[16];
private int width;
private int height;
private BasicDrawShapeFilter basicDrawShapeFilter;
private DrawCircleFilter drawCircleFilter = new DrawCircleFilter();
public CanvasGL() {
this(new GLES20Canvas());
}
public CanvasGL(GLCanvas glCanvas) {
this.glCanvas = glCanvas;
glCanvas.setOnPreDrawShapeListener(new GLCanvas.OnPreDrawShapeListener() {
@Override
public void onPreDraw(int program DrawShapeFilter drawShapeFilter) {
drawShapeFilter.onPreDraw(program CanvasGL.this);
}
});
glCanvas.setOnPreDrawTextureListener(new GLES20Canvas.OnPreDrawTextureListener() {
@Override
public void onPreDraw(in
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-04-24 12:38 android-openGL-canvas-master\
文件 125 2017-04-24 12:38 android-openGL-canvas-master\.gitignore
文件 11357 2017-04-24 12:38 android-openGL-canvas-master\LICENSE
文件 4414 2017-04-24 12:38 android-openGL-canvas-master\README-en.md
文件 4829 2017-04-24 12:38 android-openGL-canvas-master\README.md
文件 1262 2017-04-24 12:38 android-openGL-canvas-master\build.gradle
目录 0 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\
文件 7 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\.gitignore
文件 1437 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\build.gradle
文件 694 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\proguard-rules.pro
目录 0 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\
目录 0 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\
文件 848 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\AndroidManifest.xm
目录 0 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\
目录 0 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\
目录 0 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\
目录 0 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\
文件 15688 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\CanvasGL.java
文件 3606 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\ICanvasGL.java
文件 1456 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\Loggers.java
文件 10392 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\OffScreenCanvas.java
文件 2444 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\OpenGLUtil.java
目录 0 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\glcanvas\
文件 6900 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\glcanvas\BasicTexture.java
文件 1698 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\glcanvas\BitmapTexture.java
文件 9857 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\glcanvas\GLCanvas.java
文件 11153 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\glcanvas\GLCanvasUtils.java
文件 41893 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\glcanvas\GLES20Canvas.java
文件 1753 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\glcanvas\GLES20IdImpl.java
文件 1115 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\glcanvas\GLId.java
文件 1438 2017-04-24 12:38 android-openGL-canvas-master\canvasgl\src\main\java\com\chillingvan\canvasgl\glcanvas\GLPaint.java
............此处省略164个文件信息
相关资源
- Android用Canvas画曲线图并动态更新数据
- android opengl 贝塞尔曲线
- camera2 opengl实现滤镜效果录制视频
- Android通过opengl 读取并显示obj模型
- android读取obj文件
- Android OpenGL处理YUV数据I420、NV12、NV2
- Android_OpenGL_ES_book-中文教程.pdf
- Java入门-Canvas绘图程序(94).zip
- Canvas仿支付宝芝麻信用仪表盘图表和
- html5+canvas+js头像缩放裁剪
- 《OpenGl ES2 for Android》pdf
- OpenCV+OpenGL 双目立体视觉三维重建
- OpenGL walking people android 3D小人源代码
- Android 3D游戏开发技术宝典 OpenGL ES 2
- 如何查看android系统的openGL版本内含源
- android openGl es2.0以画线的模式画成一个
- opengles相关
- Android OpenGL ES例程代码
- Android利用canvas画各种图形(点、直线
- Android下使用Canvas画图
- Android OpenGL绘制圆柱类
- android 采用opengl显示yuv数据
- android opengl小怪兽3D源码
- android canvas详解
评论
共有 条评论