mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-07-02 19:13:43 -04:00
Update enum/color names to match C# naming convention (#224)
This commit is contained in:
@ -33,7 +33,7 @@ public class RawData
|
||||
"resources/fudesumi.raw",
|
||||
384,
|
||||
512,
|
||||
PixelFormat.PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
|
||||
PixelFormat.UncompressedR8G8B8A8,
|
||||
0
|
||||
);
|
||||
Texture2D fudesumi = LoadTextureFromImage(fudesumiRaw);
|
||||
@ -51,11 +51,11 @@ public class RawData
|
||||
{
|
||||
if (((x / 32 + y / 32) / 1) % 2 == 0)
|
||||
{
|
||||
pixels[y * width + x] = Color.ORANGE;
|
||||
pixels[y * width + x] = Color.Orange;
|
||||
}
|
||||
else
|
||||
{
|
||||
pixels[y * width + x] = Color.GOLD;
|
||||
pixels[y * width + x] = Color.Gold;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -66,7 +66,7 @@ public class RawData
|
||||
Data = pixels,
|
||||
Width = width,
|
||||
Height = height,
|
||||
Format = PixelFormat.PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
|
||||
Format = PixelFormat.UncompressedR8G8B8A8,
|
||||
Mipmaps = 1,
|
||||
};
|
||||
Texture2D checkedTex = LoadTextureFromImage(checkedIm);
|
||||
@ -84,18 +84,18 @@ public class RawData
|
||||
// Draw
|
||||
//----------------------------------------------------------------------------------
|
||||
BeginDrawing();
|
||||
ClearBackground(Color.RAYWHITE);
|
||||
ClearBackground(Color.RayWhite);
|
||||
|
||||
int x = screenWidth / 2 - checkedTex.Width / 2;
|
||||
int y = screenHeight / 2 - checkedTex.Height / 2;
|
||||
DrawTexture(checkedTex, x, y, ColorAlpha(Color.WHITE, 0.5f));
|
||||
DrawTexture(fudesumi, 430, -30, Color.WHITE);
|
||||
DrawTexture(checkedTex, x, y, ColorAlpha(Color.White, 0.5f));
|
||||
DrawTexture(fudesumi, 430, -30, Color.White);
|
||||
|
||||
DrawText("CHECKED TEXTURE ", 84, 85, 30, Color.BROWN);
|
||||
DrawText("GENERATED by CODE", 72, 148, 30, Color.BROWN);
|
||||
DrawText("and RAW IMAGE LOADING", 46, 210, 30, Color.BROWN);
|
||||
DrawText("CHECKED TEXTURE ", 84, 85, 30, Color.Brown);
|
||||
DrawText("GENERATED by CODE", 72, 148, 30, Color.Brown);
|
||||
DrawText("and RAW IMAGE LOADING", 46, 210, 30, Color.Brown);
|
||||
|
||||
DrawText("(c) Fudesumi sprite by Eiden Marsal", 310, screenHeight - 20, 10, Color.BROWN);
|
||||
DrawText("(c) Fudesumi sprite by Eiden Marsal", 310, screenHeight - 20, 10, Color.Brown);
|
||||
|
||||
EndDrawing();
|
||||
//----------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user