Converts input Java ARGB value to native OpenGL format (RGBA on big endian, BGRA on little endian).
(int color)
| 1721 | * BGRA on little endian). |
| 1722 | */ |
| 1723 | protected static int javaToNativeARGB(int color) { |
| 1724 | if (BIG_ENDIAN) { // ARGB to RGBA |
| 1725 | return (color >>> 24) | (color << 8); |
| 1726 | } else { // ARGB to ABGR |
| 1727 | int rb = color & 0x00FF00FF; |
| 1728 | return (color & 0xFF00FF00) | (rb << 16) | (rb >> 16); |
| 1729 | } |
| 1730 | } |
| 1731 | |
| 1732 | |
| 1733 | /** |
no outgoing calls
no test coverage detected