mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Implemented support for Android OpenGL native ARGB pixel format.
This commit is contained in:
parent
d9f88e763e
commit
be9a2ff1bb
10 changed files with 378 additions and 181 deletions
|
|
@ -1162,7 +1162,14 @@ struct StateHelpers
|
|||
v[1].x = v[3].x = (GLshort) (x + w);
|
||||
v[2].y = v[3].y = (GLshort) (y + h);
|
||||
|
||||
const GLuint rgba = colour.getInRGBAMemoryOrder();
|
||||
#if JUCE_BIG_ENDIAN
|
||||
const GLuint rgba = (GLuint) ((colour.getRed() << 24) | (colour.getGreen() << 16)
|
||||
| (colour.getBlue() << 8) | colour.getAlpha());
|
||||
#else
|
||||
const GLuint rgba = (GLuint) ((colour.getAlpha() << 24) | (colour.getBlue() << 16)
|
||||
| (colour.getGreen() << 8) | colour.getRed());
|
||||
#endif
|
||||
|
||||
v[0].colour = rgba;
|
||||
v[1].colour = rgba;
|
||||
v[2].colour = rgba;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue