Man page - s3d_mainloop(3)
Packages contains this manual
- s3dw_moveit(3)
- s3dw_input_change_text(3)
- s3d_obj_info(9)
- s3dw_label_new(3)
- s3d_pep_polygon_tex_coord(3)
- s3dw_textbox_scrollleft(3)
- s3d_push_polygon(3)
- s3dw_textbox_change_text(3)
- s3d_pop_line(3)
- s3dw_input_gettext(3)
- s3d_pep_lines(3)
- s3d_push_material(3)
- s3d_pop_material(3)
- s3d_angle_to_cam(3)
- s3dw_widget(9)
- s3d_rotate(3)
- s3d_pop_polygon(3)
- s3dw_button(9)
- s3d_pep_polygon_normals(3)
- s3d_push_materials_a(3)
- s3d_scale(3)
- s3d_vector_length(3)
- s3dw_label(9)
- s3d_process_stack(3)
- s3d_new_object(3)
- s3d_quit(3)
- s3dw_textbox_scrollto(3)
- s3d_push_vertex(3)
- s3dw_textbox_scrollright(3)
- s3d_pep_line_normals(3)
- s3d_push_line(3)
- s3dw_object_info(3)
- s3dw_button_new(3)
- s3d_load_materials_a(3)
- s3d_unlink(3)
- s3d_set_callback(3)
- s3d_del_object(3)
- s3d_pep_vertex(3)
- s3d_clone(3)
- s3d_flags_off(3)
- s3d_push_lines(3)
- s3d_strlen(3)
- s3d_push_material_a(3)
- s3d_vector_subtract(3)
- s3d_pop_event(3)
- s3d_pop_vertex(3)
- s3d_load_polygon_normals(3)
- s3d_init(3)
- s3dw_textbox_new(3)
- s3dw_input(9)
- s3d_vector_cross_product(3)
- s3d_clear_callback(3)
- s3dw_scrollbar(9)
- s3d_get_callback(3)
- s3d_select_font(3)
- s3d_mainloop(3)
- s3d_find_event(3)
- s3d_ignore_callback(3)
- s3d_push_polygons(3)
- s3d_pep_line(3)
- s3d_draw_string(3)
- s3d_load_polygon_tex_coords(3)
- s3d_pep_materials_a(3)
- s3d_pep_vertices(3)
- s3d_usage(3)
- s3d_pep_material_a(3)
- mcp_object(9)
- s3dw_surface(9)
- s3dw_ani_mate(3)
- s3d_push_texture(3)
- s3d_push_event(3)
- s3d_evt(9)
- s3d_translate(3)
- s3d_vector_dot_product(3)
- s3dw_delete(3)
- s3d_pep_polygon_tex_coords(3)
- s3d_clone_target(3)
- s3dw_textbox_scrolldown(3)
- s3d_but_info(9)
- s3d_delete_event(3)
- s3d_push_vertices(3)
- s3dw_focus(3)
- s3dw_getroot(3)
- s3dw_label_change_text(3)
- s3d_import_model_file(3)
- s3dw_surface_new(3)
- s3d_mcp_focus(3)
- s3dw_input_new(3)
- s3d_pep_material_texture(3)
- s3d_link(3)
- s3d_pop_texture(3)
- s3d_net_check(3)
- s3d_flags_on(3)
- s3dw_show(3)
- s3d_key_event(9)
- s3d_pep_material(3)
- s3d_open_file(3)
- s3d_load_texture(3)
- s3dw_handle_click(3)
- s3d_load_line_normals(3)
- s3dw_style(9)
- s3d_push_textures(3)
- s3dw_handle_key(3)
- s3dw_textbox(9)
- s3dw_textbox_scrollup(3)
- s3d_vector_angle(3)
Package: s3d-doc
apt-get install s3d-doc
apt-get install s3d-doc
Manuals in package:
Manual
S3D_MAINLOOP
NAMESYNOPSIS
DESCRIPTION
AUTHOR
NAME
s3d_mainloop - set mainloop of program
SYNOPSIS
#include <s3d.h>
|
int s3d_mainloop(void(*)(void) f ); |
DESCRIPTION
Takes a function as argument. It will loop this function until a quit-event is received. You can pass NULL if you have no function to be looped, but its better to sleep some time if you have nothing to do anyway to save cpu-time.
void
mainloop(void)
{
usleep(1000); // sleep 1 ms in every cycle
}
...
s3d_mainloop(mainloop());
AUTHOR
Simon Wunderlich
Author of s3d