Benjamin Deroche
01/24/2022, 12:24 AM# SFML/Audio.h SFML/Graphics.h SFML/Network.h SFML/System.h SFML/Window.h
headers = SFML/Graphics.h \
SFML/System.h \
SFML/Window.h
headerFilter = SFML/**
compilerOpts.linux = -I/usr/include -I/usr/include/x86_64-linux-gnu
# -lcsfml-audio -lcsfml-graphics -lcsfml-network -lcsfml-system -lcsfml-window
linkerOpts.osx = -L/opt/local/lib -lcsfml-graphics -lcsfml-system -lcsfml-window
linkerOpts.linux = -L/usr/lib/x86_64-linux-gnu -lcsfml-graphics -lcsfml-system -lcsfml-windowLandry Norris
01/24/2022, 12:52 AMBenjamin Deroche
01/24/2022, 1:49 PMsfRenderWindow is an alternative to sfWindow , used to draw directly on screen without using opengl, as per the documentation.
sfWindow is defined in /usr/include/SFML/Window/Types.h : typedef struct sfWindow sfWindow;
sfRenderWindow is defined in /usr/include/SFML/Graphics/Types.h : typedef struct sfRenderWindow sfRenderWindow;
Not of them declare their internal structure, but cinterops seems to generate the bindings class for sfWindow but not for sfRenderWindow , I can use the sfWindow after adding import cnames.structs.sfWindowBenjamin Deroche
01/24/2022, 1:55 PMcnames.structs. and not libsfml.Benjamin Deroche
01/24/2022, 2:01 PMimport cnames.structs.sfRenderWindow manually does work, it compile and run, even if I can't see sfRenderWindow definition because when I Ctrl+Clic on it IntelliJ says "Cannot find declaration to go to"