Skip to content

Commit 32e2ed0

Browse files
committed
version update to 1.3.0.0, add AndroidCanvasHelper
1 parent 211ad0f commit 32e2ed0

4 files changed

Lines changed: 20 additions & 8 deletions

File tree

README-en.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ allprojects {
4343
4444
// module build.gradle
4545
dependencies {
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.
111111
If you use GLSurfaceTextureProducerView, then you can process the video frames and provide the texture to MediaCodec to create a new Video.
112112
Use 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.

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ allprojects {
4848
4949
// module build.gradle
5050
dependencies {
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.

canvasgl/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

canvasglsample/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)