492e6b59cd
Cierra 0049b. El context de fn::run_app pide ahora GL 4.3 core con forward-compat global, habilitando compute shaders, SSBOs, image load/store y atomic counters — bloques esenciales del graph_renderer GPU del proyecto osint_graph (issues 0049f y 0049h). Cambios: - cpp/framework/app_base.cpp: 4.3 core + forward-compat. Comentario marcando que es backward-compatible con shaders #version 330. - cpp/apps/primitives_gallery/capture.cpp: deja explicitamente 3.3 core porque WSL Mesa no entrega 4.3 offscreen (GLXBadFBConfig); ImGui + ImPlot funcionan igual en 3.3 para los goldens. - primitives_gallery: nuevo demo Gfx > gl_info que muestra Vendor/Renderer/Version/GLSL en runtime + status 4.3 (verde) + limites (MAX_TEXTURE_SIZE, MAX_VERTEX_ATTRIBS, MAX_UNIFORM_BLOCK_SIZE y, si 4.3+, MAX_SHADER_STORAGE_BUFFER_BINDINGS y compute shared mem). Solo glGetString/glGetIntegerv — sin loader extra. - About bumped a 0.4.0 con la nota del nuevo demo y de GL 4.3. - cpp/tests/test_visual.cpp: usa LIBGL_ALWAYS_SOFTWARE=1 al lanzar el capture para alinear el driver con update_goldens.sh; sin esto las diferencias de strings (llvmpipe vs d3d12) hacen que gl_info supere el 1% de tolerancia. - cpp/tests/golden/gl_info.png: nuevo golden. Build verificado en Linux (cmake build OK) + Windows cross-compile (cmake build OK). Las 27 pruebas pasan (incluida test_visual con 42 demos comparadas).
56 lines
1.6 KiB
C++
56 lines
1.6 KiB
C++
#pragma once
|
|
// Cada demo_xxx() renderiza una seccion completa para un primitivo.
|
|
// Se llaman desde main.cpp en funcion del item seleccionado en el sidebar.
|
|
|
|
namespace gallery {
|
|
|
|
// --- Core ---
|
|
void demo_button();
|
|
void demo_icon_button();
|
|
void demo_toolbar();
|
|
void demo_modal();
|
|
void demo_text_input();
|
|
void demo_select();
|
|
void demo_toast();
|
|
void demo_tree_view();
|
|
void demo_kpi_card();
|
|
void demo_badge();
|
|
void demo_empty_state();
|
|
void demo_page_header();
|
|
void demo_dashboard_panel();
|
|
void demo_text_editor(); // wave 1, issue 0025
|
|
void demo_file_watcher(); // wave 1, issue 0025
|
|
void demo_process_runner();
|
|
void demo_tween(); // issue 0031
|
|
void demo_bezier_editor(); // issue 0031
|
|
void demo_timeline(); // issue 0031
|
|
void demo_sql_workbench(); // issue 0032
|
|
|
|
// --- Viz ---
|
|
void demo_bar_chart();
|
|
void demo_pie_chart();
|
|
void demo_line_plot();
|
|
void demo_scatter_plot();
|
|
void demo_histogram();
|
|
void demo_sparkline();
|
|
void demo_graph();
|
|
void demo_candlestick();
|
|
void demo_gauge();
|
|
void demo_heatmap();
|
|
void demo_table_view();
|
|
void demo_surface_plot_3d(); // issue 0028, ImPlot3D
|
|
void demo_scatter_3d(); // issue 0028, ImPlot3D
|
|
void demo_mesh_viewer(); // issue 0029
|
|
void demo_treemap(); // issue 0034
|
|
void demo_sankey(); // issue 0034
|
|
void demo_chord(); // issue 0034
|
|
void demo_contour(); // issue 0034
|
|
void demo_voronoi(); // issue 0034
|
|
|
|
// --- Gfx ---
|
|
void demo_shader_canvas();
|
|
void demo_gl_texture(); // wave 1, issue 0026
|
|
void demo_gl_info(); // issue 0049b — runtime GL version + 4.3 caps
|
|
|
|
} // namespace gallery
|