コード例 #1
0
ファイル: G3DComponent.cs プロジェクト: ARLM-Attic/goblin-xna
        /// <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;
        }
コード例 #2
0
ファイル: G3DComponent.cs プロジェクト: NinjaSteph/SureShot
        /// <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;
        }