|
Blender V4.3
|
#include <cstdlib>#include <cstring>#include "DNA_listBase.h"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "MEM_guardedalloc.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_report.hh"#include "BLT_translation.hh"#include "GHOST_C-api.h"#include "ED_screen.hh"#include "GPU_capabilities.hh"#include "GPU_immediate.hh"#include "GPU_texture.hh"#include "GPU_viewport.hh"#include "WM_api.hh"#include "WM_types.hh"#include "wm.hh"#include "wm_window.hh"#include "UI_interface.hh"#include "UI_resources.hh"Go to the source code of this file.
Classes | |
| struct | Stereo3dData |
Functions | |
| void | wm_stereo3d_draw_sidebyside (wmWindow *win, int view) |
| void | wm_stereo3d_draw_topbottom (wmWindow *win, int view) |
| static bool | wm_stereo3d_is_fullscreen_required (eStereoDisplayMode stereo_display) |
| bool | WM_stereo3d_enabled (wmWindow *win, bool skip_stereo3d_check) |
| void | wm_stereo3d_mouse_offset_apply (wmWindow *win, int r_mouse_xy[2]) |
| static bool | wm_stereo3d_set_properties (bContext *, wmOperator *op) |
| static void | wm_stereo3d_set_init (bContext *C, wmOperator *op) |
| int | wm_stereo3d_set_exec (bContext *C, wmOperator *op) |
| int | wm_stereo3d_set_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| void | wm_stereo3d_set_draw (bContext *, wmOperator *op) |
| bool | wm_stereo3d_set_check (bContext *, wmOperator *) |
| void | wm_stereo3d_set_cancel (bContext *, wmOperator *op) |
Definition at line 44 of file wm_stereo.cc.
References Stereo3dFormat::flag, GLA_PIXEL_OFS, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_FAN, GPU_SHADER_3D_IMAGE, GPU_vertformat_attr_add(), immAttr2f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), pos, S3D_SIDEBYSIDE_CROSSEYED, wmWindow::stereo3d_format, STEREO_LEFT_ID, and WM_window_native_pixel_size().
Referenced by wm_draw_window().
Definition at line 93 of file wm_stereo.cc.
References GLA_PIXEL_OFS, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRI_FAN, GPU_SHADER_3D_IMAGE, GPU_vertformat_attr_add(), immAttr2f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), pos, STEREO_LEFT_ID, and WM_window_native_pixel_size().
Referenced by wm_draw_window().
| bool WM_stereo3d_enabled | ( | wmWindow * | win, |
| bool | skip_stereo3d_check ) |
Definition at line 141 of file wm_stereo.cc.
References Stereo3dFormat::display_mode, ED_screen_stereo3d_required(), GHOST_GetWindowState(), GHOST_kWindowStateFullScreen, wmWindow::ghostwin, wmWindow::stereo3d_format, wm_stereo3d_is_fullscreen_required(), WM_window_get_active_scene(), and WM_window_get_active_screen().
Referenced by button_activate_state(), view3d_stereo3d_active(), wm_draw_window(), and wm_stereo3d_mouse_offset_apply().
|
static |
Definition at line 136 of file wm_stereo.cc.
References ELEM, S3D_DISPLAY_SIDEBYSIDE, and S3D_DISPLAY_TOPBOTTOM.
Referenced by WM_stereo3d_enabled(), and wm_stereo3d_set_exec().
If needed, adjust r_mouse_xy so that drawn cursor and handled mouse position are matching visually.
Definition at line 167 of file wm_stereo.cc.
References Stereo3dFormat::display_mode, S3D_DISPLAY_SIDEBYSIDE, S3D_DISPLAY_TOPBOTTOM, wmWindow::stereo3d_format, WM_stereo3d_enabled(), WM_window_native_pixel_x(), and WM_window_native_pixel_y().
Referenced by wm_event_add_ghostevent().
| void wm_stereo3d_set_cancel | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 402 of file wm_stereo.cc.
References wmOperator::customdata, and MEM_freeN().
Referenced by WM_OT_stereo3d_set().
| bool wm_stereo3d_set_check | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 394 of file wm_stereo.cc.
Referenced by WM_OT_stereo3d_set().
| void wm_stereo3d_set_draw | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 356 of file wm_stereo.cc.
References col, wmOperator::customdata, Stereo3dFormat::display_mode, wmOperator::layout, RNA_pointer_create(), S3D_DISPLAY_ANAGLYPH, S3D_DISPLAY_INTERLACE, S3D_DISPLAY_PAGEFLIP, S3D_DISPLAY_SIDEBYSIDE, S3D_DISPLAY_TOPBOTTOM, Stereo3dData::stereo3d_format, UI_ITEM_NONE, uiItemR(), uiLayoutColumn(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by WM_OT_stereo3d_set().
| int wm_stereo3d_set_exec | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 257 of file wm_stereo.cc.
References BKE_report(), CTX_wm_manager(), CTX_wm_window(), CTX_wm_window_set(), wmOperator::customdata, Stereo3dFormat::display_mode, G, GPU_stereo_quadbuffer_support(), MEM_freeN(), NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_INFO, S3D_DISPLAY_PAGEFLIP, SCREENNORMAL, Stereo3dData::stereo3d_format, wmWindow::stereo3d_format, WM_event_add_notifier(), wm_stereo3d_is_fullscreen_required(), wm_stereo3d_set_init(), wm_stereo3d_set_properties(), wm_window_close(), wm_window_copy_test(), WM_window_get_active_screen(), and WM_window_is_fullscreen().
Referenced by WM_OT_stereo3d_set(), and wm_stereo3d_set_invoke().
|
static |
Definition at line 246 of file wm_stereo.cc.
References CTX_wm_window(), wmOperator::customdata, MEM_callocN, Stereo3dData::stereo3d_format, and wmWindow::stereo3d_format.
Referenced by wm_stereo3d_set_exec(), and wm_stereo3d_set_invoke().
| int wm_stereo3d_set_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 346 of file wm_stereo.cc.
References IFACE_, WM_operator_props_dialog_popup(), wm_stereo3d_set_exec(), wm_stereo3d_set_init(), and wm_stereo3d_set_properties().
Referenced by WM_OT_stereo3d_set().
|
static |
Definition at line 196 of file wm_stereo.cc.
References Stereo3dFormat::anaglyph_type, wmOperator::customdata, Stereo3dFormat::display_mode, Stereo3dFormat::flag, Stereo3dFormat::interlace_type, wmOperator::ptr, RNA_property_boolean_get(), RNA_property_enum_get(), RNA_property_is_set(), RNA_struct_find_property(), S3D_INTERLACE_SWAP, S3D_SIDEBYSIDE_CROSSEYED, and Stereo3dData::stereo3d_format.
Referenced by wm_stereo3d_set_exec(), and wm_stereo3d_set_invoke().