Exemplo n.º 1
0
 ///<summary>Draws a polygon on the Canvas.</summary>
 ///<remarks>
 ///@param RenderTexture                         Texture to use when rendering the triangles. If no texture is set, then the default white texture is used.
 ///@param ScreenPosition                        Screen space position to render the text.
 ///@param Radius                                        How large in pixels this polygon should be.
 ///@param NumberOfSides                         How many sides this polygon should have. This should be above or equal to three.
 ///@param RenderColor                           Color to tint the polygon.
 ///</remarks>
 public void K2_DrawPolygon(Texture RenderTexture, Vector2D ScreenPosition, Vector2D Radius, int NumberOfSides, LinearColor RenderColor) =>
 Canvas_methods.K2_DrawPolygon_method.Invoke(ObjPointer, RenderTexture, ScreenPosition, Radius, NumberOfSides, RenderColor);
Exemplo n.º 2
0
 ///<summary>Draws a set of triangles on the Canvas.</summary>
 ///<remarks>
 ///@param RenderTexture                         Texture to use when rendering the triangles. If no texture is set, then the default white texture is used.
 ///@param Triangles                                     Triangles to render.
 ///</remarks>
 public void K2_DrawTriangle(Texture RenderTexture, byte Triangles /*TODO: array TArray */) =>
 Canvas_methods.K2_DrawTriangle_method.Invoke(ObjPointer, RenderTexture, Triangles);
Exemplo n.º 3
0
 ///<summary>Draws a 3x3 grid border with tiled frame and tiled interior on the Canvas.</summary>
 ///<remarks>
 ///@param BorderTexture                         Texture to use for border.
 ///@param BackgroundTexture                     Texture to use for border background.
 ///@param LeftBorderTexture                     Texture to use for the tiling left border.
 ///@param RightBorderTexture            Texture to use for the tiling right border.
 ///@param TopBorderTexture                      Texture to use for the tiling top border.
 ///@param BottomBorderTexture           Texture to use for the tiling bottom border.
 ///@param ScreenPosition                        Screen space position to render the texture.
 ///@param ScreenSize                            Screen space size to render the texture.
 ///@param CoordinatePosition            Normalized UV starting coordinate to use when rendering the border texture.
 ///@param CoordinateSize                        Normalized UV size coordinate to use when rendering the border texture.
 ///@param RenderColor                           Color to tint the border.
 ///@param BorderScale                           Scale of the border.
 ///@param BackgroundScale                       Scale of the background.
 ///@param Rotation                                      Rotation, in degrees, to render the texture.
 ///@param PivotPoint                            Normalized pivot point to use when rotating the texture.
 ///@param CornerSize                            Frame corner size in percent of frame texture (should be < 0.5f).
 ///</remarks>
 public void K2_DrawBorder(Texture BorderTexture, Texture BackgroundTexture, Texture LeftBorderTexture, Texture RightBorderTexture, Texture TopBorderTexture, Texture BottomBorderTexture, Vector2D ScreenPosition, Vector2D ScreenSize, Vector2D CoordinatePosition, Vector2D CoordinateSize, LinearColor RenderColor, Vector2D BorderScale, Vector2D BackgroundScale, float Rotation, Vector2D PivotPoint, Vector2D CornerSize) =>
 Canvas_methods.K2_DrawBorder_method.Invoke(ObjPointer, BorderTexture, BackgroundTexture, LeftBorderTexture, RightBorderTexture, TopBorderTexture, BottomBorderTexture, ScreenPosition, ScreenSize, CoordinatePosition, CoordinateSize, RenderColor, BorderScale, BackgroundScale, Rotation, PivotPoint, CornerSize);
Exemplo n.º 4
0
 ///<summary>Draws a texture on the Canvas.</summary>
 ///<remarks>
 ///@param RenderTexture                         Texture to use when rendering. If no texture is set then this will use the default white texture.
 ///@param ScreenPosition                        Screen space position to render the texture.
 ///@param ScreenSize                            Screen space size to render the texture.
 ///@param CoordinatePosition            Normalized UV starting coordinate to use when rendering the texture.
 ///@param CoordinateSize                        Normalized UV size coordinate to use when rendering the texture.
 ///@param RenderColor                           Color to use when rendering the texture.
 ///@param BlendMode                                     Blending mode to use when rendering the texture.
 ///@param Rotation                                      Rotation, in degrees, to render the texture.
 ///@param PivotPoint                            Normalized pivot point to use when rotating the texture.
 ///</remarks>
 public void K2_DrawTexture(Texture RenderTexture, Vector2D ScreenPosition, Vector2D ScreenSize, Vector2D CoordinatePosition, Vector2D CoordinateSize, LinearColor RenderColor, byte BlendMode, float Rotation, Vector2D PivotPoint) =>
 Canvas_methods.K2_DrawTexture_method.Invoke(ObjPointer, RenderTexture, ScreenPosition, ScreenSize, CoordinatePosition, CoordinateSize, RenderColor, BlendMode, Rotation, PivotPoint);