38 #ifndef AMINO_RX_SCENE_WIN_H
39 #define AMINO_RX_SCENE_WIN_H
62 const char* title,
int width,
int height );
81 AA_API struct aa_gl_globals *
97 aa_rx_win_get_sg(
struct aa_rx_win * win );
105 size_t n_q,
const double *q );
111 size_t n_tf,
const double *tf_abs,
size_t ld_tf );
140 aa_sdl_win_display_fun display,
142 void (*destructor)(
void*) );
146 aa_rx_win_set_display_plan(
struct aa_rx_win * win,
148 size_t n_plan_elements,
149 const double *plan );
154 aa_rx_win_set_display_seq(
struct aa_rx_win * win,
struct aa_rx_mp_seq *mp_seq);
AA_API void aa_rx_win_pause(struct aa_rx_win *win, int paused)
Pause rendering.
AA_API void aa_rx_win_start(struct aa_rx_win *win)
Start a thread to asynchronously render the window.
AA_API struct aa_gl_globals * aa_rx_win_gl_globals(struct aa_rx_win *win)
Return a pointer to the window's GL globals struct.
AA_API void aa_rx_win_display_loop(struct aa_rx_win *window)
Synchronous display using current thread.
Opaque type for a scene_graph.
AA_API void aa_rx_win_set_sg(struct aa_rx_win *win, const struct aa_rx_sg *sg)
Set a scenegraph for the window.
AA_API void aa_rx_win_join(struct aa_rx_win *win)
Join the asynchronous display thread.
AA_API void aa_rx_win_stop(struct aa_rx_win *win)
Instruct the rendering thread to stop.
AA_API void aa_rx_win_lock(struct aa_rx_win *win)
Lock the window.
#define AA_API
calling and name mangling convention for functions
AA_API void aa_rx_win_set_display(struct aa_rx_win *win, aa_sdl_win_display_fun display, void *context, void(*destructor)(void *))
Set the window's display function.
AA_API void aa_rx_win_set_config(struct aa_rx_win *win, size_t n, const double *q)
Set the configuration vector for the window.
Opaque type for a window.
AA_API void aa_rx_win_unlock(struct aa_rx_win *win)
Unlock the window.
AA_API void aa_rx_win_set_tf_cam(struct aa_rx_win *win, const double *E)
Set the camera pose.
AA_API struct aa_rx_win * aa_rx_win_create(const char *title, int x_pos, int y_pos, int width, int height, Uint32 flags)
Create a new SDL / OpenGL window.
Parameters for SDL display function.
AA_API void aa_rx_win_destroy(struct aa_rx_win *win)
Destroy SDL / OpenGL window.
AA_API void aa_rx_win_get_tf_cam(struct aa_rx_win *win, double *E)
Return the current camera pose.
AA_API void aa_rx_win_display_sg_config(struct aa_rx_win *win, struct aa_sdl_display_params *params, const struct aa_rx_sg *scenegraph, size_t n_q, const double *q)
Render a scenegraph at the given configuration in the window.
AA_API void aa_rx_win_sg_gl_init(struct aa_rx_win *win, struct aa_rx_sg *sg)
Initialize scenegraph GL values for the given window.
AA_API struct aa_rx_win * aa_rx_win_default_create(const char *title, int width, int height)
Create a new SDL / OpenGL window with default parameters.
AA_API void aa_rx_win_stop_on_quit(struct aa_rx_win *win, int value)
Instruct the rendering thread to stop when the user closes the window.