public static RenderStatesMarshal MarshalRenderStates(this RenderStates States) { var marshal = new RenderStatesMarshal(); marshal.BlendMode = States.BlendMode; marshal.Transform = States.Transform; marshal.Texture = States.Texture?.CPointer ?? IntPtr.Zero; marshal.Shader = States.Shader?.CPointer ?? IntPtr.Zero; return(marshal); }
private static extern void DrawRenderTexture(IntPtr Pointer, IntPtr RenderTexturePointer, ref RenderStatesMarshal RenderStates);
private static extern void DrawRenderWindow(IntPtr Pointer, IntPtr RenderWindowPointer, ref RenderStatesMarshal RenderStates);