Esempio n. 1
0
 internal Material(Context ctx, IntPtr mMaterial) : base(ctx)
 {
     mCollection = new SurfaceProgramCollection(this);
     InternalPtr = mMaterial;
 }
Esempio n. 2
0
        public Material(Context context) : base(context)
        {
            CheckError(Api.rtMaterialCreate(context.InternalPtr, ref InternalPtr));

            mCollection = new SurfaceProgramCollection(this);
        }