Commit Graph
3 Commits
Author SHA1 Message Date
西风逍遥游 a6901a0691 feat(android): run zeroerr unit_test suite as an Android test app
Adds EVENGINE_ANDROID_TEST_APP build mode: the unit_test sources are
compiled into libmain.so (SDL entry) and packaged by the existing Gradle
APK along with the test assets, so the full zeroerr suite can run on a
device via adb logcat.

- test/main.cpp: Android runner with LogcatBuf (cout/cerr -> logcat),
  chdir to <files>/evengine_test, SDL_Init; keeps SDL_main symbol unmangled.
- test/PathBesideSource.h: shared pathBesideThisSource helper that maps
  __FILE__ to the on-device unpacked tree on Android.
- EVTestActivity: unpacks assets/test + assets/examples to internal
  storage and passes an optional --testcase filter from an intent extra.
- test/CMakeLists.txt: builds `main` instead of unit_test on Android,
  excludes desktop-only devtools tests, links Android system libs.
- Makefile: build/android-debug-test, sync/android-test-assets,
  run/android-test-debug, log/android-test targets.
- Gradle wrapper bumped to 8.5 for Java 21 compatibility.
2026-08-14 23:05:42 +08:00
西风逍遥游 e27bb3500f feat(tests): enhance test functionality and add new features
- Updated .gitignore to exclude Poly Haven HDR downloads used for environment texture regeneration.
- Modified Makefile to support optional test filtering via CTEST_FILTER for more targeted test execution.
- Added new functionality in graphics tests, including a preview window for live rendering and enhanced environment map handling in IBL tests.
- Introduced new helper functions for file reading and cubemap creation, improving the robustness of texture loading in tests.
- Enhanced Lighting2D tests with a new preview feature to visualize the lit scene during tests.
2026-08-11 00:21:46 +08:00
sunxfancy 6cf7dd9065 feat: add graphics module font rendering capabilities
- Introduced new font rendering functionality in the graphics module, allowing for the creation of GPU font textures and rendering of UTF-8 text.
- Implemented methods for building a font from decoded data, setting the current font, and printing text with proper alignment and kerning.
- Updated the CMake configuration to include the new graphics font test file, enhancing overall test coverage for the graphics module.

This update significantly enhances the text rendering capabilities of the graphics module.
2026-08-08 17:21:12 +08:00