src/ascension/camera.h

changeset 256
60014484121c
parent 214
9d460888a83e
equal deleted inserted replaced
255:0e0a0bf4f7e4 256:60014484121c
44 * Calculates the new drawing viewport. 44 * Calculates the new drawing viewport.
45 * If @c NULL, the entire window will be used. 45 * If @c NULL, the entire window will be used.
46 */ 46 */
47 asc_camera_viewport_update_func viewport_update_func; 47 asc_camera_viewport_update_func viewport_update_func;
48 asc_camera_projection_update_func projection_update_func; 48 asc_camera_projection_update_func projection_update_func;
49 asc_col4f clear_color; 49 asc_color clear_color;
50 bool viewport_clear; 50 bool viewport_clear;
51 }; 51 };
52 52
53 enum AscCameraType { 53 enum AscCameraType {
54 ASC_CAMERA_CUSTOM, 54 ASC_CAMERA_CUSTOM,
70 asc_camera_projection_update_func projection_update_func; 70 asc_camera_projection_update_func projection_update_func;
71 /** 71 /**
72 * Indicates whether the viewport for this camera shall be cleared before rendering. 72 * Indicates whether the viewport for this camera shall be cleared before rendering.
73 * The active drawing color will be used as the clear color (can be changed in the camera struct, afterward). 73 * The active drawing color will be used as the clear color (can be changed in the camera struct, afterward).
74 */ 74 */
75 asc_col4i clear_color; 75 asc_color clear_color;
76 bool viewport_clear; 76 bool viewport_clear;
77 }; 77 };
78 78
79 void asc_camera_init_(AscCamera *camera, struct asc_camera_init_args args); 79 void asc_camera_init_(AscCamera *camera, struct asc_camera_init_args args);
80 80

mercurial