Beispiel #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));
        }
Beispiel #2
0
 public abstract void Render(CylinderRenderParameter param);
Beispiel #3
0
        public void SetParameter(CylinderRenderParameter param)
        {

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