V
V
VasKravchuk2011-04-25 10:25:44
iPhone
VasKravchuk, 2011-04-25 10:25:44

Night mode in iPhone/iPad?

Please tell me how to make a night mode in the application? So that everything is red, as, for example, in Solar Walk

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
ertaquo, 2011-04-25
@ertaquo

If the application uses OpenGL, then it will be enough to write a wrapper function for glColor (well, for glMaterial and glLight, if they are used) like this:
void SetColor(float R, float G, float B, float A)
{
  if (!NightMode)
    glColor4f(R, G, B, A);
  else
    glColor4f(R, 0, 0 A);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question