/// <summary> /// Creates a new texture element. /// </summary> /// <param name="texture">Texture to display. If this is null then the texture specified by the style will /// be used.</param> /// <param name="scale">Scale mode to use when sizing the texture.</param> /// <param name="transparent">Determines should the texture be rendered with transparency active.</param> /// <param name="options">Options that allow you to control how is the element positioned and sized. This will /// override any similar options set by style.</param> public GUITexture(SpriteTexture texture, GUIImageScaleMode scale, bool transparent, params GUIOption[] options) { Internal_CreateInstance(this, texture, scale, transparent, "", options); }
private static extern void Internal_CreateInstance(GUITexture instance, SpriteTexture texture, GUIImageScaleMode scale, bool transparent, string style, GUIOption[] options);
/// <summary> /// Creates a new texture element with transparency active. /// </summary> /// <param name="texture">Texture to display. If this is null then the texture specified by the style will /// be used.</param> /// <param name="scale">Scale mode to use when sizing the texture.</param> /// <param name="style">Optional style to use for the element. Style controls the look of the element, as well as /// default layout options. Style will be retrieved from the active GUISkin. If not specified /// default element style is used.</param> /// <param name="options">Options that allow you to control how is the element positioned and sized. This will /// override any similar options set by style.</param> public GUITexture(SpriteTexture texture, GUIImageScaleMode scale, string style, params GUIOption[] options) { Internal_CreateInstance(this, texture, scale, true, style, options); }