internal Direct3DDevice9(ComInterface.IDirect3DDevice9 obj)
 {
     this.comObject = obj;
     ComInterface.GetComMethod(this.comObject, 23, out this.createTexture);
     ComInterface.GetComMethod(this.comObject, 28, out this.createRenderTarget);
     ComInterface.GetComMethod(this.comObject, 36, out this.createOffscreenPlainSurface);
 }
 internal Direct3DTexture9(ComInterface.IDirect3DTexture9 obj, IntPtr sharedhandle)
 {
     this.comObject      = obj;
     this.native         = Marshal.GetIUnknownForObject(this.comObject);
     this.m_sharedhandle = sharedhandle;
     ComInterface.GetComMethod(this.comObject, 13, out this.getLevelCount);
     ComInterface.GetComMethod(this.comObject, 18, out this.getSurfaceLevel);
 }
Beispiel #3
0
 private Direct3D9(ComInterface.IDirect3D9 obj)
 {
     this.comObject = obj;
     ComInterface.GetComMethod(this.comObject, 16, out this.createDevice);
 }
Beispiel #4
0
 internal Direct3DDevice9Ex(ComInterface.IDirect3DDevice9Ex obj)
 {
     this.comObject = obj;
     ComInterface.GetComMethod(this.comObject, 28, out this.createRenderTarget);
 }
 private Direct3D9Ex(ComInterface.IDirect3D9Ex obj)
 {
     this.comObject = obj;
     ComInterface.GetComMethod(this.comObject, 20, out this.createDeviceEx);
 }