mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 13:21:07 +01:00
Updated PGL android
This commit is contained in:
@@ -1436,6 +1436,19 @@ public class PGL {
|
||||
}
|
||||
|
||||
|
||||
static public int javaToNativeARGB(int color) {
|
||||
if (BIG_ENDIAN) {
|
||||
return ((color >> 24) & 0xff) |
|
||||
((color << 8) & 0xffffff00);
|
||||
} else {
|
||||
return (color & 0xff000000) |
|
||||
((color << 16) & 0xff0000) |
|
||||
(color & 0xff00) |
|
||||
((color >> 16) & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Convert native OpenGL format into palatable ARGB format. This function
|
||||
* leaves alone (ignores) the alpha component. Also flips the image
|
||||
|
||||
Reference in New Issue
Block a user