+ Bloom effect + PixelInformation + Many Summaries + Add-methods for CVectors + Exposure-Field in GenericCamera for HDR. ~ ColorAttachments now can have PixelInformation ~ Transformed MeshAttributes to a own class ~ Fixed the non-applying of transformations at texts ~ Added more information to the context ~ Improved Pipeline-Process. ~ Changed how Uniform takes arrays - Light system
41 lines
No EOL
821 B
C#
41 lines
No EOL
821 B
C#
#region usings
|
|
|
|
using OpenTK;
|
|
using OpenTK.Input;
|
|
using SM.Base.Controls;
|
|
using SM2D.Scene;
|
|
using SM2D.Types;
|
|
|
|
#endregion
|
|
|
|
namespace SM2D.Controls
|
|
{
|
|
public class Mouse2D : Mouse<GLWindow2D>
|
|
{
|
|
protected internal Mouse2D(GLWindow2D window) : base(window)
|
|
{
|
|
}
|
|
|
|
internal new void MouseMoveEvent(MouseMoveEventArgs mmea)
|
|
{
|
|
base.MouseMoveEvent(mmea);
|
|
}
|
|
|
|
public Vector2 InWorld()
|
|
{
|
|
var res = _window.WorldScale;
|
|
res.Y *= -1;
|
|
return InScreenNormalized * res - res / 2;
|
|
}
|
|
|
|
public Vector2 InWorld(Camera cam)
|
|
{
|
|
return InWorld() + cam.Position;
|
|
}
|
|
|
|
public Vector2 InWorld(Vector2 position)
|
|
{
|
|
return InWorld() + position;
|
|
}
|
|
}
|
|
} |