View and projection code

seduce_view_init

void seduce_view_init(SViewData *v);

seduce_view_set

void seduce_view_set(SViewData *v, RMatrix *m);

seduce_view_update

void seduce_view_update(SViewData *v, float delta);

seduce_view_slide

void seduce_view_slide(SViewData *v, boolean slide);

seduce_view_interpolation_style_set

void seduce_view_interpolation_style_set(SViewData *v, SViewInterpolationStyle style, float speed);

Types:

Enum:

SViewInterpolationStyle

S_VIS_LINEAR

S_VIS_EASE_IN

S_VIS_EASE_OUT

S_VIS_SMOOTH

S_VIS_CUT

S_VIS_COUNT

seduce_view_change_look_at

void seduce_view_change_look_at(SViewData *v, float *target, float *camera, float *up);

seduce_view_change_right_button

boolean seduce_view_change_right_button(SViewData *v, BInputState *input);

seduce_view_change_mouse_look

void seduce_view_change_mouse_look(SViewData *v, BInputState *input);

seduce_view_change_multi_touch

boolean seduce_view_change_multi_touch(SViewData *v, BInputState *input, void *id);

seduce_view_change_keys

boolean seduce_view_change_keys(SViewData *v, BInputState *input, void *id);

seduce_view_change_axised_orbit

void seduce_view_change_axised_orbit(SViewData *v, BInputState *input);

seduce_view_change_spin_orbit

void seduce_view_change_spin_orbit(SViewData *v, BInputState *input);

seduce_view_change_spin_axised_orbit

void seduce_view_change_spin_axised_orbit(SViewData *v, BInputState *input);

seduce_view_change_orbit

void seduce_view_change_orbit(SViewData *v, BInputState *input, uint button, boolean slide);

seduce_view_change_orbit_delta

void seduce_view_change_orbit_delta(SViewData *v, BInputState *input, uint button, boolean slide);

seduce_view_orbit

void seduce_view_orbit(SViewData *v, float x, float y);

seduce_view_change_rotate

void seduce_view_change_rotate(SViewData *v, BInputState *input, uint button, boolean slide);

seduce_view_change_rotate_delta

void seduce_view_change_rotate_delta(SViewData *v, BInputState *input, uint button, boolean slide);

seduce_view_rotate

void seduce_view_rotate(SViewData *v, BInputState *input, float x, float y);

seduce_view_change_pan

void seduce_view_change_pan(SViewData *v, BInputState *input, uint button, boolean slide);

seduce_view_change_pan_delta

void seduce_view_change_pan_delta(SViewData *v, BInputState *input, uint button, boolean slide);

seduce_view_pan

void seduce_view_pan(SViewData *v, float x, float y);

seduce_view_pan_to_set

void seduce_view_pan_to_set(SViewData *v, float position_x, float position_y, float position_z);

seduce_view_change_distance

void seduce_view_change_distance(SViewData *v, BInputState *input, uint button, boolean slide);

seduce_view_change_distance_delta

void seduce_view_change_distance_delta(SViewData *v, BInputState *input, uint button, boolean slide);

seduce_view_change_distance_scroll

void seduce_view_change_distance_scroll(SViewData *v, BInputState *input);

seduce_view_distance

void seduce_view_distance(SViewData *v, float x, float y);

seduce_view_distance_to_set

void seduce_view_distance_to_set(SViewData *v, float distance);

seduce_view_change_distance_scroll_zoom

void seduce_view_change_distance_scroll_zoom(SViewData *v, BInputState *input);

seduce_view_center_set

void seduce_view_center_set(SViewData *v, float position_x, float position_y, float position_z);

seduce_view_camera_set

void seduce_view_camera_set(SViewData *v, float position_x, float position_y, float position_z);

seduce_view_up_set

void seduce_view_up_set(SViewData *v, float up_x, float up_y, float up_z);

seduce_view_pan_to_set

void seduce_view_pan_to_set(SViewData *v, float position_x, float position_y, float position_z);

seduce_view_direction_set

void seduce_view_direction_set(SViewData *v, float normal_x, float normal_y, float normal_z);

seduce_view_change_zoom

void seduce_view_change_zoom(SViewData *v, float delta_x, float delta_y);

seduce_view_center_getf

void seduce_view_center_getf(SViewData *v, float *center);

seduce_view_center_getd

void seduce_view_center_getd(SViewData *v, double *center);

seduce_view_distance_camera_set

void seduce_view_distance_camera_set(SViewData *v, double distance);

seduce_view_distance_camera_get

double seduce_view_distance_camera_get(SViewData *v);

seduce_view_camera_getf

void seduce_view_camera_getf(SViewData *v, float *camera);

seduce_view_camera_getd

void seduce_view_camera_getd(SViewData *v, double *camera);

seduce_view_camera_vector_getf

void seduce_view_camera_vector_getf(SViewData *v, float *camera, float x, float y);

seduce_view_camera_vector_getd

void seduce_view_camera_vector_getd(SViewData *v, double *camera, double x, double y);

seduce_view_grid_size_set

void seduce_view_grid_size_set(SViewData *v, double grid_size);

seduce_view_model_matrixd

void seduce_view_model_matrixd(SViewData *v, double *matrix);

seduce_view_model_matrixf

void seduce_view_model_matrixf(SViewData *v, float *matrix);

seduce_view_sprite_matrixf

void seduce_view_sprite_matrixf(SViewData *v, float *matrix);

seduce_view_projectiond

void seduce_view_projectiond(SViewData *v, double *output, double x, double y);

seduce_view_projectionf

void seduce_view_projectionf(SViewData *v, float *output, float x, float y);

seduce_view_projection_vertexf

void seduce_view_projection_vertexf(SViewData *v, float *output, float *vertex, float x, float y);

seduce_view_projection_vertexd

void seduce_view_projection_vertexd(SViewData *v, double *output, double *vertex, double x, double y);

seduce_view_projection_screend

void seduce_view_projection_screend(SViewData *v, double *output, double x, double y, double z);

seduce_view_projection_screenf

void seduce_view_projection_screenf(SViewData *v, float *output, float x, float y, float z);

seduce_view_projection_screen_distanced

double seduce_view_projection_screen_distanced(SViewData *v, double space_x, double space_y, double space_z, double screen_x, double screen_y);

seduce_view_projection_planed

void seduce_view_projection_planed(SViewData *v, double *dist, uint axis, double pointer_x, double pointer_y , double depth);

seduce_view_projection_lined

double seduce_view_projection_lined(SViewData *v, double *dist, uint axis, double pointer_x, double pointer_y, double *pos);