c967c2edfd
graph_renderer 1.5.0: - 6 shapes SDF (circle, square, diamond, hex, triangle, rounded square) con dispatch en fragment shader y AA via fwidth. - Atlas opcional de iconos Tabler bakeado por graph_icons; el shader compone overlay desde un uniform vec4 u_icon_uvs[256]. Setter publico graph_renderer_set_icon_atlas(r, tex, uv_table, count). - Aristas direccionales: 6 vertices por arista (line + chevron de la flecha) en una sola draw call; segmento principal acortado por el radio del nodo target. - Edge styles solid/dashed/dotted via descarte por arc_length en el fragment shader; las lineas del chevron son siempre solidas. graph_icons 1.0.0 (nuevo): - Atlas RGBA8 512x512 = grid 16x16 (256 iconos max) bakeado con stb_truetype desde tabler-icons.ttf. - API: graph_icons_build/texture/region/uv_table/destroy. icon_id es 1-based; 0 reservado para "sin icono". - Hook FN_GRAPH_ICONS_SKIP_GL=1 para tests sin contexto GL. Demo demos_graph_styles en primitives_gallery: 6 EntityTypes (uno por shape) con icono Tabler representativo + 3 RelationTypes (knows/uses/ owns) con flechas direccionales y los 3 estilos. test_graph_icons: 6 casos cubriendo bake, regiones 1-indexed, uv_table consistente, layout en grid 16x16, validacion de count fuera de rango, y verificacion de alpha != 0 en las celdas tras bake. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
57 lines
1.6 KiB
C++
57 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_graph_styles(); // issue 0049f
|
|
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
|