abstract private RenderString ( string text, int x, int y, SlimDX.Color4 color ) : void | ||
text | string | The string. |
x | int | The X coordinate of the upper left corner of the text. |
y | int | The Y coordinate of the upper left corner of the text. |
color | SlimDX.Color4 | The color of the text. |
return | void |
/// <summary> /// Renders the element using the specified renderer. /// </summary> /// <param name="renderer">The renderer.</param> /// <param name="element">The element.</param> /// <param name="x">The X coordinate (in pixels) of the upper left corner of the region the element should be rendered to.</param> /// <param name="y">The Y coordinate (in pixels) of the upper left corner of the region the element should be rendered to.</param> /// <param name="width">The width (in pixels) of the region the element should be rendered to.</param> /// <param name="height">The height (in pixels) of the region the element should be rendered to.</param> public virtual void Render(UserInterfaceRenderer renderer, Element element, int x, int y, int width, int height) { //Color4 color = new Color4(1.0f, 1.0f, 1.0f); //renderer.RenderRectangle(x, y, width, height, color); renderer.RenderString(element.Label, x, y, new Color4(1.0f, 0.0f, 0.0f)); }
/// <summary> /// Renders the element using the specified renderer. /// </summary> /// <param name="renderer">The renderer.</param> /// <param name="element">The element.</param> /// <param name="x">The X coordinate (in pixels) of the upper left corner of the region the element should be rendered to.</param> /// <param name="y">The Y coordinate (in pixels) of the upper left corner of the region the element should be rendered to.</param> /// <param name="width">The width (in pixels) of the region the element should be rendered to.</param> /// <param name="height">The height (in pixels) of the region the element should be rendered to.</param> public virtual void Render(UserInterfaceRenderer renderer, Element element, int x, int y, int width, int height) { //Color4 color = new Color4(1.0f, 1.0f, 1.0f); //renderer.RenderRectangle(x, y, width, height, color); renderer.RenderString(element.Label, x, y, new Color4(1.0f, 0.0f, 0.0f)); }