File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ allprojects {
4343
4444// module build.gradle
4545dependencies {
46- compile 'com.github.ChillingVan:android-openGL-canvas:v1.2.2.3 '
46+ compile 'com.github.ChillingVan:android-openGL-canvas:v1.3.0.0 '
4747}
4848```
4949
@@ -111,6 +111,12 @@ You can use MediaPlayer to decode video and draw it on the TextureView.
111111If you use GLSurfaceTextureProducerView, then you can process the video frames and provide the texture to MediaCodec to create a new Video.
112112Use this sample and the stream publisher sample of [ AndroidInstantVideo] ( https://github.com/ChillingVan/AndroidInstantVideo ) . You can implement this.
113113
114+ * AndroidCanvasHelper
115+
116+ This GLCanvas cannot draw text.
117+ You can use AndroidCanvasHelper to draw what you want and turn it to bitmap for GLCanvas.
118+ It has sync and async modes.
119+
114120* See the wiki page for more use case.[ here] ( https://github.com/ChillingVan/android-openGL-canvas/wiki )
115121
116122## Notice
@@ -119,7 +125,7 @@ Use this sample and the stream publisher sample of [AndroidInstantVideo](https:/
119125* Remember to call onResume and onPause in the Activity lifecycle when using GLContinuousView and GLContinuousTextureView.
120126
121127## Latest Update
122- * Fix issue that recreate for producedTexture of GLProducedTextureView .
128+ * Add AndroidCanvasHelper and its example for drawing text .
123129
124130## License
125131 Copyright 2016 ChillingVan.
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ allprojects {
4848
4949// module build.gradle
5050dependencies {
51- compile 'com.github.ChillingVan:android-openGL-canvas:v1.2.2.3 '
51+ compile 'com.github.ChillingVan:android-openGL-canvas:v1.3.0.0 '
5252}
5353```
5454
@@ -115,6 +115,12 @@ public class MyGLView extends GLView {
115115如果用本项目里的 GLSurfaceTextureProducerView ,那么还可以做视频处理。
116116结合[ AndroidInstantVideo] ( https://github.com/ChillingVan/AndroidInstantVideo ) 的stream publisher,就能生成新视频。
117117
118+ * AndroidCanvasHelper
119+
120+ 这个GLCanvas不能绘制文本。只能先把文本转成Bitmap来绘制
121+ 可以使用AndroidCanvasHelper来画任意东西再转化为Bitmap给GLCanvas
122+ 这有同步和异步模式,视情况用对应的模式,详细请看例子。
123+
118124
119125* [ 更多用例请查看wiki] ( https://github.com/ChillingVan/android-openGL-canvas/wiki )
120126
@@ -129,7 +135,7 @@ public class MyGLView extends GLView {
129135
130136
131137## 最近更新
132- * 修复在GLProducedTextureView尺寸改变时重复创建producedTexture
138+ * 增加AndroidCanvasHelper及其绘制文本的例子
133139
134140## License
135141 Copyright 2016 ChillingVan.
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ android {
2828 defaultConfig {
2929 minSdkVersion 14
3030 targetSdkVersion 27
31- versionCode 102023
32- versionName " 1.2.2.3 "
31+ versionCode 103000
32+ versionName " 1.3.0.0 "
3333 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
3434 }
3535 buildTypes {
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ android {
2828 applicationId " com.chillingvan.canvasglsample"
2929 minSdkVersion 15
3030 targetSdkVersion 27
31- versionCode 1
32- versionName " 1.0 "
31+ versionCode 2
32+ versionName " 1.3 "
3333
3434 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
3535
You can’t perform that action at this time.
0 commit comments