Render core


Functions

int SAL_render_thread (void *unused)
 Render thread.
int salRefresh ()
 Refresh screen.
int SAL_start_renderer ()
 Start render thread.

Detailed Description

Core render functions

Function Documentation

int SAL_render_thread ( void *  unused  ) 

Render thread.

Parameters:
unused NULL
Note:
Deprecated as refresh rate is deprecated.
This thread refresh the screen every *refresh_rate* mili-seconds.

Definition at line 41 of file SAL_render.cpp.

References SAL_int_checks::alive, SAL_intern::checks, SAL_int_render::display, SAL_structure::internal, SAL_set_render::refresh_rate, SAL_setting::render, SAL_intern::render, salError(), and SAL_structure::setting.

Referenced by SAL_start_renderer().

int SAL_start_renderer (  ) 

Start render thread.

Note:
Deprecated.

Definition at line 118 of file SAL_render.cpp.

References SAL_structure::internal, SAL_intern::render, SAL_render_thread(), salError(), and SAL_int_render::thread.

Referenced by SAL().

int salRefresh (  ) 

Refresh screen.

Warning:
Always use this function when using gui objects.
Refreshes the screen and draws all visable gui objects.

Update all gui components that are visable

Definition at line 83 of file SAL_render.cpp.

References SAL_int_render::display, SAL_intern::event, salList< SAL_list_entry >::getLoopEntry(), salList< SAL_list_entry >::inLoop(), SAL_structure::internal, SAL_intern::render, salList< SAL_list_entry >::setLoopBegin(), SAL_gui_object::surface, SAL_int_event::visable_objects, SAL_gui_object::x, and SAL_gui_object::y.