Converts input native OpenGL value (RGBA on big endian, ABGR on little endian) to Java ARGB.
(int color)
| 1599 | * endian) to Java ARGB. |
| 1600 | */ |
| 1601 | protected static int nativeToJavaARGB(int color) { |
| 1602 | if (BIG_ENDIAN) { // RGBA to ARGB |
| 1603 | return (color >>> 8) | (color << 24); |
| 1604 | } else { // ABGR to ARGB |
| 1605 | int rb = color & 0x00FF00FF; |
| 1606 | return (color & 0xFF00FF00) | (rb << 16) | (rb >> 16); |
| 1607 | } |
| 1608 | } |
| 1609 | |
| 1610 | |
| 1611 | /** |
no outgoing calls
no test coverage detected