14 #include "RNA_prototypes.h"
68 const float halfx = GLA_PIXEL_OFS / sizex;
69 const float halfy = GLA_PIXEL_OFS / sizex;
81 immAttr2f(texcoord, 1.0f + halfx, 1.0f + halfy);
112 const float halfx = GLA_PIXEL_OFS / sizex;
113 const float halfy = GLA_PIXEL_OFS / sizex;
122 immAttr2f(texcoord, 1.0f + halfx, halfy);
125 immAttr2f(texcoord, 1.0f + halfx, 1.0f + halfy);
128 immAttr2f(texcoord, halfx, 1.0f + halfy);
174 if (r_mouse_xy[0] > half_x) {
175 r_mouse_xy[0] -= half_x;
182 if (r_mouse_xy[1] > half_y) {
183 r_mouse_xy[1] -= half_y;
287 "Failed to create a window without quad-buffer support, you may experience flickering");
297 op->
reports,
RPT_ERROR,
"Failed to switch to Time Sequential mode when in fullscreen");
315 "Failed to create a window compatible with the time sequential display method");
321 if (!is_fullscreen) {
366 uiItemR(
col, &stereo3d_format_ptr,
"display_mode", 0,
NULL, ICON_NONE);
370 uiItemR(
col, &stereo3d_format_ptr,
"anaglyph_type", 0,
NULL, ICON_NONE);
374 uiItemR(
col, &stereo3d_format_ptr,
"interlace_type", 0,
NULL, ICON_NONE);
375 uiItemR(
col, &stereo3d_format_ptr,
"use_interlace_swap", 0,
NULL, ICON_NONE);
379 uiItemR(
col, &stereo3d_format_ptr,
"use_sidebyside_crosseyed", 0,
NULL, ICON_NONE);
struct wmWindowManager * CTX_wm_manager(const bContext *C)
void CTX_wm_window_set(bContext *C, struct wmWindow *win)
struct wmWindow * CTX_wm_window(const bContext *C)
void BKE_report(ReportList *reports, eReportType type, const char *message)
These structs are the foundation for all linked lists in the library system.
@ S3D_SIDEBYSIDE_CROSSEYED
bool ED_screen_stereo3d_required(const struct bScreen *screen, const struct Scene *scene)
GHOST C-API function and type declarations.
GHOST_TWindowState GHOST_GetWindowState(GHOST_WindowHandle windowhandle)
@ GHOST_kWindowStateFullScreen
bool GPU_stereo_quadbuffer_support(void)
Read Guarded memory(de)allocation.
uiLayout * uiLayoutColumn(uiLayout *layout, bool align)
void uiLayoutSetPropSep(uiLayout *layout, bool is_sep)
void uiItemR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int flag, const char *name, int icon)
void uiLayoutSetPropDecorate(uiLayout *layout, bool is_sep)
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
bool RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop)
int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop)
Stereo3dFormat stereo3d_format
struct ReportList * reports
struct Stereo3dFormat * stereo3d_format
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
int WM_operator_props_dialog_popup(bContext *C, wmOperator *op, int width)
void wm_stereo3d_draw_sidebyside(wmWindow *win, int view)
bool WM_stereo3d_enabled(wmWindow *win, bool skip_stereo3d_check)
static bool wm_stereo3d_set_properties(bContext *UNUSED(C), wmOperator *op)
void wm_stereo3d_draw_topbottom(wmWindow *win, int view)
struct Stereo3dData Stereo3dData
static bool wm_stereo3d_is_fullscreen_required(eStereoDisplayMode stereo_display)
int wm_stereo3d_set_exec(bContext *C, wmOperator *op)
bool wm_stereo3d_set_check(bContext *UNUSED(C), wmOperator *UNUSED(op))
static void wm_stereo3d_set_init(bContext *C, wmOperator *op)
int wm_stereo3d_set_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
void wm_stereo3d_set_draw(bContext *UNUSED(C), wmOperator *op)
void wm_stereo3d_mouse_offset_apply(wmWindow *win, int r_mouse_xy[2])
void wm_stereo3d_set_cancel(bContext *UNUSED(C), wmOperator *op)
int WM_window_pixels_y(const wmWindow *win)
bool WM_window_is_fullscreen(const wmWindow *win)
void wm_window_close(bContext *C, wmWindowManager *wm, wmWindow *win)
bScreen * WM_window_get_active_screen(const wmWindow *win)
int WM_window_pixels_x(const wmWindow *win)
wmWindow * wm_window_copy_test(bContext *C, wmWindow *win_src, const bool duplicate_layout, const bool child)
Scene * WM_window_get_active_scene(const wmWindow *win)