SDL style event handling would be quite nice. i always thought glfw's event processing was terrible
SDL style event handling would be quite nice. i always thought glfw's event processing was terrible
i just like to do
i just like to do
SDL_Event event;
while (SDL_PollEvent(&event)) {
switch (event.type) { .... }
}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 anywayScalar.Sqrt<byte>(64) would do the correct thingreturn (T) (object) (sbyte) (float) Math.Sqrt((float) (sbyte) (object) x); its not optimized - but should work finereturn (T)(object)(sbyte)(float)Sse.SqrtScalar(Vector128.CreateScalarUnsafe((float)(sbyte)(object)x)).ToScalar();RunlibsilkSinbyteITrigonometricFunctionsSin<byte>Length()Vector2.LengthScalar.Sqrt<byte>(64)return (T) (object) (sbyte) (float) Math.Sqrt((float) (sbyte) (object) x);return (T)(object)(sbyte)(float)Sse.SqrtScalar(Vector128.CreateScalarUnsafe((float)(sbyte)(object)x)).ToScalar();