Exemplo n.º 1
0
 public void Draw()
 {
     SampleDraw.DrawSprite(textSprite);
     playButton.Draw();
     stopButton.Draw();
     volumeSlider.Draw();
 }
Exemplo n.º 2
0
        public static bool Render()
        {
            graphics.SetClearColor(0.0f, 0.0f, 0.0f, 0.0f);
            graphics.Clear();

            SampleDraw.DrawText("Status : " + bgmPlayer.Status, 0xffffffff, 0, 64);
            SampleDraw.DrawText("Volume", 0xffffffff, volTextPosX, volTextPosY);

            playButton.Draw();
            stopButton.Draw();
            pauseButton.Draw();
            resumeButton.Draw();
            volumeSlider.Draw();

            SampleDraw.DrawText("BgmPlayer Sample", 0xffffffff, 0, 0);
            graphics.SwapBuffers();

            return(true);
        }
Exemplo n.º 3
0
        public static bool Render()
        {
            graphics.SetViewport(0, 0, screenWidth, screenHeight);
            graphics.SetClearColor(0.0f, 0.0f, 0.0f, 0.0f);
            graphics.Clear();

            button0.Draw();
            button1.Draw();
            button2.Draw();
            button3.Draw();

            slider.Draw();

            inputTextButton.Draw();

            SampleDraw.DrawText("PersistentMemory Sample", 0xffffffff, 0, 0);
            SampleDraw.DrawText("Toggle Button", 0xffffffff, (((screenWidth - (BUTTON_NO * 128)) / 2) + 16), 96);
            SampleDraw.DrawText("TextDialog", 0xffffffff, ((screenWidth - 480) / 2), 224);
            SampleDraw.DrawText("Slider", 0xffffffff, ((screenWidth - 384) / 2), 330);
            graphics.SwapBuffers();

            return(true);
        }