Hey.
I finally got my new lib ‘wegldisplay’ compiling and linking properly. I used ‘egldisplay’ and ‘wgldisplay’ as bases for this. I have a pandagles2.lib file but no wegl[2]display.lib.
My Sources.pp for wegldisplay looks like this
#define BUILD_DIRECTORY $[HAVE_WEGL]
#define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
dtoolutil:c dtoolbase:c dtool:m
#begin lib_target
#define TARGET wegldisplay
#define EXTRA_CDEFS OPENGLES_1
#define LOCAL_LIBS \
glesgsg display putil windisplay
#define COMPONENT_LIBS \
windisplay
#define SOURCES \
config_wegldisplay.cxx config_wegldisplay.h \
weglGraphicsBuffer.h weglGraphicsBuffer.cxx \
weglGraphicsPipe.I weglGraphicsPipe.cxx weglGraphicsPipe.h \
weglGraphicsPixmap.h weglGraphicsPixmap.cxx \
weglGraphicsWindow.h weglGraphicsWindow.cxx \
weglGraphicsStateGuardian.h weglGraphicsStateGuardian.cxx
#define INSTALL_HEADERS \
weglGraphicsBuffer.h weglGraphicsPixmap.h \
weglGraphicsPipe.I weglGraphicsPipe.h \
weglGraphicsWindow.I weglGraphicsWindow.h
#define WIN_SYS_LIBS \
EGL GLESv2 $[WIN_SYS_LIBS]
#end lib_target
#begin lib_target
#define TARGET wegldisplay
#define EXTRA_CDEFS OPENGLES_2
#define LOCAL_LIBS \
gles2gsg display putil windisplay
#define SOURCES \
config_wegldisplay.cxx config_wegldisplay.h \
weglGraphicsBuffer.h weglGraphicsBuffer.cxx \
weglGraphicsPipe.I weglGraphicsPipe.cxx weglGraphicsPipe.h \
weglGraphicsPixmap.h weglGraphicsPixmap.cxx \
weglGraphicsWindow.h weglGraphicsWindow.cxx \
weglGraphicsStateGuardian.h weglGraphicsStateGuardian.cxx
#define INSTALL_HEADERS \
weglGraphicsBuffer.h weglGraphicsPixmap.h \
weglGraphicsPipe.I weglGraphicsPipe.h \
weglGraphicsWindow.I weglGraphicsWindow.h
#define WIN_SYS_LIBS \
EGL GLESv2 $[WIN_SYS_LIBS]
#end lib_target
My Config.prc (in the etc folder) looks like this:
load-display pandagles
load-display pandagles2
I think I need help with the Config.pp files in general. I had the following error:
Cycle detected in inter-directory dependencies!
wegldisplay depends on pandagles2
pandagles2 depends on wegldisplay
When I had the second #define TARGET in wegldisplay/Sources.pp set as wegl2display. I understand what the error means, just not how to resolve it. I seem to have the same thing that egldisplay has (more or less)
Any help would be greatly appreciated. Thanks!