Commit c354759c authored by Stephanie Gawroriski's avatar Stephanie Gawroriski
Browse files

Deprecate NativeDisplayAccess.

parent 10f5f5c8
...@@ -21,41 +21,51 @@ import cc.squirreljme.runtime.cldc.lang.ApiLevel; ...@@ -21,41 +21,51 @@ import cc.squirreljme.runtime.cldc.lang.ApiLevel;
* *
* @since 2018/11/09 * @since 2018/11/09
*/ */
@Deprecated
public final class NativeDisplayAccess public final class NativeDisplayAccess
{ {
/** The number of parameters available. */ /** The number of parameters available. */
@Deprecated
public static final int NUM_PARAMETERS = public static final int NUM_PARAMETERS =
8; 8;
/** The pixel format. */ /** The pixel format. */
@Deprecated
public static final int PARAMETER_PIXELFORMAT = public static final int PARAMETER_PIXELFORMAT =
0; 0;
/** The buffer width. */ /** The buffer width. */
@Deprecated
public static final int PARAMETER_BUFFERWIDTH = public static final int PARAMETER_BUFFERWIDTH =
1; 1;
/** The buffer height. */ /** The buffer height. */
@Deprecated
public static final int PARAMETER_BUFFERHEIGHT = public static final int PARAMETER_BUFFERHEIGHT =
2; 2;
/** Alpha channel is used? */ /** Alpha channel is used? */
@Deprecated
public static final int PARAMETER_ALPHA = public static final int PARAMETER_ALPHA =
3; 3;
/** Buffer pitch. */ /** Buffer pitch. */
@Deprecated
public static final int PARAMETER_PITCH = public static final int PARAMETER_PITCH =
4; 4;
/** Buffer offset. */ /** Buffer offset. */
@Deprecated
public static final int PARAMETER_OFFSET = public static final int PARAMETER_OFFSET =
5; 5;
/** Virtual X offset. */ /** Virtual X offset. */
@Deprecated
public static final int PARAMETER_VIRTXOFF = public static final int PARAMETER_VIRTXOFF =
6; 6;
/** Virtual Y offset. */ /** Virtual Y offset. */
@Deprecated
public static final int PARAMETER_VIRTYOFF = public static final int PARAMETER_VIRTYOFF =
7; 7;
...@@ -64,6 +74,7 @@ public final class NativeDisplayAccess ...@@ -64,6 +74,7 @@ public final class NativeDisplayAccess
* *
* @since 2018/11/09 * @since 2018/11/09
*/ */
@Deprecated
private NativeDisplayAccess() private NativeDisplayAccess()
{ {
} }
...@@ -76,6 +87,7 @@ public final class NativeDisplayAccess ...@@ -76,6 +87,7 @@ public final class NativeDisplayAccess
* @since 2018/11/19 * @since 2018/11/19
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native boolean accelGfx(int __id); public static final native boolean accelGfx(int __id);
/** /**
...@@ -88,6 +100,7 @@ public final class NativeDisplayAccess ...@@ -88,6 +100,7 @@ public final class NativeDisplayAccess
* @since 2018/11/19 * @since 2018/11/19
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native Object accelGfxFunc(int __id, int __func, public static final native Object accelGfxFunc(int __id, int __func,
Object... __args); Object... __args);
...@@ -99,6 +112,7 @@ public final class NativeDisplayAccess ...@@ -99,6 +112,7 @@ public final class NativeDisplayAccess
* @since 2018/11/17 * @since 2018/11/17
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native int capabilities(int __id); public static final native int capabilities(int __id);
/** /**
...@@ -112,6 +126,7 @@ public final class NativeDisplayAccess ...@@ -112,6 +126,7 @@ public final class NativeDisplayAccess
* @since 2018/12/03 * @since 2018/12/03
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native void displayRepaint(int __id, public static final native void displayRepaint(int __id,
int __x, int __y, int __w, int __h); int __x, int __y, int __w, int __h);
...@@ -123,6 +138,7 @@ public final class NativeDisplayAccess ...@@ -123,6 +138,7 @@ public final class NativeDisplayAccess
* @since 2018/11/18 * @since 2018/11/18
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native Object framebufferObject(int __id); public static final native Object framebufferObject(int __id);
/** /**
...@@ -133,6 +149,7 @@ public final class NativeDisplayAccess ...@@ -133,6 +149,7 @@ public final class NativeDisplayAccess
* @since 2018/11/18 * @since 2018/11/18
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native int[] framebufferPalette(int __id); public static final native int[] framebufferPalette(int __id);
/** /**
...@@ -143,6 +160,7 @@ public final class NativeDisplayAccess ...@@ -143,6 +160,7 @@ public final class NativeDisplayAccess
* @since 2018/11/18 * @since 2018/11/18
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native int[] framebufferParameters(int __id); public static final native int[] framebufferParameters(int __id);
/** /**
...@@ -155,6 +173,7 @@ public final class NativeDisplayAccess ...@@ -155,6 +173,7 @@ public final class NativeDisplayAccess
* @since 2018/12/02 * @since 2018/12/02
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native int framebufferStateCount(int __id); public static final native int framebufferStateCount(int __id);
/** /**
...@@ -165,6 +184,7 @@ public final class NativeDisplayAccess ...@@ -165,6 +184,7 @@ public final class NativeDisplayAccess
* @since 2018/11/17 * @since 2018/11/17
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native boolean isUpsideDown(int __id); public static final native boolean isUpsideDown(int __id);
/** /**
...@@ -175,6 +195,7 @@ public final class NativeDisplayAccess ...@@ -175,6 +195,7 @@ public final class NativeDisplayAccess
* @since 2018/11/16 * @since 2018/11/16
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native int numDisplays(); public static final native int numDisplays();
/** /**
...@@ -185,6 +206,7 @@ public final class NativeDisplayAccess ...@@ -185,6 +206,7 @@ public final class NativeDisplayAccess
* @since 2018/12/03 * @since 2018/12/03
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native void registerEventCallback( public static final native void registerEventCallback(
NativeDisplayEventCallback __cb); NativeDisplayEventCallback __cb);
...@@ -196,6 +218,7 @@ public final class NativeDisplayAccess ...@@ -196,6 +218,7 @@ public final class NativeDisplayAccess
* @since 2018/11/18 * @since 2018/11/18
*/ */
@Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225) @Api(ApiLevel.LEVEL_SQUIRRELJME_0_2_0_20181225)
@Deprecated
public static final native void setDisplayTitle(int __id, String __t); public static final native void setDisplayTitle(int __id, String __t);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment