Ejemplo n.º 1
0
        public override void Load()
        {
            Entity cam = EntityFactory.CreateEntity();

            cam.name = "cam";
            cam.AddComponent(new Camera());

            Entity ent = EntityFactory.CreateEntity();

            ent.AddComponent(new Move());
            ent.AddComponent(new MeshRenderer());
            MeshTexture texture = MeshTexture.LoadTexture("Res/Images/bobross.png");

            ent.GetComponent <MeshRenderer>().texturedMesh = new TexturedMesh(RawMesh.LoadToVao(v1, textureCoords, indices), texture);
            base.Load();
        }