Esempio n. 1
0
        protected override void OnLoad()
        {
            this.objectShader = Shader.CompileFromResource(
                "BlocksWorld.Shaders.Object.vs",
                "BlocksWorld.Shaders.Object.fs");

            this.textures = TextureArray.LoadFromResource(
                "BlocksWorld.Textures.Models.png");

            this.debug.Load();
        }
Esempio n. 2
0
        protected override void OnLoad()
        {
            this.objectShader = Shader.CompileFromResource(
                "BlocksWorld.Shaders.Object.vs",
                "BlocksWorld.Shaders.Object.fs");

            this.blockTextures = TextureArray.LoadFromResource(
                "BlocksWorld.Textures.Blocks.png");
            this.modelTextures = TextureArray.LoadFromResource(
                "BlocksWorld.Textures.Models.png");

            this.playerModel = MeshModel.LoadFromResource(
                "BlocksWorld.Models.Player.bwm");

            this.debug.Load();
            this.worldRenderer.Load();
            this.ui.Load();
        }