Night mode in IPhone/IPad?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
16 views
Please tell me how to do night mode in the app? All was red, as for example in Solar Walk
by | 16 views

1 Answer

0 like 0 dislike
If your application uses OpenGL, you only need to write a function wrapper to glColor (well, glMaterial and glLight, if used) such as the following:
\rvoid SetColor(float R, float G, float B, float A)
{
if (!NightMode)
glColor4f(R, G, B, A);
else
glColor4f(R, 0, 0 A);
}
by

Related questions

0 like 0 dislike
1 answer
asked Mar 22, 2019 by Project86
0 like 0 dislike
7 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
110,608 questions
257,187 answers
0 comments
40,253 users