Esempio n. 1
0
        public void SetParameter(CylinderRenderParameter p)
        {
            var param = p as WireCylinderRenderParameter;
            if (param == null)
            {
                return;
            }

            BasicEffect.View = MathUtilXna.ToXnaMatrix(param.Camera.View);
            BasicEffect.Projection = MathUtilXna.ToXnaMatrix(param.Camera.Projection);

            SetColor(MathUtilXna.ToXnaColor(param.Color));
        }
Esempio n. 2
0
 public abstract void Render(CylinderRenderParameter param);
Esempio n. 3
0
        public void SetParameter(CylinderRenderParameter param)
        {

        }
Esempio n. 4
0
 public void RenderCylinder(Cylinder primitive, CylinderRenderParameter renderParam)
 {
     CylinderInfoList[Buffer].Add(new CylinderInfo() { Cylinder = primitive, RenderParam = renderParam });
 }