As part of my learning process of how Panda’s build and interrogate system works, I’m trying to interrogate wglGraphicsStateGuardian but am running into some problems.
in wglGraphicsStateGuardian.h, i added
class wglGraphicsStateGuardian : public GLGraphicsStateGuardian {
PUBLISHED:
int testfoo();
and the appropriate dummy function wglGraphicsStateGuardian::testfoo in wglGraphicsStateGuardian.cxx
Then I amended makepanda with
if (sys.platform == "win32" and PkgSkip("GL")==0 and not RUNTIME):
OPTS=['DIR:panda/src/wgldisplay', 'DIR:panda/src/glstuff', 'BUILDING:PANDAGL', 'NVIDIACG', 'CGGL']
TargetAdd('wgldisplay_composite.obj', opts=OPTS, input='wgldisplay_composite.cxx')
# New code
IGATEFILES=GetDirectoryContents('panda/src/wgldisplay', ["*.h", "*_composite.cxx"])
TargetAdd('libwgl.in', opts=OPTS, input=IGATEFILES)
TargetAdd('libwgl.in', opts=['IMOD:pandagl', 'ILIB:libwgl', 'SRCDIR:panda/src/wgldisplay'])
TargetAdd('libwgl_igate.obj', input='libwgl.in', opts=["DEPENDENCYONLY"])
OPTS=['DIR:panda/metalibs/pandagl', 'BUILDING:PANDAGL', 'NVIDIACG', 'CGGL']
TargetAdd('libwgl_module.obj', input='libwgl.in')
TargetAdd('libwgl_module.obj', opts=OPTS)
TargetAdd('libwgl_module.obj', opts=['IMOD:pandagl', 'ILIB:libwgl'])
TargetAdd('libpandagl.dll', input='libwgl_module.obj' )
TargetAdd('libpandagl.dll', input='libwgl_igate.obj')
# End new code
TargetAdd('pandagl_pandagl.obj', opts=OPTS, input='pandagl.cxx')
TargetAdd('libpandagl.dll', input='pandagl_pandagl.obj')
But interrogate has some problems processing libwgl.in
[ 46%] Building Interrogate database built/pandac/input/libwgl.in
---->>>>woutd built/pandac/input/libwgl.in
built/bin/interrogate -srcdir panda/src/wgldisplay -Ipanda/src/wgldisplay -Dvola
tile -Dmutable -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__inline -longlong __int
64 -D_X86_ -DWIN32_VC -D_WIN32 -D_MSC_VER=1500 -D"_declspec(param)=" -D_near -D_
far -D__near -D__far -D__stdcall -oc built/tmp/libwgl_igate.cxx -od built/pandac
/input/libwgl.in -fnames -string -refcount -assert -python-native -Sbuilt/includ
e/parser-inc -Ipanda/src/wgldisplay -Ipanda/src/glstuff -Sthirdparty/win-python/
include -Sthirdparty/win-libs-vc9/nvidiacg/include -Sbuilt/tmp -Sbuilt/include -
DMAKEPANDA= -DBUILDING_PANDAGL -module pandagl -library libwgl config_wgldisplay
.h wglGraphicsBuffer.h wglGraphicsPipe.h wglGraphicsStateGuardian.h wglGraphicsW
indow.h wgldisplay_composite.cxx wglext.h
*** Error in /c/panda_src_1_80/panda3d/built/include/panda_glext.h near li
ne 3453, column 2:
parse error
Error parsing file: 'wglGraphicsBuffer.h'
Interrogate failed, retrieving debug output...
'built' is not recognized as an internal or external command,
operable program or batch file.
I took at look at panda_glext.h, line 3453, and it seems to be choking on a very innocent looking
typedef __int64 int64_t;
Anybody have any ideas?