The overrides for Canvas.Draw that would accept any type that implements the Drawable interface are missing. Currently the options are
Ideally I would think this method group would match the standard sfml Window.Draw which instead only includes the following
I'm also curious as to why this is preferred over something like just supplying a RenderTexture to a Widget, similar to the way you would wrap a RenderTexture in a Sprite. This would avoid the confusing "Draw" - some object into Canvas vs "Draw" - canvas into some RenderTarget. Is there a way I could do this instead?
General advice on extending the Widget system in .net would be really appreciated as well, such as how I might implement a wrapper like I've described, or for example a Widget that uses shader effects.
- (Shape)
- (Shape, RenderStates)
- (Sprite)
- (Sprite, RenderStates)
- (Text)
- (Text, RenderStates)
- (VertexArray)
- (VertexArray, RenderStates)
- (Vertex[], PrimitiveType)
- (Vertex[], PrimitiveType, RenderStates)
- (Vertex[], uint start, uint count, PrimitiveType)
- (Vertex[], uint start, uint count, PrimitiveType, RenderStates)
Ideally I would think this method group would match the standard sfml Window.Draw which instead only includes the following
- (Drawable)
- (Drawable, RenderStates)
- (Vertex[], PrimitiveType)
- (Vertex[], PrimitiveType, RenderStates)
- (Vertex[], uint start, uint count, PrimitiveType)
- (Vertex[], uint start, uint count, PrimitiveType, RenderStates)
I'm also curious as to why this is preferred over something like just supplying a RenderTexture to a Widget, similar to the way you would wrap a RenderTexture in a Sprite. This would avoid the confusing "Draw" - some object into Canvas vs "Draw" - canvas into some RenderTarget. Is there a way I could do this instead?
General advice on extending the Widget system in .net would be really appreciated as well, such as how I might implement a wrapper like I've described, or for example a Widget that uses shader effects.