Examples of vgLoadIdentity()


Examples of net.rim.device.api.openvg.VG11.vgLoadIdentity()

        // Go through all the images and rotate them
        // around the center of the screen.
        for (int i = 0; i < _imageHandles.length; i++) {
            // Load clean Identity matrix
            vg.vgLoadIdentity();

            // Translate to the center of the display
            vg.vgTranslate(_xScreenCenter, _yScreenCenter);

            // Rotate the image
View Full Code Here

Examples of net.rim.device.api.openvg.VG11.vgLoadIdentity()

        // Set VG_MATRIX_MODE to VG_MATRIX_PATH_USER_TO_SURFACE
        vg11.vgSeti(VG10.VG_MATRIX_MODE, VG10.VG_MATRIX_PATH_USER_TO_SURFACE);

        // Load a clean identity matrix
        vg11.vgLoadIdentity();

        // Calculate scale factor
        final float scaleFactor =
                Math.min(_displayHeight / PATHS_IMAGE_HEIGHT, _displayWidth
                        / PATHS_IMAGE_WIDTH);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.