Subversion Repositories AndroidProjects

Rev

Rev 1729 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.gebauz.bauzoid2.graphics.sprite;

import com.gebauz.bauzoid2.math.Vector4;

/** Spaces:
 * World space - pixel space for 2D world with dimensions (SCREEN_WIDTH x SCREEN_HEIGHT)
 * Pivot space - pixel space relative to the pivot point
 * Sprite space - pixel space relative to origin of sprite
 * @author chris
 *
 */

public class SpriteTransform
{


        // Constants========================================================================================

        // Embedded Types===================================================================================

        // Fields===========================================================================================
       
        public float x = 0.0f;
        public float y = 0.0f;
       
        public float w = 0.0f;
        public float h = 0.0f;
       
        public float angle = 0.0f;
       
        public boolean mirrorX = false;
        public boolean mirrorY = false;
       
        public float pivotX = 0.0f;
        public float pivotY = 0.0f;

    public float alpha = 1.0f;
    public Vector4 color = new Vector4(1, 1, 1, 1);
    public Vector4 fogColor = new Vector4(0, 0, 0, 0);

        // Methods==========================================================================================
       
        public SpriteTransform()
        {
        }
       
        // Getters/Setters==================================================================================

       

}