//create our font
try {
atlas = new Texture(Util.getResource("res/slider.png"), Texture.NEAREST);
//ideally you would use a texture packer like in LibGDX
track = new TextureRegion(atlas, 0, 0, 64, 256);
thumb = new TextureRegion(atlas, 65, 0, 64, 128);
int width = track.getWidth();
int height = track.getHeight();
//create a new FBO with the width and height of our track
if (Texture.isNPOTSupported()) {
fbo = new FrameBuffer(width, height);
fboRegion = new TextureRegion(fbo.getTexture());
} else {
int texWidth = Texture.toPowerOfTwo(width);
int texHeight = Texture.toPowerOfTwo(height);
fbo = new FrameBuffer(texWidth, texHeight);
fboRegion = new TextureRegion(fbo.getTexture(), 0, texHeight-height, width, height);
}
fboRegion.flip(false, true);
//GL uses lower left coords... we use upper-left for textures, so we need to flip Y
} catch (IOException e) {