amino
Lightweight Robot Utility Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
scene_sdl.h File Reference

SDL (Simple DirectMedia Layer) support. More...

Go to the source code of this file.

Functions

AA_API void aa_sdl_init (void)
 Initialize SDL library and options. More...
 
AA_API void aa_sdl_scroll (struct aa_gl_globals *globals, int *update, int *quit)
 
AA_API void aa_sdl_display_loop (SDL_Window *window, struct aa_gl_globals *globals, aa_sdl_display_fun display, void *context)
 
AA_API void aa_sdl_gl_window (const char *title, int x_pos, int y_pos, int width, int height, Uint32 flags, SDL_Window **pwindow, SDL_GLContext *p_glcontext)
 
AA_API const struct timespec * aa_sdl_display_params_get_time_now (struct aa_sdl_display_params *params)
 
AA_API const struct timespec * aa_sdl_display_params_get_time_last (struct aa_sdl_display_params *params)
 
AA_API const struct timespec * aa_sdl_display_params_get_time_initial (struct aa_sdl_display_params *params)
 
AA_API int aa_sdl_display_params_get_update (struct aa_sdl_display_params *params)
 
AA_API void aa_sdl_display_params_set_quit (struct aa_sdl_display_params *params)
 
AA_API void aa_sdl_display_params_set_update (struct aa_sdl_display_params *params)
 
AA_API int aa_sdl_display_params_is_first (struct aa_sdl_display_params *params)
 

Detailed Description

SDL (Simple DirectMedia Layer) support.

Definition in file scene_sdl.h.

Function Documentation

AA_API void aa_sdl_init ( void  )

Initialize SDL library and options.

The following environement variables may be used to set the corresponding SDL attributes:

  • SDL_GL_DOUBLEBUFFER
  • SDL_GL_MULTISAMPLEBUFFERS
  • SDL_GL_MULTISAMPLESAMPLES
  • SDL_GL_DEPTH_SIZE

The following environement variables may be used to set the corresponding SDL hints:

  • SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS
  • SDL_HINT_RENDER_DRIVER
  • SDL_HINT_VIDEO_X11_XRANDR
  • SDL_HINT_VIDEO_X11_XVIDMODE
  • SDL_HINT_VIDEO_X11_XINERAMA
  • SDL_HINT_VIDEO_ALLOW_SCREENSAVER
  • SDL_HINT_RENDER_SCALE_QUALITY