Skip to content

Commit 951130b

Browse files
authored
Merge pull request #12 from doggycoder/master
request merge
2 parents e6c5723 + b507fc8 commit 951130b

File tree

35 files changed

+338
-95
lines changed

35 files changed

+338
-95
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

AiyaEffectsSDK/src/main/java/com/aiyaapp/camera/sdk/filter/AFilter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ public void draw(){
121121
onDraw();
122122
}
123123

124+
public void setVertBuffer(FloatBuffer buffer){
125+
this.mVerBuffer=buffer;
126+
}
127+
128+
public void setTexBuffer(FloatBuffer buffer){
129+
this.mTexBuffer=buffer;
130+
}
131+
124132
public void setMatrix(float[] matrix){
125133
this.matrix=matrix;
126134
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package com.aiyaapp.camera.sdk.filter;
2+
3+
import android.content.res.Resources;
4+
5+
/**
6+
* Created by aiya on 2017/4/12.
7+
*/
8+
9+
public class BaseFilter extends AFilter {
10+
11+
private String vert;
12+
private String frag;
13+
14+
public BaseFilter(String vert,String frag){
15+
super(null);
16+
this.vert=vert;
17+
this.frag=frag;
18+
}
19+
20+
@Override
21+
protected void onCreate() {
22+
createProgram(vert,frag);
23+
}
24+
25+
@Override
26+
protected void onSizeChanged(int width, int height) {
27+
28+
}
29+
}

AiyaEffectsSDK/src/main/java/com/aiyaapp/camera/sdk/filter/NoFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ protected void onCreate() {
2828
protected void onSizeChanged(int width, int height) {
2929

3030
}
31+
3132
}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ buildscript {
1616
}
1717

1818
ext{
19-
vCode=24
20-
vName="v2.0.4"
19+
vCode=26
20+
vName="v2.1.0"
2121
}
2222

2323

-117 KB
Binary file not shown.
122 KB
Binary file not shown.

demo/src/main/assets/modelsticker/baowener/meta.json renamed to demo/src/main/assets/modelsticker/bunny/meta.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"format" : "1",
3-
"name":"豹纹耳",
3+
"name":"兔耳朵",
44
"nodes" : [
55
{
66
"type":"2dAnim",
77
"dirname" : "erduo",
8-
"number" : 25,
9-
"width" : 276,
10-
"height" : 107,
8+
"number" : 20,
9+
"width" : 310,
10+
"height" : 252,
1111
"duration" : 50,
1212
"isloop" : 1,
1313
"Triggertype" : 0,
1414
"untilFinish" : 1,
1515
"position" : "foreheadCenter",
16-
"anchorX" : 137,
17-
"anchorY" : 60,
18-
"ratio" : 1.7,
16+
"anchorX" : 154,
17+
"anchorY" : 82,
18+
"ratio" : 1.8,
1919
"fullscreen" : 0
2020
}
2121
]

0 commit comments

Comments
 (0)