Follow-up to #64.

- Removed NEW_SLIDER option, and use the skin "SliderStyle" instead.  Uses the new style by default, unless STYLE_PEPPYSLIDER is specified.
- Check if OpenGL 3.0 is supported before trying to draw new style sliders.
- Fixed compilation warnings; removed unneeded fields and imports.
- Filled in some missing Javadocs.
- Style changes.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-06-08 15:02:28 -04:00
parent 9c8a8f24c6
commit b6f208a47d
10 changed files with 192 additions and 188 deletions

View File

@@ -31,10 +31,10 @@ public class Skin {
/** Slider styles. */
public static final byte
STYLE_PEPPYSLIDER = 1,
STYLE_MMSLIDER = 2,
STYLE_TOONSLIDER = 3,
STYLE_OPENGLSLIDER = 4;
STYLE_PEPPYSLIDER = 1, // fallback
STYLE_MMSLIDER = 2, // default (requires OpenGL 3.0)
STYLE_TOONSLIDER = 3, // not implemented
STYLE_OPENGLSLIDER = 4; // not implemented
/** The latest skin version. */
protected static final int LATEST_VERSION = 2;
@@ -133,7 +133,7 @@ public class Skin {
protected boolean comboBurstRandom = false;
/** The slider style to use (see STYLE_* constants). */
protected byte sliderStyle = 2;
protected byte sliderStyle = STYLE_MMSLIDER;
/**
* [Colours]