2
0
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:
Danil
2024-01-18 21:00:57 +02:00
committed by GitHub
parent 2a1889403d
commit 70d86837d4
123 changed files with 1843 additions and 1847 deletions

View File

@ -60,7 +60,7 @@ public class ParticlesBlending
float gravity = 3.0f;
Texture2D smoke = LoadTexture("resources/spark_flame.png");
BlendMode blending = BlendMode.BLEND_ALPHA;
BlendMode blending = BlendMode.Alpha;
SetTargetFPS(60);
//--------------------------------------------------------------------------------------
@ -102,15 +102,15 @@ public class ParticlesBlending
}
}
if (IsKeyPressed(KeyboardKey.KEY_SPACE))
if (IsKeyPressed(KeyboardKey.Space))
{
if (blending == BlendMode.BLEND_ALPHA)
if (blending == BlendMode.Alpha)
{
blending = BlendMode.BLEND_ADDITIVE;
blending = BlendMode.Additive;
}
else
{
blending = BlendMode.BLEND_ALPHA;
blending = BlendMode.Alpha;
}
}
//----------------------------------------------------------------------------------
@ -118,7 +118,7 @@ public class ParticlesBlending
// Draw
//----------------------------------------------------------------------------------
BeginDrawing();
ClearBackground(Color.DARKGRAY);
ClearBackground(Color.DarkGray);
BeginBlendMode(blending);
@ -145,15 +145,15 @@ public class ParticlesBlending
EndBlendMode();
DrawText("PRESS SPACE to CHANGE BLENDING MODE", 180, 20, 20, Color.BLACK);
DrawText("PRESS SPACE to CHANGE BLENDING MODE", 180, 20, 20, Color.Black);
if (blending == BlendMode.BLEND_ALPHA)
if (blending == BlendMode.Alpha)
{
DrawText("ALPHA BLENDING", 290, screenHeight - 40, 20, Color.BLACK);
DrawText("ALPHA BLENDING", 290, screenHeight - 40, 20, Color.Black);
}
else
{
DrawText("ADDITIVE BLENDING", 280, screenHeight - 40, 20, Color.RAYWHITE);
DrawText("ADDITIVE BLENDING", 280, screenHeight - 40, 20, Color.RayWhite);
}
EndDrawing();