Code example for Matrix4f

Methods: loadProjectionNormalized

0
 
    @Override 
    public void resize(int width, int height) {
        super.resize(width, height);
        if (mPVAlloc != null) {
            Matrix4f proj = new Matrix4f();
            proj.loadProjectionNormalized(width, height);
            mPVAlloc.setProjection(proj);
        } 
    } 
 
    @Override 
    public Bundle onCommand(String action, int x, int y, int z, Bundle extras,
            boolean resultRequested) {
 
        if ("android.wallpaper.tap".equals(action)) {
            mTouchY = y;
        } 
        return null; 
    }