Thank for all your help, but I’m afraid i need a little more,…
I try to use interrogate,but as my aim is just to add a get_direct3D_device in the dxGraphicsStateguardian9 ( panda/src/dxgsg9 ), I though of adding the interrogate step directly inside the makepanda.
now after a lot of try, I 'm stuck with this:
in the makepanda.py I have replaced (near line 2047) :
TargetAdd('dxgsg9_dxGraphicsStateGuardian9.obj', opts=OPTS, input='dxGraphicsStateGuardian9.cxx')
TargetAdd('libpandadx9.dll', input='dxgsg9_dxGraphicsStateGuardian9.obj')
by
OPTS=['DIR:panda/src/dxgsg9/', 'SRCDIR:panda/src/dxgsg9', 'BUILDING:PANDADX','IMOD:panda', 'ILIB:libdxGraphicsStateGuardian9',"DX9","NVIDIACG","CGDX9",'ADVAPI', 'WINGDI', 'WINKERNEL', 'WINUSER', 'WINMM']
IGATEFILES=GetDirectoryContents('panda/src/dxgsg9', ["*.h", "dxGraphicsStateGardian9.cxx"])
TargetAdd('libdxGraphicsStateGardian9.in', opts=OPTS, input=IGATEFILES)
TargetAdd('libdxGraphicsStateGuardian9_igate.obj', input='libdxGraphicsStateGuardian9.in', opts=["DEPENDENCYONLY"])
TargetAdd('libpandadx9.dll', input='libdxGraphicsStateGuardian9_igate.obj')
And I have this error:
***Error in /c/Program Files/Microsoft DirectX SDK (March 2008)/include/d3d9.h near line 160, column 2:
parse error
the d3d9.H file, l 160:
interface DECLSPEC_UUID("D0223B96-BF7A-43fd-92BD-A43B0D82B9EB") IDirect3DDevice9;
So I’m thinking that I’m either missing a build dependency or that it’s a line interrogate is not made to comprehend .
Which is it ?
I have tried, to circle the problem, to include my function in the already parsed file graphicsStateGuardian ( panda/src/display ). There I can add some test function but not the one I want because interrogate can’t comprehend it(no error but the function does not appear in the python interface)
virtual void* get_device_ref();
it 's because of the void*, isn’t it ?
Is there a biased way I can use to pass my argument as an address ?
edit : I 've tried (int*), it get ignored the same way