Package net.rim.device.api.ui

Examples of net.rim.device.api.ui.Screen


     */
    public OpenGL20Demo() {
        // Check whether OpenGL 2.0 is supported on the current BlackBerry
        // Smartphone
        if (GLUtils.isSupported(GLUtils.VERSION_2_0)) {
            final Screen screen =
                    new FullScreen(Screen.DEFAULT_MENU | Screen.DEFAULT_CLOSE);
            screen.add(new OpenGLDemoField());
            pushScreen(screen);
        } else {
            UiApplication.getUiApplication().invokeLater(new Runnable() {
                public void run() {
                    Dialog.alert("This device does not support OpenGL ES 2.0, exiting application...");
View Full Code Here


     */
    public OpenGL11Demo() {
        // Check whether OpenGL 1.1 is supported on the current BlackBerry
        // Smartphone
        if (GLUtils.isSupported(GLUtils.VERSION_1_1)) {
            final Screen screen =
                    new FullScreen(Screen.DEFAULT_MENU | Screen.DEFAULT_CLOSE);
            screen.add(new OpenGLDemoField());
            pushScreen(screen);
        } else {
            UiApplication.getUiApplication().invokeLater(new Runnable() {
                public void run() {
                    Dialog.alert("This device does not support OpenGL ES 1.1, exiting application...");
View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.Screen

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.