private D3DMaterial getitemcopy(int index) { D3DMaterial ret = new D3DMaterial(IronSightEnginePINVOKE.D3DMaterialVector_getitemcopy(swigCPtr, index), true); if (IronSightEnginePINVOKE.SWIGPendingException.Pending) { throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve(); } return(ret); }