예제 #1
0
        public RendererGL4(IRenderState renderState, IContentLoader contentLoader)
        {
            //for transparency in textures we use blending
            renderState.Set(BlendStates.AlphaBlend);

            levelVisual = new VisualLevel(contentLoader);
            font        = new FontGL(contentLoader);
        }
예제 #2
0
        public Renderer(IRenderState renderState, IContentLoader contentLoader)
        {
            renderState.Set(BlendStates.AlphaBlend);             //for transparency in textures we use blending

            tileSet.Add(ElementType.Floor, contentLoader.Load <ITexture2D>("GroundGravel_Grass"));
            tileSet.Add(ElementType.Man, contentLoader.Load <ITexture2D>("Character4"));
            tileSet.Add(ElementType.Box, contentLoader.Load <ITexture2D>(".Crate_Brown"));
            tileSet.Add(ElementType.Goal, contentLoader.Load <ITexture2D>("EndPoint_Red"));
            tileSet.Add(ElementType.ManOnGoal, contentLoader.Load <ITexture2D>("EndPointCharacter"));
            tileSet.Add(ElementType.BoxOnGoal, contentLoader.Load <ITexture2D>("EndPointCrate_Brown"));
            tileSet.Add(ElementType.Wall, contentLoader.Load <ITexture2D>("Wall_Beige"));

            font = new FontGL(contentLoader);
        }