71 new commits
Run the "root" surface and that'll pump the events to the relevant windowslibsilk is just going to be a native counterpart to the HLU that basically implements an almost identical API, but in C (+COM?)Sin on a byte).ITrigonometricFunctions etc to get the sin and cos functionsSin<byte>Length()Vector2.Length in a lot of places anywaySDL_Event event;
while (SDL_PollEvent(&event)) {
switch (event.type) { .... }
}public void Thing<T>(T x) where T : notnull {
if(x is ISomeMathInterface<T>) {
Func<T>(x);
}
void Func<T1>(T1 x) where T1 : ISomeMathInterface<T> {
// ...
}
}public void Thing<T>(T x) where T : notnull {
return x switch
{
float x => (T) (object) Func(x),
double x => (T) (object) Func(x),
// ...
};
void Func<T1>(T1 x) where T1 : ISomeMathInterface<T> {
// ...
}
}