Go to the documentation of this file.00001 package uk.co.blogspot.fractiousg.texample;
00002
00003 class TextureRegion {
00004
00005
00006 public float u1, v1;
00007 public float u2, v2;
00008
00009
00010
00011
00012
00013
00014 public TextureRegion(float texWidth, float texHeight, float x, float y, float width, float height) {
00015 this.u1 = x / texWidth;
00016 this.v1 = y / texHeight;
00017 this.u2 = this.u1 + ( width / texWidth );
00018 this.v2 = this.v1 + ( height / texHeight );
00019 }
00020 }