Exemple #1
0
        public void RenderScene(CGPoint offset)
        {
            CGRect bounds = Utilities.CGRectMake(0 + offset.x, 0 + offset.y, 320, 480);

            //glDisable (GL_BLEND);
            backScreen.DrawInRect(bounds);
            //glEnable (GL_BLEND);
            for (int i = 0; i < numButtons; i++)
            {
                (button[i]).Render();
            }

            for (int i = 0; i < numSwitches; i++)
            {
                (frontEndSwitch[i]).Render();
            }

            for (int i = 0; i < numFunnyWords; i++)
            {
                (funnyWord[i]).Render();
            }

            for (int i = 0; i < numQueries; i++)
            {
                (query[i]).Render();
            }

            for (int i = 0; i < numNumbers; i++)
            {
                (number[i]).Render();
            }
        }
Exemple #2
0
        public void RenderBackSceneWithColour(Constants.RossColour inCol)
        {
            CGRect bounds = Utilities.CGRectMake(0, 0, 320, 480);

            //glDisable (GL_BLEND);
            backScreen.DrawInRectColourP1(bounds, inCol);
            //glEnable (GL_BLEND);
        }
Exemple #3
0
        public static CGRect GetScreenRectangle()
        {
            #if PLAY_HORIZONTAL
            return(Utilities.CGRectMake(0, 0, Globals.g_world.screenWidth, Globals.g_world.screenHeight));
            #else
            return(Utilities.CGRectMake(0, 0, Globals.g_world.screenWidth, Globals.g_world.screenHeight));
            #endif

            #if PLAY_HORIZONTAL
            return(Utilities.CGRectMake(0, 0, 480, 320));
            #else
            return(Utilities.CGRectMake(0, 0, 320, 480));
            #endif
        }