Skip to content

Commit 1447ba7

Browse files
committed
merge mess
2 parents 75ff2c5 + c0f3094 commit 1447ba7

File tree

6 files changed

+61
-29
lines changed

6 files changed

+61
-29
lines changed

core/src/processing/opengl/PGLES.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ public void texSubImage2D(int target, int level, int xOffset, int yOffset, int w
12341234

12351235
@Override
12361236
public void copyTexSubImage2D(int target, int level, int xOffset, int yOffset, int x, int y, int width, int height) {
1237-
GLES20.glCopyTexSubImage2D(target, level, x, y, xOffset, xOffset, width, height);
1237+
GLES20.glCopyTexSubImage2D(target, level, x, y, xOffset, yOffset, width, height);
12381238
}
12391239

12401240
@Override

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6012,57 +6012,73 @@ protected void blendModeImpl() {
60126012

60136013
} else if (blendMode == BLEND) {
60146014
if (blendEqSupported) {
6015-
pgl.blendEquation(PGL.FUNC_ADD);
6015+
pgl.blendEquationSeparate(PGL.FUNC_ADD,
6016+
PGL.FUNC_ADD);
60166017
}
6017-
pgl.blendFunc(PGL.SRC_ALPHA, PGL.ONE_MINUS_SRC_ALPHA);
6018+
pgl.blendFuncSeparate(PGL.SRC_ALPHA, PGL.ONE_MINUS_SRC_ALPHA,
6019+
PGL.ONE, PGL.ONE);
60186020

60196021
} else if (blendMode == ADD) {
60206022
if (blendEqSupported) {
6021-
pgl.blendEquation(PGL.FUNC_ADD);
6023+
pgl.blendEquationSeparate(PGL.FUNC_ADD,
6024+
PGL.FUNC_ADD);
60226025
}
6023-
pgl.blendFunc(PGL.SRC_ALPHA, PGL.ONE);
6026+
pgl.blendFuncSeparate(PGL.SRC_ALPHA, PGL.ONE,
6027+
PGL.ONE, PGL.ONE);
60246028

60256029
} else if (blendMode == SUBTRACT) {
60266030
if (blendEqSupported) {
6027-
pgl.blendEquation(PGL.FUNC_REVERSE_SUBTRACT);
6028-
pgl.blendFunc(PGL.ONE, PGL.SRC_ALPHA);
6031+
pgl.blendEquationSeparate(PGL.FUNC_REVERSE_SUBTRACT,
6032+
PGL.FUNC_ADD);
6033+
pgl.blendFuncSeparate(PGL.SRC_ALPHA, PGL.ONE,
6034+
PGL.ONE, PGL.ONE);
60296035
} else {
60306036
PGraphics.showWarning(BLEND_DRIVER_ERROR, "SUBTRACT");
60316037
}
60326038

60336039
} else if (blendMode == LIGHTEST) {
60346040
if (blendEqSupported) {
6035-
pgl.blendEquation(PGL.FUNC_MAX);
6036-
pgl.blendFunc(PGL.SRC_ALPHA, PGL.DST_ALPHA);
6041+
pgl.blendEquationSeparate(PGL.FUNC_MAX,
6042+
PGL.FUNC_ADD);
6043+
pgl.blendFuncSeparate(PGL.ONE, PGL.ONE,
6044+
PGL.ONE, PGL.ONE);
60376045
} else {
60386046
PGraphics.showWarning(BLEND_DRIVER_ERROR, "LIGHTEST");
60396047
}
60406048

60416049
} else if (blendMode == DARKEST) {
60426050
if (blendEqSupported) {
6043-
pgl.blendEquation(PGL.FUNC_MIN);
6044-
pgl.blendFunc(PGL.SRC_ALPHA, PGL.DST_ALPHA);
6051+
pgl.blendEquationSeparate(PGL.FUNC_MIN,
6052+
PGL.FUNC_ADD);
6053+
pgl.blendFuncSeparate(PGL.ONE, PGL.ONE,
6054+
PGL.ONE, PGL.ONE);
60456055
} else {
60466056
PGraphics.showWarning(BLEND_DRIVER_ERROR, "DARKEST");
60476057
}
60486058

60496059
} else if (blendMode == EXCLUSION) {
60506060
if (blendEqSupported) {
6051-
pgl.blendEquation(PGL.FUNC_ADD);
6061+
pgl.blendEquationSeparate(PGL.FUNC_ADD,
6062+
PGL.FUNC_ADD);
60526063
}
6053-
pgl.blendFunc(PGL.ONE_MINUS_DST_COLOR, PGL.ONE_MINUS_SRC_COLOR);
6064+
pgl.blendFuncSeparate(PGL.ONE_MINUS_DST_COLOR, PGL.ONE_MINUS_SRC_COLOR,
6065+
PGL.ONE, PGL.ONE);
60546066

60556067
} else if (blendMode == MULTIPLY) {
60566068
if (blendEqSupported) {
6057-
pgl.blendEquation(PGL.FUNC_ADD);
6069+
pgl.blendEquationSeparate(PGL.FUNC_ADD,
6070+
PGL.FUNC_ADD);
60586071
}
6059-
pgl.blendFunc(PGL.DST_COLOR, PGL.SRC_COLOR);
6072+
pgl.blendFuncSeparate(PGL.ZERO, PGL.SRC_COLOR,
6073+
PGL.ONE, PGL.ONE);
60606074

60616075
} else if (blendMode == SCREEN) {
60626076
if (blendEqSupported) {
6063-
pgl.blendEquation(PGL.FUNC_ADD);
6077+
pgl.blendEquationSeparate(PGL.FUNC_ADD,
6078+
PGL.FUNC_ADD);
60646079
}
6065-
pgl.blendFunc(PGL.ONE_MINUS_DST_COLOR, PGL.ONE);
6080+
pgl.blendFuncSeparate(PGL.ONE_MINUS_DST_COLOR, PGL.ONE,
6081+
PGL.ONE, PGL.ONE);
60666082

60676083
} else if (blendMode == DIFFERENCE) {
60686084
PGraphics.showWarning(BLEND_RENDERER_ERROR, "DIFFERENCE");

done.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
0232
2+
X Mismatched API level inside project.properties (Android mode ver. 3)
3+
X https://github.com/processing/processing-android/issues/73
4+
X ecj.jar isn't found properly
5+
X https://github.com/processing/processing-android/issues/67
6+
X https://github.com/processing/processing-android/pull/76
7+
8+
0228
9+
X figure out how to build from Eclipse JDI so we can remove tools.jar and javac
10+
X https://github.com/processing/processing/issues/1840
11+
X figure out Android build w/o javac so we can remove tools.jar and javac
12+
X also to the p5 repo with just a JRE
13+
X remove initRequirements from Base (no longer need JDI)
14+
X move this into Android mode?
15+
X https://github.com/processing/processing-android/issues/46
16+
17+
X requires deleting the app before reinstalling
18+
X just fix this like the others
19+
X https://github.com/processing/processing-android/issues/55
20+
121
0217 android (released alongside 2.0b9)
222
X split Android mode from the rest of the project
323
X build core when building the mode itself

mode.properties

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name = Android Mode
22
authorList = [The Processing Foundation](http://android.processing.org/)
33
url = https://github.com/processing/processing-android
44
sentence = Create projects with Processing for Android devices
5-
paragraph = Android Mode has been around since Processing 1.5, but we have moved it to a separate download so that it can be developed indepdendently of the PDE and the core.
6-
download=http://android.processing.org/AndroidMode.zip
7-
version = 217
8-
prettyVersion = 217
5+
paragraph = This version of the Android Mode is for Processing 3.0+
6+
version = 232
7+
prettyVersion = 3.0.1
8+
minRevision = 228
9+
maxRevision = 0

src/processing/mode/android/AndroidBuild.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class AndroidBuild extends JavaBuild {
4646
static final String basePackage = "processing.test";
4747
static String sdkName = "2.3.3";
4848
static String sdkVersion = "10"; // Android 2.3.3 (Gingerbread)
49-
static final String sdkTarget = "android-" + sdkVersion;
49+
static String sdkTarget = "android-" + sdkVersion;
5050

5151
private final AndroidSDK sdk;
5252
private final File coreZipFile;
@@ -72,6 +72,7 @@ public AndroidBuild(final Sketch sketch, final AndroidMode mode) {
7272
public static void setSdkTarget(AndroidSDK.SDKTarget target, Sketch sketch) {
7373
sdkName = target.name;
7474
sdkVersion = Integer.toString(target.version);
75+
sdkTarget = "android-" + sdkVersion;
7576

7677
Manifest manifest = new Manifest(sketch);
7778
manifest.setSdkTarget(sdkVersion);
@@ -627,7 +628,7 @@ private void writeBuildXML(final File file, final String projectName) {
627628
writer.println(" <isset property=\"env.ANDROID_HOME\" />");
628629
writer.println(" </condition>");
629630

630-
writer.println(" <property name=\"ecj.jar\" value=\"" + Base.getToolsFolder() + "/../modes/Java/mode/ecj.jar\" />");
631+
writer.println(" <property name=\"ecj.jar\" value=\"" + Base.getToolsFolder() + "/../modes/java/mode/ecj.jar\" />");
631632
writer.println(" <property name=\"build.compiler\" value=\"org.eclipse.jdt.core.JDTCompilerAdapter\" />");
632633

633634
writer.println(" <mkdir dir=\"bin\" />");

todo.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ _ temporary files (for sketches and logs) are not deleted
4040
o http://code.google.com/p/processing/issues/detail?id=562
4141
_ https://github.com/processing/processing-android/issues/33
4242

43-
_ requires deleting the app before reinstalling
44-
_ just fix this like the others
45-
debug:
46-
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
47-
Shutting down any existing adb server...
48-
4943
_ NullPointerException in AndroidBuild.writeLocalProps(AndroidBuild.java:458)
5044
_ prompts for SDK, works; then after restart breaks again
5145
_ also refers to ANDROID_HOME and not ANDROID_SDK..

0 commit comments

Comments
 (0)