Changes
This commit is contained in:
parent
50151cdcfb
commit
c4721581fd
@ -4,19 +4,24 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Struct;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct;
|
||||
import com.openeggbert.jdotnet.System.uint;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author robertvokac
|
||||
*/
|
||||
public class Color extends Struct<Color> {
|
||||
public class Color extends struct<Color> {
|
||||
|
||||
public static final Color CornflowerBlue;
|
||||
public static final Color White;
|
||||
private long _packedValue;
|
||||
|
||||
public static Color FromNonPremultiplied(int r, int g, int b, int a) {
|
||||
return null;
|
||||
//todo
|
||||
}
|
||||
|
||||
static {
|
||||
CornflowerBlue = new Color(4293760356l);
|
||||
White = new Color(uint.MaxValue);
|
||||
|
@ -11,7 +11,7 @@ import com.openeggbert.jdotnet.System.IDisposable;
|
||||
* @author robertvokac
|
||||
*/
|
||||
public abstract class ContentManager implements IDisposable {
|
||||
public abstract <T> T Load(String assetName);
|
||||
public abstract <T> T Load(String assetName, Class<T> type);
|
||||
public String getRootDirectory() {
|
||||
return "";
|
||||
//todo
|
||||
|
@ -72,5 +72,8 @@ public class Game {
|
||||
return null;
|
||||
//todo
|
||||
}
|
||||
public void Run() {
|
||||
//todo
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4,14 +4,14 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Readonly;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.readonly;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author robertvokac
|
||||
*/
|
||||
public class BlendState extends GraphicsResource{
|
||||
public static @Readonly final BlendState AlphaBlend = new BlendState("BlendState.AlphaBlend", Blend.One, Blend.InverseSourceAlpha);
|
||||
public static @readonly final BlendState AlphaBlend = new BlendState("BlendState.AlphaBlend", Blend.One, Blend.InverseSourceAlpha);
|
||||
|
||||
private BlendState(String blendStateAlphaBlend, Blend blend, Blend blend0) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
|
@ -4,9 +4,10 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Nullable;
|
||||
import com.openeggbert.jxna.Microsoft.Xna.Framework.Color;
|
||||
import com.openeggbert.jxna.Microsoft.Xna.Framework.Rectangle;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.nullable;
|
||||
import com.openeggbert.jxna.Microsoft.Xna.Framework.Vector2;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -27,10 +28,13 @@ public class SpriteBatch extends GraphicsResource {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
public void Draw(Texture2D texture, Rectangle destinationRectangle, @Nullable Rectangle sourceRectangle, Color color) {
|
||||
|
||||
}
|
||||
public void Draw(Texture2D texture, Rectangle destinationRectangle, @nullable Rectangle sourceRectangle, Color color) {
|
||||
|
||||
}
|
||||
|
||||
public void Draw(Texture2D texture, Rectangle destinationRectangle, @nullable Rectangle sourceRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth) {
|
||||
|
||||
}
|
||||
|
||||
public void End() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
|
@ -4,10 +4,26 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.internal;
|
||||
import com.openeggbert.jxna.Microsoft.Xna.Framework.Rectangle;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author robertvokac
|
||||
*/
|
||||
public class Texture2D {
|
||||
public class Texture2D extends Texture{
|
||||
|
||||
private @internal int width;
|
||||
|
||||
private @internal int height;
|
||||
|
||||
public Rectangle Bounds() {
|
||||
return new Rectangle(0, 0, width, height);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void Dispose() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Struct;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
@ -16,7 +16,7 @@ import lombok.Setter;
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Viewport extends Struct<Viewport> {
|
||||
public class Viewport extends struct<Viewport> {
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework.Input;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Struct;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
@ -12,7 +12,7 @@ import lombok.Getter;
|
||||
* @author robertvokac
|
||||
*/
|
||||
@Getter
|
||||
public class GamePadButtons extends Struct<GamePadButtons> {
|
||||
public class GamePadButtons extends struct<GamePadButtons> {
|
||||
|
||||
@Override
|
||||
public GamePadButtons copy() {
|
||||
|
@ -4,14 +4,14 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework.Input;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Struct;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author robertvokac
|
||||
*/
|
||||
public class GamePadState extends Struct<GamePadState>{
|
||||
public class GamePadState extends struct<GamePadState>{
|
||||
|
||||
@Override
|
||||
public GamePadState copy() {
|
||||
|
@ -4,13 +4,13 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework.Input;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Struct;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author robertvokac
|
||||
*/
|
||||
public class KeyboardState extends Struct<KeyboardState>{
|
||||
public class KeyboardState extends struct<KeyboardState>{
|
||||
|
||||
public boolean IsKeyDown(Keys key) {
|
||||
return true;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework.Input;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Struct;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@ -14,7 +14,7 @@ import lombok.NoArgsConstructor;
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class MouseState extends Struct<MouseState> {
|
||||
public class MouseState extends struct<MouseState> {
|
||||
|
||||
private int _x;
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework.Input.Touch;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Struct;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct;
|
||||
import com.openeggbert.jdotnet.System.Collections.Generic.List_;
|
||||
import java.util.Iterator;
|
||||
import lombok.Getter;
|
||||
@ -13,7 +13,7 @@ import lombok.Getter;
|
||||
*
|
||||
* @author robertvokac
|
||||
*/
|
||||
public class TouchCollection extends Struct<TouchCollection> implements Iterable<TouchLocation> {
|
||||
public class TouchCollection extends struct<TouchCollection> implements Iterable<TouchLocation> {
|
||||
|
||||
private List_<TouchLocation> touches = new List_<>();
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework.Input.Touch;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Struct;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct;
|
||||
import com.openeggbert.jxna.Microsoft.Xna.Framework.Vector2;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
@ -14,7 +14,7 @@ import lombok.NoArgsConstructor;
|
||||
* @author robertvokac
|
||||
*/
|
||||
@AllArgsConstructor @NoArgsConstructor
|
||||
public class TouchLocation extends Struct<TouchLocation> {
|
||||
public class TouchLocation extends struct<TouchLocation> {
|
||||
|
||||
public int Id;
|
||||
public Vector2 Position;
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework.Input.Touch;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Struct;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@ -14,7 +14,7 @@ import lombok.NoArgsConstructor;
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class TouchPanelCapabilities extends Struct<TouchPanelCapabilities>{
|
||||
public class TouchPanelCapabilities extends struct<TouchPanelCapabilities>{
|
||||
private boolean hasPressure;
|
||||
|
||||
private boolean isConnected;
|
||||
|
@ -13,7 +13,7 @@ import lombok.NoArgsConstructor;
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Rectangle extends com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Struct<Rectangle> {
|
||||
public class Rectangle extends com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct<Rectangle> {
|
||||
|
||||
private static final Rectangle emptyRectangle = new Rectangle().reset();
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
package com.openeggbert.jxna.Microsoft.Xna.Framework;
|
||||
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.Struct;
|
||||
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@ -13,7 +13,7 @@ import lombok.NoArgsConstructor;
|
||||
* @author robertvokac
|
||||
*/
|
||||
@AllArgsConstructor @NoArgsConstructor
|
||||
public class Vector2 extends Struct<Vector2> {
|
||||
public class Vector2 extends struct<Vector2> {
|
||||
|
||||
public float X;
|
||||
public float Y;
|
||||
|
Reference in New Issue
Block a user