Converts input Java ARGB value to native OpenGL format (RGBA on big endian, BGRA on little endian).
(int color)
| 1766 | * BGRA on little endian). |
| 1767 | */ |
| 1768 | protected static int javaToNativeARGB(int color) { |
| 1769 | if (BIG_ENDIAN) { // ARGB to RGBA |
| 1770 | return (color >>> 24) | (color << 8); |
| 1771 | } else { // ARGB to ABGR |
| 1772 | int rb = color & 0x00FF00FF; |
| 1773 | return (color & 0xFF00FF00) | (rb << 16) | (rb >> 16); |
| 1774 | } |
| 1775 | } |
| 1776 | |
| 1777 | |
| 1778 | /** |
no outgoing calls
no test coverage detected