Skip to content

Commit

Permalink
Update Umka version
Browse files Browse the repository at this point in the history
  • Loading branch information
skejeton committed Aug 28, 2024
1 parent d9f88cf commit ffbcec1
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 44 deletions.
2 changes: 1 addition & 1 deletion lib/sokol
52 changes: 24 additions & 28 deletions src/staembed.c
Original file line number Diff line number Diff line change
Expand Up @@ -1490,10 +1490,10 @@ const char *th_em_modulesrc[] = {
"\n"
"//~~Direction constants used for autotile\n"
"const (\n"
"\ttop* = 1\n"
"\ttop* = 1\n"
"\tright* = 2\n"
"\tbot* = 4\n"
"\tleft* = 8\n"
"\tbot* = 4\n"
"\tleft* = 8\n"
")\n"
"//~~\n"
"\n"
Expand Down Expand Up @@ -2499,14 +2499,14 @@ const char *th_em_modulesrc[] = {
"\n"
"//~~Color constants\n"
"const (\n"
"\tblack* = 0xff\n"
"\twhite* = 0xffffffff\n"
"\tred* = 0xff0000ff\n"
"\tgreen* = 0x00ff00ff\n"
"\tblue* = 0x0000ffff\n"
"\tyellow* = 0xffff00ff\n"
"\tblack* = 0xff\n"
"\twhite* = 0xffffffff\n"
"\tred* = 0xff0000ff\n"
"\tgreen* = 0x00ff00ff\n"
"\tblue* = 0x0000ffff\n"
"\tyellow* = 0xffff00ff\n"
"\tmagenta* = 0xff00ffff\n"
"\tcyan* = 0x00ffffff\n"
"\tcyan* = 0x00ffffff\n"
")\n"
"//~~\n"
"\n"
Expand Down Expand Up @@ -2827,10 +2827,8 @@ const char *th_em_modulesrc[] = {
"\n"
"\n"
"//~~Default shader constants\n"
"const (\n"
"\tdefaultImageShader* = Shader{1}\n"
"\tdefaultCanvasShader* = Shader{2}\n"
")\n"
"defaultImageShader* := Shader{1}\n"
"defaultCanvasShader* := Shader{2}\n"
"//~~\n"
"\n"
"//~~struct Uniform\n"
Expand Down Expand Up @@ -5230,10 +5228,10 @@ const char *th_em_moduledocs[] = {
"Direction constants used for autotile\n"
"\n"
"const (\n"
"\ttop* = 1\n"
"\ttop* = 1\n"
"\tright* = 2\n"
"\tbot* = 4\n"
"\tleft* = 8\n"
"\tbot* = 4\n"
"\tleft* = 8\n"
")\n"
"\n"
"\n"
Expand Down Expand Up @@ -5994,14 +5992,14 @@ const char *th_em_moduledocs[] = {
"Color constants\n"
"\n"
"const (\n"
"\tblack* = 0xff\n"
"\twhite* = 0xffffffff\n"
"\tred* = 0xff0000ff\n"
"\tgreen* = 0x00ff00ff\n"
"\tblue* = 0x0000ffff\n"
"\tyellow* = 0xffff00ff\n"
"\tblack* = 0xff\n"
"\twhite* = 0xffffffff\n"
"\tred* = 0xff0000ff\n"
"\tgreen* = 0x00ff00ff\n"
"\tblue* = 0x0000ffff\n"
"\tyellow* = 0xffff00ff\n"
"\tmagenta* = 0xff00ffff\n"
"\tcyan* = 0x00ffffff\n"
"\tcyan* = 0x00ffffff\n"
")\n"
"\n"
"\n"
Expand Down Expand Up @@ -6296,10 +6294,8 @@ const char *th_em_moduledocs[] = {
"\n"
"Default shader constants\n"
"\n"
"const (\n"
"\tdefaultImageShader* = Shader{1}\n"
"\tdefaultCanvasShader* = Shader{2}\n"
")\n"
"defaultImageShader* := Shader{1}\n"
"defaultCanvasShader* := Shader{2}\n"
"\n"
"\n"
"---------\n"
Expand Down
6 changes: 2 additions & 4 deletions umka/shader.um
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ type Shader* = struct {


//~~Default shader constants
const (
defaultImageShader* = Shader{1}
defaultCanvasShader* = Shader{2}
)
defaultImageShader* := Shader{1}
defaultCanvasShader* := Shader{2}
//~~

//~~struct Uniform
Expand Down
14 changes: 7 additions & 7 deletions umka/th.um
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,14 @@ fn __error*(msg: str) {

//~~Color constants
const (
black* = 0xff
white* = 0xffffffff
red* = 0xff0000ff
green* = 0x00ff00ff
blue* = 0x0000ffff
yellow* = 0xffff00ff
black* = 0xff
white* = 0xffffffff
red* = 0xff0000ff
green* = 0x00ff00ff
blue* = 0x0000ffff
yellow* = 0xffff00ff
magenta* = 0xff00ffff
cyan* = 0x00ffffff
cyan* = 0x00ffffff
)
//~~

Expand Down
6 changes: 3 additions & 3 deletions umka/tilemap.um
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (

//~~Direction constants used for autotile
const (
top* = 1
top* = 1
right* = 2
bot* = 4
left* = 8
bot* = 4
left* = 8
)
//~~

Expand Down

0 comments on commit ffbcec1

Please sign in to comment.