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

            mCollection = new SurfaceProgramCollection(this);
        }