Пример #1
0
        public void Render()
        {
            Globals.Assert(myAtlas != null);
            this.UpdateWordRotation();
            this.UpdateWordPosition();
            if (true)
            {
                ////glEnableClientState (GL_COLOR_ARRAY);
            }

            (DrawManager.Instance()).Begin(myAtlas);
            bool displayedFirstDigit = false;

            for (int i = 0; i < numDigits; i++)
            {
                if (dontDisplayLeadingZeros)
                {
                    if (!displayedFirstDigit)
                    {
                        if (((zobject[i]).subTextureId == 0) && (i != (numDigits - 1)))
                        {
                            continue;
                        }
                        else
                        {
                            displayedFirstDigit = true;
                        }
                    }
                }

                if (Utilities.IsOnScreenP1((zobject[i]).screenPosition, 50.0f))
                {
                    (zobject[i]).RenderToDrawArrays();
                }
                else
                {
                    (zobject[i]).StopRender();
                }
            }

            (DrawManager.Instance()).Flush();
            if (true)
            {
                ////glDisableClientState (GL_COLOR_ARRAY);
            }

            if (rotationWholeWord != 0.0f)
            {
                //glPopMatrix();
                //Globals.g_main.SetGLMatrixMode(GL_MODELVIEW);
                //glLoadIdentity();
                //glScalef(Constants.kScaleForShorts, Constants.kScaleForShorts, 0.0f);
            }
        }
Пример #2
0
 public bool IsOnScreen()
 {
     return(Utilities.IsOnScreenP1(zobject.screenPosition, 80.0f));
 }