Package net.rim.device.api.math

Examples of net.rim.device.api.math.Matrix4f.translate()


        final Matrix4f m = new Matrix4f(modelview);
        _character._transform.getTranslation(_t);

        // Determine which horizontal section of the level to render
        if (_t.x > 0.0f) {
            m.translate(-_t.x, 0.0f, 0.0f);
        }

        // Determine which vertical section of the level to render
        if (_t.y > 0.0f && _t.y <= _levelHeight) {
            m.translate(0.0f, -_t.y, 0.0f);
View Full Code Here


            m.translate(-_t.x, 0.0f, 0.0f);
        }

        // Determine which vertical section of the level to render
        if (_t.y > 0.0f && _t.y <= _levelHeight) {
            m.translate(0.0f, -_t.y, 0.0f);
        } else if (_t.y > _levelHeight) {
            m.translate(0.0f, -_levelHeight, 0.0f);
        }

        // Render the level's tiles
View Full Code Here

        // Determine which vertical section of the level to render
        if (_t.y > 0.0f && _t.y <= _levelHeight) {
            m.translate(0.0f, -_t.y, 0.0f);
        } else if (_t.y > _levelHeight) {
            m.translate(0.0f, -_levelHeight, 0.0f);
        }

        // Render the level's tiles
        int count = _tiles.size();
        for (int i = 0; i < count; i++) {
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.