Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1051 | chris | 1 | package com.gebauz.bauzoid.graphics.sprite; |
| 2 | |||
| 3 | import java.util.Vector; |
||
| 4 | |||
| 5 | /** Helper class for loading an Sprite Region/Sprite Atlas Definition. */ |
||
| 6 | public class SpriteRegionDefinition |
||
| 7 | { |
||
| 8 | // Constants======================================================================================== |
||
| 9 | |||
| 10 | // Embedded Types=================================================================================== |
||
| 11 | |||
| 12 | public static class FrameInfo |
||
| 13 | { |
||
| 14 | public float x = 0; |
||
| 15 | public float y = 0; |
||
| 16 | public float w = 0; |
||
| 17 | public float h = 0; |
||
| 18 | |||
| 19 | public FrameInfo(float _x, float _y, float _w, float _h) |
||
| 20 | { |
||
| 21 | x = _x; y = _y; w = _w; h = _h; |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | // Fields=========================================================================================== |
||
| 26 | |||
| 27 | public Vector<FrameInfo> frames = new Vector<FrameInfo>(); |
||
| 28 | |||
| 29 | // Methods========================================================================================== |
||
| 30 | |||
| 31 | // Getters/Setters================================================================================== |
||
| 32 | |||
| 33 | } |