Exemple #1
0
        internal Tag(
            DeviceResources deviceResources,
            TextureLoader loader,
            int X,
            int Y,
            Matrix4x4 rotator,
            Vector3 positionLeft,
            Vector3 positionRight
            )
        {
            this.X = X;
            this.Y = Y;

            left = new PyramidRenderer(deviceResources, loader)
            {
                Position      = positionLeft,
                GlobalRotator = rotator,
                TextureFile   = "Content\\Textures\\red.png"
            };

            right = new PyramidRenderer(deviceResources, loader)
            {
                Position      = positionRight,
                GlobalRotator = rotator,
                TextureFile   = "Content\\Textures\\green.png"
            };
        }
Exemple #2
0
        internal void Dispose()
        {
            left?.Dispose();
            left = null;

            right?.Dispose();
            right = null;
        }
 internal NavigationTag(
     DeviceResources deviceResources,
     TextureLoader loader,
     Matrix4x4 rotator,
     Vector3 position
     )
 {
     tag = new PyramidRenderer(deviceResources, loader)
     {
         Position      = position,
         RotationY     = 45,
         Width         = 0.5f,
         Length        = 0.5f,
         GlobalRotator = rotator,
         TextureFile   = "Content\\Textures\\solid.png"
     };
 }
 internal void Dispose()
 {
     tag?.Dispose();
     tag = null;
 }