/// <summary> /// Constructs a GoblinXNA 3D GUI component /// </summary> /// <param name="center">A Matrix that defines the center location and orientation /// of the entire widget components</param> /// <param name="alpha">Transparency value of this component [0.0f - 1.0f]</param> public G3DComponent(Matrix center, Model widget, Effect effect, float alpha) : base(Color.White, alpha) { Transform = center; widgetEffect = effect; widgetComponent = widget; name = "G3DComponent"; widgetComponent = null; showShadow = false; halfExtent = new Vector3(); displayMode = GoblinEnums.DisplayConfig.WorldFixed; }
/// <summary> /// Constructs a GoblinXNA 3D GUI component /// </summary> /// <param name="center">A Matrix that defines the center location and orientation /// of the entire widget components</param> /// <param name="alpha">Transparency value of this component [0.0f - 1.0f]</param> public G3DComponent(Matrix center, Model widget, Effect effect, float alpha) : base(Color.White, alpha) { Transform = center; widgetEffect = effect; widgetComponent = widget; name = "G3DComponent"; widgetComponent = null; showShadow = false; halfExtent = new Vector3(); displayMode = GoblinEnums.DisplayConfig.WorldFixed; }