Blender  V3.3
Classes | Typedefs | Functions
wm_stereo.c File Reference
#include <stdlib.h>
#include <string.h>
#include "DNA_listBase.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "MEM_guardedalloc.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_report.h"
#include "GHOST_C-api.h"
#include "ED_screen.h"
#include "GPU_capabilities.h"
#include "GPU_immediate.h"
#include "GPU_texture.h"
#include "GPU_viewport.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm.h"
#include "wm_draw.h"
#include "wm_window.h"
#include "UI_interface.h"
#include "UI_resources.h"

Go to the source code of this file.

Classes

struct  Stereo3dData
 

Typedefs

typedef struct Stereo3dData 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 *UNUSED(C), 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 *UNUSED(event))
 
void wm_stereo3d_set_draw (bContext *UNUSED(C), wmOperator *op)
 
bool wm_stereo3d_set_check (bContext *UNUSED(C), wmOperator *UNUSED(op))
 
void wm_stereo3d_set_cancel (bContext *UNUSED(C), wmOperator *op)
 

Typedef Documentation

◆ Stereo3dData

typedef struct Stereo3dData Stereo3dData

Function Documentation

◆ wm_stereo3d_draw_sidebyside()

void wm_stereo3d_draw_sidebyside ( wmWindow win,
int  view 
)

◆ wm_stereo3d_draw_topbottom()

void wm_stereo3d_draw_topbottom ( wmWindow win,
int  view 
)

◆ WM_stereo3d_enabled()

bool WM_stereo3d_enabled ( wmWindow win,
bool  skip_stereo3d_check 
)

◆ wm_stereo3d_is_fullscreen_required()

static bool wm_stereo3d_is_fullscreen_required ( eStereoDisplayMode  stereo_display)
static

Definition at line 136 of file wm_stereo.c.

References ELEM, S3D_DISPLAY_SIDEBYSIDE, and S3D_DISPLAY_TOPBOTTOM.

Referenced by WM_stereo3d_enabled(), and wm_stereo3d_set_exec().

◆ wm_stereo3d_mouse_offset_apply()

void wm_stereo3d_mouse_offset_apply ( wmWindow win,
int  r_mouse_xy[2] 
)

If needed, adjust r_mouse_xy so that drawn cursor and handled mouse position are matching visually.

Definition at line 165 of file wm_stereo.c.

References Stereo3dFormat::display_mode, S3D_DISPLAY_SIDEBYSIDE, S3D_DISPLAY_TOPBOTTOM, wmWindow::stereo3d_format, WM_stereo3d_enabled(), WM_window_pixels_x(), and WM_window_pixels_y().

Referenced by wm_event_add_ghostevent().

◆ wm_stereo3d_set_cancel()

void wm_stereo3d_set_cancel ( bContext UNUSEDC,
wmOperator op 
)

Definition at line 398 of file wm_stereo.c.

References wmOperator::customdata, MEM_freeN, and NULL.

Referenced by WM_OT_stereo3d_set().

◆ wm_stereo3d_set_check()

bool wm_stereo3d_set_check ( bContext UNUSEDC,
wmOperator UNUSEDop 
)

Definition at line 390 of file wm_stereo.c.

Referenced by WM_OT_stereo3d_set().

◆ wm_stereo3d_set_draw()

void wm_stereo3d_set_draw ( bContext UNUSEDC,
wmOperator op 
)

◆ wm_stereo3d_set_exec()

int wm_stereo3d_set_exec ( bContext C,
wmOperator op 
)

◆ wm_stereo3d_set_init()

static void wm_stereo3d_set_init ( bContext C,
wmOperator op 
)
static

◆ wm_stereo3d_set_invoke()

int wm_stereo3d_set_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)

◆ wm_stereo3d_set_properties()

static bool wm_stereo3d_set_properties ( bContext UNUSEDC,
wmOperator op 
)
static