Example #1
0
        public DrawableMesh(string name, MeshData data, List <ShaderAttribute> attributes, TransformComponent transform, Material material, ShaderProgram shader)
        {
            Name          = name;
            Data          = data;
            Transform     = transform;
            BoundMaterial = material;
            ShaderProgram = shader;

            Data.loadToVAO(attributes);

            Error.checkGLError("Mesh constructor of " + name);
        }