get load of abstract errors when trying to use.
If I use the code as is, it tells me waitevent is not a valid identifier.
if i remove the event functions, it fails at linking.
here's the output
-------------------
Building example
Compiling:see-thru.cpp
Compiling:see-thru.bmx
flat assembler version 1.66
3 passes, 518 bytes.
Compiling:example.bmx
flat assembler version 1.66
3 passes, 2414 bytes.
Linking:example.debug.exe
D:/Program Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32maxgui.debug.win32.x86.a(gadget.cpp.debug.win32.x86.o)(.data$_ZTV10BBResource+0x0):gadget.cpp: multiple definition of `vtable for BBResource'
C:/Epiphany/.bmx/see-thru.cpp.debug.win32.x86.o(.rdata$_ZTV10BBResource+0x0):see-thru.cpp: first defined here
D:/Program Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32maxgui.debug.win32.x86.a(gadget.cpp.debug.win32.x86.o)(.data$_ZTI10BBResource+0x0):gadget.cpp: multiple definition of `typeinfo for BBResource'
C:/Epiphany/.bmx/see-thru.cpp.debug.win32.x86.o(.rdata$_ZTI10BBResource+0x0):see-thru.cpp: first defined here
D:/Program Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32maxgui.debug.win32.x86.a(gadget.cpp.debug.win32.x86.o)(.text$_ZTS10BBResource+0x0):gadget.cpp: multiple definition of `typeinfo name for BBResource'
C:/Epiphany/.bmx/see-thru.cpp.debug.win32.x86.o(.rdata$_ZTS10BBResource+0x0):see-thru.cpp: first defined here
D:/Program Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32maxgui.debug.win32.x86.a(panel.cpp.debug.win32.x86.o)(.data$_ZTV10BBGraphics+0x0):panel.cpp: multiple definition of `vtable for BBGraphics'
C:/Epiphany/.bmx/see-thru.cpp.debug.win32.x86.o(.rdata$_ZTV10BBGraphics+0x0):see-thru.cpp: first defined here
D:/Program Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32maxgui.debug.win32.x86.a(panel.cpp.debug.win32.x86.o)(.data$_ZTI10BBGraphics+0x0):panel.cpp: multiple definition of `typeinfo for BBGraphics'
C:/Epiphany/.bmx/see-thru.cpp.debug.win32.x86.o(.rdata$_ZTI10BBGraphics+0x0):see-thru.cpp: first defined here
D:/Program Files/BlitzMax/mod/brl.mod/win32maxgui.mod/win32maxgui.debug.win32.x86.a(panel.cpp.debug.win32.x86.o)(.text$_ZTS10BBGraphics+0x0):panel.cpp: multiple definition of `typeinfo name for BBGraphics'
C:/Epiphany/.bmx/see-thru.cpp.debug.win32.x86.o(.rdata$_ZTS10BBGraphics+0x0):see-thru.cpp: first defined here
Build Error: Failed to link C:/Epiphany/example.debug.exe
Also note that I tried the Yan one, and it simply does not work. I see a black hole, with solid white borders. nothing region-y about it.