+ Added Field to DrawingBasis to enfore PrimitiveTypes + LastObject to context for Debugging + AppendRenderbuffer to Framebuffer ~ Added a depthbuffer to RenderPipeline.CreateWindowFramebuffer ~ Proper ZIndices over Z-Translation and DepthBuffer ~ Made "ShaderArguments["LineWidth"]" set the LineWidth even if the object isn't maked as LineMesh ~ Made that the SM2D.PolygonVertex can translate OpenTK.Vector2 by itself. ~ Made the SM2D.Transformation.ZIndex a CVector1 instead a float
23 lines
No EOL
463 B
C#
23 lines
No EOL
463 B
C#
#region usings
|
|
|
|
using OpenTK;
|
|
using OpenTK.Graphics;
|
|
|
|
#endregion
|
|
|
|
namespace SM2D.Object
|
|
{
|
|
public struct PolygonVertex
|
|
{
|
|
public Vector2 Vertex;
|
|
public Color4 Color;
|
|
|
|
public PolygonVertex(Vector2 vertex = default, Color4 color = default)
|
|
{
|
|
Vertex = vertex;
|
|
Color = color;
|
|
}
|
|
|
|
public static implicit operator PolygonVertex(Vector2 vec) => new PolygonVertex(vec, Color4.White);
|
|
}
|
|
} |