For example, the Interace in pub.mod/directx.mod/d3d7.bmx called IDirect3DDevice7.
How I can get the lpVtbl? lpVtbl is a Pointer(I think), of the table contains all adresses of the interface methods of IDirect3DDevice7 like Method SetRenderState(renderstate,value).
So I can get acces like MyDevice.lpVtbl.SetRenderState(MyDevice, D3DRENDERSTATE_LIGHTING, True)
Or it must be like:
Global Function SetRenderState:Int(MyDevice:IDirect3DDevice7, RenderStateType:Int, RenderState:Int)
SetRenderState = MyDevice.lpTbl[XYZ]
SetRenderState(MyDevice, D3DRENDERSTATE_LIGHTING, True)
But there are only methods defined in the IDirect3DDevice7 Interface not a member lpVtbl .
I hope you understand me :) need this, to overload some DirectX methods by changing the entry in the table to my own method/function.
cu olli
Edit: Oh, "Getting" as "Cetting" *rolleyes*
How I can get the lpVtbl? lpVtbl is a Pointer(I think), of the table contains all adresses of the interface methods of IDirect3DDevice7 like Method SetRenderState(renderstate,value).
So I can get acces like MyDevice.lpVtbl.SetRenderState(MyDevice, D3DRENDERSTATE_LIGHTING, True)
Or it must be like:
Global Function SetRenderState:Int(MyDevice:IDirect3DDevice7, RenderStateType:Int, RenderState:Int)
SetRenderState = MyDevice.lpTbl[XYZ]
SetRenderState(MyDevice, D3DRENDERSTATE_LIGHTING, True)
But there are only methods defined in the IDirect3DDevice7 Interface not a member lpVtbl .
I hope you understand me :) need this, to overload some DirectX methods by changing the entry in the table to my own method/function.
cu olli
Edit: Oh, "Getting" as "Cetting" *rolleyes*