Inheritance: RendererBase, IModelSpace
Ejemplo n.º 1
0
        public BoundedClockRenderer()
        {
            //this.BoxRenderer = new LegacyBoundingBoxRenderer(new vec3(1, 1, 1), new vec3(-1, -1, -1), Color.Aqua);
            const float factor = 0.3f;

            this.BoxRenderer   = new LegacyBoundingBoxRenderer(factor * new vec3(1, 1, 1), factor * new vec3(-1, -1, -1), Color.Aqua);
            this.ClockRenderer = new ClockRenderer();
        }
Ejemplo n.º 2
0
        public DesignModeAssist(IGLCanvas canvas)
        {
            var           camera = new Camera(new vec3(0, 0, 4), new vec3(0, 0, 0), new vec3(0, 1, 0), CameraType.Perspecitive, canvas.Width, canvas.Height);
            GroupRenderer group;
            {
                var propeller = new PropellerRenderer()
                {
                    WorldPosition = new vec3(0, -1.5f, 0)
                };
                var clock = new ClockRenderer();
                group = new GroupRenderer(propeller, clock);
            }
            var scene = new Scene(camera, canvas)
            {
                ClearColor  = Color.Black.ToVec4(),
                RootElement = group,
            };

            this.scene    = scene;
            this.fullname = canvas.GetType().FullName;
        }