e72e526c64
Adds three new demos to the Core section of primitives_gallery: - demo_tween: dropdown of all 16 Ease modes + animated plot showing the curve and a moving marker that traverses t=0..1 in a loop. - demo_bezier_editor: live editor with reset + ease-out / ease-in-out presets, current control points displayed, slider over t showing bezier_eval(curve, t). - demo_timeline: 2 tracks (hue, amp) with mixed eases, live progress bars showing track_value_at(current_time) updating each frame. Wires the three demos into k_demos[] in main.cpp and adds the new sources (plus the three function .cpp files) to CMakeLists.txt.
46 lines
1.1 KiB
C++
46 lines
1.1 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
|
|
|
|
// --- 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();
|
|
|
|
// --- Gfx ---
|
|
void demo_shader_canvas();
|
|
void demo_gl_texture(); // wave 1, issue 0026
|
|
|
|
} // namespace gallery
|