Skip to content

Commit

Permalink
Fix indent hx for mesa, sdl
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Feb 2, 2024
1 parent 1ec580c commit 164f352
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 76 deletions.
2 changes: 1 addition & 1 deletion libs/mesa/mesa/Context.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ abstract Context(hl.Abstract<"mesa_ctx">) {
public static var ROW_LENGTH = 0x10;
public static var Y_UP = 0x11;

public static var WIDTH = 0x20;
public static var WIDTH = 0x20;
public static var HEIGHT = 0x21;
public static var FORMAT = 0x22;
public static var TYPE = 0x23;
Expand Down
23 changes: 12 additions & 11 deletions libs/mesa/mesa/GL.hx
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ class GL {
/* BlendEquationSeparate */
public static inline var FUNC_ADD = 0x8006;
public static inline var FUNC_MIN = 0x8007;
public static inline var FUNC_MAX = 0x8008;
public static inline var FUNC_MAX = 0x8008;
public static inline var BLEND_EQUATION = 0x8009;
public static inline var BLEND_EQUATION_RGB = 0x8009; /* same as BLEND_EQUATION */
public static inline var BLEND_EQUATION_ALPHA = 0x883D;
Expand Down Expand Up @@ -648,13 +648,13 @@ class GL {
public static inline var RG16UI = 0x823A;
public static inline var RG16F = 0x822F;
public static inline var RG32F = 0x8230;
public static inline var R8 = 0x8229;
public static inline var RG8 = 0x822B;
public static inline var R16F = 0x822D;
public static inline var R32F = 0x822E;
public static inline var UNSIGNED_INT_2_10_10_10_REV = 0x8368;
public static inline var UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B;
public static inline var UNSIGNED_INT_24_8 = 0x84FA;
public static inline var R8 = 0x8229;
public static inline var RG8 = 0x822B;
public static inline var R16F = 0x822D;
public static inline var R32F = 0x822E;
public static inline var UNSIGNED_INT_2_10_10_10_REV = 0x8368;
public static inline var UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B;
public static inline var UNSIGNED_INT_24_8 = 0x84FA;

/* PixelType */
/* UNSIGNED_BYTE */
Expand Down Expand Up @@ -754,7 +754,7 @@ class GL {
public static inline var TEXTURE_2D_MULTISAMPLE = 0x9100;
public static inline var TEXTURE_3D = 0x806F;
public static inline var TEXTURE = 0x1702;
public static inline var TEXTURE_2D_ARRAY = 0x8C1A;
public static inline var TEXTURE_2D_ARRAY = 0x8C1A;

public static inline var TEXTURE_CUBE_MAP_SEAMLESS = 0x884F;
public static inline var TEXTURE_CUBE_MAP = 0x8513;
Expand All @@ -771,6 +771,7 @@ class GL {
public static inline var READ_ONLY = 0x88B8;
public static inline var WRITE_ONLY = 0x88B9;
public static inline var READ_WRITE = 0x88BA;

public static inline var IMAGE_1D = 0x904C;
public static inline var IMAGE_2D = 0x904D;
public static inline var IMAGE_3D = 0x904E;
Expand Down Expand Up @@ -867,14 +868,14 @@ class GL {
public static inline var RENDERBUFFER = 0x8D41;
public static inline var READ_FRAMEBUFFER = 0x8CA8;
public static inline var DRAW_FRAMEBUFFER = 0x8CA9;
public static inline var DRAW_INDIRECT_BUFFER = 0x8F3F;
public static inline var DRAW_INDIRECT_BUFFER = 0x8F3F;

public static inline var RGBA4 = 0x8056;
public static inline var RGB5_A1 = 0x8057;
public static inline var RGB565 = 0x8D62;
public static inline var DEPTH_COMPONENT16 = 0x81A5;
public static inline var DEPTH_COMPONENT24 = 0x81A6;
public static inline var DEPTH24_STENCIL8 = 0x88F0;
public static inline var DEPTH24_STENCIL8 = 0x88F0;
public static inline var STENCIL_INDEX = 0x1901;
public static inline var STENCIL_INDEX8 = 0x8D48;
public static inline var DEPTH_STENCIL = 0x84F9;
Expand Down
2 changes: 1 addition & 1 deletion libs/sdl/sdl/Cursor.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sdl;
private typedef CursorPtr = hl.Abstract<"sdl_cursor">;

enum abstract CursorKind(Int) {
var Arrow = 0;
var Arrow = 0;
var IBeam = 1;
var Wait = 2;
var CrossHair = 3;
Expand Down
72 changes: 36 additions & 36 deletions libs/sdl/sdl/Event.hx
Original file line number Diff line number Diff line change
Expand Up @@ -22,49 +22,49 @@ package sdl;
}

enum abstract EventType(Int) {
var Quit = 0;
var MouseMove = 1;
var MouseLeave = 2;
var MouseDown = 3;
var MouseUp = 4;
var MouseWheel = 5;
var WindowState = 6;
var KeyDown = 7;
var KeyUp = 8;
var TextInput = 9;
var GControllerAdded = 100;
var GControllerRemoved = 101;
var GControllerDown = 102;
var GControllerUp = 103;
var GControllerAxis = 104;
var TouchDown = 200;
var TouchUp = 201;
var TouchMove = 202;
var JoystickAxisMotion = 300;
var JoystickBallMotion = 301;
var JoystickHatMotion = 302;
var JoystickButtonDown = 303;
var JoystickButtonUp = 304;
var JoystickAdded = 305;
var JoystickRemoved = 306;
var Quit = 0;
var MouseMove = 1;
var MouseLeave = 2;
var MouseDown = 3;
var MouseUp = 4;
var MouseWheel = 5;
var WindowState = 6;
var KeyDown = 7;
var KeyUp = 8;
var TextInput = 9;
var GControllerAdded = 100;
var GControllerRemoved = 101;
var GControllerDown = 102;
var GControllerUp = 103;
var GControllerAxis = 104;
var TouchDown = 200;
var TouchUp = 201;
var TouchMove = 202;
var JoystickAxisMotion = 300;
var JoystickBallMotion = 301;
var JoystickHatMotion = 302;
var JoystickButtonDown = 303;
var JoystickButtonUp = 304;
var JoystickAdded = 305;
var JoystickRemoved = 306;
var DropStart = 400;
var DropFile = 401;
var DropText = 402;
var DropEnd = 403;
}

enum abstract WindowStateChange(Int) {
var Show = 0;
var Hide = 1;
var Expose = 2;
var Move = 3;
var Resize = 4;
var Show = 0;
var Hide = 1;
var Expose = 2;
var Move = 3;
var Resize = 4;
var Minimize= 5;
var Maximize= 6;
var Restore = 7;
var Enter = 8;
var Leave = 9;
var Focus = 10;
var Blur = 11;
var Close = 12;
var Restore = 7;
var Enter = 8;
var Leave = 9;
var Focus = 10;
var Blur = 11;
var Close = 12;
}
51 changes: 25 additions & 26 deletions libs/sdl/sdl/GL.hx
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ class GL {
/* BlendEquationSeparate */
public static inline var FUNC_ADD = 0x8006;
public static inline var FUNC_MIN = 0x8007;
public static inline var FUNC_MAX = 0x8008;
public static inline var FUNC_MAX = 0x8008;
public static inline var BLEND_EQUATION = 0x8009;
public static inline var BLEND_EQUATION_RGB = 0x8009; /* same as BLEND_EQUATION */
public static inline var BLEND_EQUATION_ALPHA = 0x883D;
Expand Down Expand Up @@ -538,7 +538,7 @@ class GL {
public static inline var UNIFORM_BUFFER = 0x8A11;
public static inline var QUERY_BUFFER = 0x9192;

public static inline var SHADER_STORAGE_BLOCK = 0x92E6;
public static inline var SHADER_STORAGE_BLOCK = 0x92E6;

public static inline var STREAM_DRAW = 0x88E0;
public static inline var STATIC_DRAW = 0x88E4;
Expand Down Expand Up @@ -689,13 +689,13 @@ class GL {
public static inline var RG16UI = 0x823A;
public static inline var RG16F = 0x822F;
public static inline var RG32F = 0x8230;
public static inline var R8 = 0x8229;
public static inline var RG8 = 0x822B;
public static inline var R16F = 0x822D;
public static inline var R32F = 0x822E;
public static inline var UNSIGNED_INT_2_10_10_10_REV = 0x8368;
public static inline var UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B;
public static inline var UNSIGNED_INT_24_8 = 0x84FA;
public static inline var R8 = 0x8229;
public static inline var RG8 = 0x822B;
public static inline var R16F = 0x822D;
public static inline var R32F = 0x822E;
public static inline var UNSIGNED_INT_2_10_10_10_REV = 0x8368;
public static inline var UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B;
public static inline var UNSIGNED_INT_24_8 = 0x84FA;

/* PixelType */
/* UNSIGNED_BYTE */
Expand Down Expand Up @@ -795,7 +795,7 @@ class GL {
public static inline var TEXTURE_2D_MULTISAMPLE = 0x9100;
public static inline var TEXTURE_3D = 0x806F;
public static inline var TEXTURE = 0x1702;
public static inline var TEXTURE_2D_ARRAY = 0x8C1A;
public static inline var TEXTURE_2D_ARRAY = 0x8C1A;

public static inline var TEXTURE_1D = 0x0DE0;
public static inline var TEXTURE_1D_ARRAY = 0x8C18;
Expand All @@ -813,20 +813,19 @@ class GL {
public static inline var MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;

/* Image */

public static inline var READ_ONLY = 0x88B8;
public static inline var WRITE_ONLY = 0x88B9;
public static inline var READ_WRITE = 0x88BA;

public static inline var IMAGE_1D = 0x904C;
public static inline var IMAGE_2D = 0x904D;
public static inline var IMAGE_3D = 0x904E;
public static inline var IMAGE_2D_RECT = 0x904F;
public static inline var IMAGE_CUBE = 0x9050;
public static inline var IMAGE_BUFFER = 0x9051;
public static inline var IMAGE_1D_ARRAY = 0x9052;
public static inline var IMAGE_2D_ARRAY = 0x9053;
public static inline var IMAGE_CUBE_MAP_ARRAY = 0x9054;
public static inline var READ_ONLY = 0x88B8;
public static inline var WRITE_ONLY = 0x88B9;
public static inline var READ_WRITE = 0x88BA;

public static inline var IMAGE_1D = 0x904C;
public static inline var IMAGE_2D = 0x904D;
public static inline var IMAGE_3D = 0x904E;
public static inline var IMAGE_2D_RECT = 0x904F;
public static inline var IMAGE_CUBE = 0x9050;
public static inline var IMAGE_BUFFER = 0x9051;
public static inline var IMAGE_1D_ARRAY = 0x9052;
public static inline var IMAGE_2D_ARRAY = 0x9053;
public static inline var IMAGE_CUBE_MAP_ARRAY = 0x9054;

/* TextureUnit */
public static inline var TEXTURE0 = 0x84C0;
Expand Down Expand Up @@ -914,14 +913,14 @@ class GL {
public static inline var RENDERBUFFER = 0x8D41;
public static inline var READ_FRAMEBUFFER = 0x8CA8;
public static inline var DRAW_FRAMEBUFFER = 0x8CA9;
public static inline var DRAW_INDIRECT_BUFFER = 0x8F3F;
public static inline var DRAW_INDIRECT_BUFFER = 0x8F3F;

public static inline var RGBA4 = 0x8056;
public static inline var RGB5_A1 = 0x8057;
public static inline var RGB565 = 0x8D62;
public static inline var DEPTH_COMPONENT16 = 0x81A5;
public static inline var DEPTH_COMPONENT24 = 0x81A6;
public static inline var DEPTH24_STENCIL8 = 0x88F0;
public static inline var DEPTH24_STENCIL8 = 0x88F0;
public static inline var STENCIL_INDEX = 0x1901;
public static inline var STENCIL_INDEX8 = 0x8D48;
public static inline var DEPTH_STENCIL = 0x84F9;
Expand Down
2 changes: 1 addition & 1 deletion libs/sdl/sdl/Surface.hx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ abstract Surface(SurfacePtr) {
}

@:hlNative("sdl","surface_from")
public static function from( pixels : hl.Bytes, width : Int, height : Int, depth : Int, pitch : Int, rmask : Int, gmask : Int, bmask : Int, amask : Int ) : Surface {
public static function from( pixels : hl.Bytes, width : Int, height : Int, depth : Int, pitch : Int, rmask : Int, gmask : Int, bmask : Int, amask : Int ) : Surface {
return null;
}

Expand Down

0 comments on commit 164f352

Please sign in to comment.