示例#1
0
        public Model()
        {
            this.faces         = new List <Face>();
            this.children      = new List <Model>();
            this.shaderProgram = ShaderList.getDefaultShaderProgram();

            this.location = new Location();
            this.location.setOwner(this);
            this.parent = null;
        }
示例#2
0
        public Sprite(Texture2D texture, String name) : base()
        {
            this.setTexture(texture);
            this.setMatProperties();
            this.setShaderProgram(ShaderList.getSpriteShader());

            this.width  = texture.Width;
            this.height = texture.Height;

            this.width = Math.Min(width, 2048);

            this.setName(name);

            this.updateFace();
        }