feat(gal-test): Add 100% GAL API test coverage (28 scenarios)
Expand GAL native test harness from 24 to 28 scenarios covering all 70 GAL methods. New scenarios: - scenario_text_attrs.cpp (24): Text attribute APIs (SetGlyphSize, SetFontBold/Italic/Underlined, SetTextMirrored, justification) - scenario_glyphs.cpp (25): DrawGlyph/DrawGlyphs with stroke glyphs - scenario_bitmap.cpp (26): DrawBitmap with test patterns - scenario_transform.cpp (27): Transform() API documentation Additional API coverage in existing scenarios: - Flush() in test harness - SetFlip(), SetRotation() in screen-transform - SetDepthRange() in depth-testing - GetGridPoint() in grid-native New stub files: - kifont_stub.h: STROKE_GLYPH factory functions for letter glyphs - bitmap_base_stub.h: Test pattern generators (checkerboard, gradient) Note: Bitmap scenario shows empty panels - DrawBitmap uses legacy OpenGL immediate mode (glBegin/glEnd) which doesn't work while shader is active. This is a known limitation when testing outside KiCad's VIEW rendering flow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
650109e10f
commit
051fb87cab
36 changed files with 3952 additions and 10 deletions
|
|
@ -72,6 +72,20 @@ set(SCENARIO_SOURCES
|
|||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_arc_segments.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_segment_chain.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_group_caching.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_polylines_multi.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_hole_walls.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_grid_native.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_cursor_native.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_render_targets.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_screen_transform.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_clear_colors.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_depth_testing.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_negative_mode.cpp
|
||||
# Additional scenarios (24-27)
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_text_attrs.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_glyphs.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_bitmap.cpp
|
||||
${CMAKE_SOURCE_DIR}/../scenarios/scenario_transform.cpp
|
||||
)
|
||||
|
||||
# Main executable
|
||||
|
|
|
|||
Loading…
Reference in a new issue