Update 08.12.2020

RoccoZero

Active member
Staff member
Administrator
Developer
Apr 30, 2022
873
79
28
Update

* Reworked RendererManager

D3D11Renderer
* Added void DrawTexture(string textureKey, RectangleF rect)

RendererManager
  • Added void LoadTexture(string textureKey, Stream stream)
  • Added void LoadTextureFromFile(string textureKey, string file)
  • Added void LoadTextureFromResource(string textureName)
  • Added void DrawLine(Vector2 start, Vector2 end, Color color, float width)
  • Added void DrawCircle(Vector2 center, float radius, Color color, float width)
  • Added void DrawRectangle(RectangleF rect, Color color, float width)
  • Added void DrawFilledRectangle(RectangleF rect, Color color, Color backgroundColor, float borderWidth)
  • Added void DrawText(string text, Vector2 position, Color color, float fontSize)
  • Added void DrawText(string text, Vector2 position, Color color, string fontFamilyName, float fontSize)
  • Added void DrawTexture(string textureKey, RectangleF rect)
  • Added void DrawTexture(string textureKey, RectangleF rect, float opacity)
  • Added Vector2 MeasureText(string text, float fontSize)
  • Added Vector2 MeasureText(string text, string fontFamilyName, float fontSize)