camera implemented

This commit is contained in:
maxwes08
2026-09-02 13:55:55 +02:00
parent 5680beef02
commit cf1f083cc5
21 changed files with 289 additions and 29 deletions

View File

@@ -0,0 +1,44 @@
using Raylib_cs;
namespace PhysicsEngine
{
public enum MuiDarkColor : uint
{
// Backgrounds & Surfaces
BackgroundDefault = 0x121212FF, // #121212
SurfacePaper = 0x121212FF,
SurfaceVariant = 0x1E1E1EFF, // #1E1E1E
// Text Colors
TextPrimary = 0xFFFFFFFF, // #FFFFFF
TextSecondary = 0xFFFFFFB3,
TextDisabled = 0xFFFFFF80,
// Actions & States
ActionHover = 0xFFFFFF14,
ActionSelected = 0xFFFFFF29,
Divider = 0xFFFFFF1F,
// Brand / Theme Accents
PrimaryMain = 0x90CAF9FF, // #90CAF9
SecondaryMain = 0xCE93D8FF, // #CE93D8
ErrorMain = 0xEF5350FF, // #EF5350
WarningMain = 0xFF9800FF, // #FF9800
SuccessMain = 0x66BB6AFF // #66BB6A
}
public static class MuiDarkColorExtensions
{
public static Color ToColor(this MuiDarkColor colorEnum)
{
uint packedValue = (uint)colorEnum;
byte r = (byte)(packedValue >> 24);
byte g = (byte)((packedValue >> 16) & 0xFF);
byte b = (byte)((packedValue >> 8) & 0xFF);
byte a = (byte)(packedValue & 0xFF);
return new Color(r, g, b, a);
}
}
}