1
Graphics / Re: playing with glad/gl.h : undefined symbol: sf_glad_glGetError
« on: June 12, 2024, 04:24:15 pm »
I was not aware of that fork, it helped me a lot ! Thank you
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Using as few textures as possible is a good strategy, and the reason is simple: Changing the current texture is an expensive operation for the graphics card. Drawing many sprites that use the same texture will yield the best performance.As far as I understand, it is not `setTexture` method of `sf::Sprite` that in expensive, it is the fact of drawing a sprite with a texture, then a sprite with another one.
2023-08-15 12:55:24.780 20653-20653 libEGL com.you.example.debug E validate_display:89 error 3001 (EGL_NOT_INITIALIZED)
2023-08-15 12:55:24.781 20653-20653 libc com.you.example.debug A C:\FactoryCapi\external_deps\SFML\src\SFML\System\Android\Activity.cpp:75: sf::priv::ActivityStates &sf::priv::getActivity(): assertion "states != NULL" failed
2023-08-15 12:55:24.781 20653-20653 libc com.you.example.debug A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 20653 (u.example.debug), pid 20653 (u.example.debug)
I am using several libraries with SFML but I already made a simple project to check them and it was ok (launched as expected).target_link_libraries(example PUBLIC
FactoryCapi_flow
log
android
sfml-graphics
sfml-audio
sfml-activity
sfml-network
-Wl,--whole-archive sfml-main -Wl,--no-whole-archive
TGUI::TGUI
TGUI::Activity
EnTT::EnTT
openal
EGL
GLESv1_CM
)
FactoryCapi_flow relies on FactoryCapi_coretarget_link_libraries(
FactoryCapi_flow PUBLIC
FactoryCapi_core
)
FactoryCapi_core is built with those libtarget_link_libraries(
FactoryCapi_core PUBLIC
sfml-graphics
sfml-system
absl::flags
absl::flags_parse
# gRPC::grpc++_reflection
gRPC::grpc++
protobuf::libprotobuf
quill::quill
)
In AndroidManifest.xml, I have<meta-data android:name="android.app.lib_name" android:value="sfml-activity-d" />
<meta-data android:name="sfml.app.lib_name" android:value="tgui-activity-d" />
<meta-data android:name="tgui.app.lib_name" android:value="example" />
Thank you