fix: reserved keyword char
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -295,7 +295,7 @@ const int hex_chars[] = int[16](
|
||||
0x46
|
||||
);
|
||||
|
||||
bool char(vec2 pos, int code)
|
||||
bool chr(vec2 pos, int code)
|
||||
{
|
||||
if (pos.x < .0 || pos.y < .0 || pos.x >= 1. || pos.y >= 1.) {
|
||||
return false;
|
||||
@@ -309,7 +309,7 @@ bool char(vec2 pos, int code)
|
||||
|
||||
float char_at(vec2 uv, vec2 pos, int code)
|
||||
{
|
||||
return char(uv - pos, code) ? 1. : 0.;
|
||||
return chr(uv - pos, code) ? 1. : 0.;
|
||||
}
|
||||
|
||||
float write_5(vec2 uv, vec2 pos, int str[5])
|
||||
|
||||
Reference in new issue
Block a user