87 if (context_ !=
nullptr) {
107 return context_->swapBufferAcquire();
111 return context_->swapBufferRelease();
116 return context_->setSwapInterval(interval);
121 return context_->getSwapInterval(interval_out);
131 return (context_) ? context_->getDefaultFramebuffer() : 0;
134#ifdef WITH_VULKAN_BACKEND
135GHOST_TSuccess GHOST_Window::getVulkanSwapChainFormat(GHOST_VulkanSwapChainData *r_swap_chain_data)
137 return context_->getVulkanSwapChainFormat(r_swap_chain_data);
143 return context_->activateDrawingContext();
148 return context_->updateDrawingContext();
153 return context_->releaseNativeHandles();
174 if (mouse_ungrab_xy) {
210 bool &use_software_cursor)
246 const int hot_spot[2],
247 bool can_invert_color)
@ GHOST_kWindowStateFullScreen
@ GHOST_kStandardCursorCustom
@ GHOST_kStandardCursorDefault
GHOST_TDrawingContextType
@ GHOST_kDrawingContextTypeNone
#define GHOST_CONTEXT_PARAMS_NONE
GHOST_TWindowDecorationStyleFlags
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
static btDbvtVolume bounds(btDbvtNode **leaves, int count)
virtual void getClientBounds(GHOST_Rect &bounds) const =0
GHOST_ContextParams want_context_params_
int32_t cursor_grab_accum_pos_[2]
GHOST_TSuccess swapBufferRelease() override
bool getCursorGrabUseSoftwareDisplay() override
virtual void setWindowDecorationStyleFlags(GHOST_TWindowDecorationStyleFlags style_flags) override
GHOST_TStandardCursor cursor_shape_
GHOST_TAxisFlag cursor_grab_axis_
GHOST_TSuccess getCursorGrabBounds(GHOST_Rect &bounds) const override
bool can_accept_drag_operation_
GHOST_TSuccess setModifiedState(bool is_unsaved_changes) override
void * getOSWindow() const override
GHOST_WindowDecorationStyleSettings window_decoration_style_settings_
GHOST_TSuccess setDrawingContextType(GHOST_TDrawingContextType type) override
GHOST_TSuccess setCursorShape(GHOST_TStandardCursor cursor_shape) override
uint32_t full_screen_width_
GHOST_Context * getContext()
int32_t cursor_grab_init_pos_[2]
bool canAcceptDragOperation() const override
GHOST_TSuccess setCursorGrab(GHOST_TGrabCursorMode mode, GHOST_TAxisFlag wrap_axis, GHOST_Rect *bounds, int32_t mouse_ungrab_xy[2]) override
unsigned int getDefaultFramebuffer() override
GHOST_TSuccess setSwapInterval(int interval) override
virtual GHOST_TSuccess setWindowCursorGrab(GHOST_TGrabCursorMode)
GHOST_TUserDataPtr user_data_
GHOST_TDrawingContextType drawing_context_type_
virtual GHOST_TWindowDecorationStyleFlags getWindowDecorationStyleFlags() override
GHOST_TSuccess releaseNativeHandles()
virtual GHOST_TSuccess setWindowCustomCursorGenerator(GHOST_CursorGenerator *cursor_generator)
virtual void setWindowDecorationStyleSettings(GHOST_WindowDecorationStyleSettings decoration_settings) override
GHOST_TWindowDecorationStyleFlags window_decoration_style_flags_
uint32_t full_screen_height_
bool getModifiedState() override
GHOST_TSuccess setCursorVisibility(bool visible) override
GHOST_TSuccess setCustomCursorShape(const uint8_t *bitmap, const uint8_t *mask, const int size[2], const int hot_spot[2], bool can_invert_color) override
GHOST_TSuccess getCursorBitmap(GHOST_CursorBitmapRef *bitmap) override
virtual GHOST_TSuccess setWindowCursorVisibility(bool visible)=0
void setAcceptDragOperation(bool can_accept) override
GHOST_TSuccess activateDrawingContext() override
GHOST_IContext * getDrawingContext() override
void getCursorGrabState(GHOST_TGrabCursorMode &mode, GHOST_TAxisFlag &wrap_axis, GHOST_Rect &bounds, bool &use_software_cursor) override
GHOST_TSuccess updateDrawingContext()
GHOST_Window(uint32_t width, uint32_t height, GHOST_TWindowState state, const GHOST_ContextParams &context_params, const bool exclusive=false)
GHOST_TSuccess getSwapInterval(int &interval_out) override
virtual GHOST_TSuccess setWindowCursorShape(GHOST_TStandardCursor shape)=0
virtual GHOST_Context * newDrawingContext(GHOST_TDrawingContextType type)=0
GHOST_Rect cursor_grab_bounds_
bool progress_bar_visible_
GHOST_TSuccess swapBufferAcquire() override
GHOST_TGrabCursorMode cursor_grab_
GHOST_TSuccess setCustomCursorGenerator(GHOST_CursorGenerator *cursor_generator) override
virtual GHOST_TSuccess setWindowCustomCursorShape(const uint8_t *bitmap, const uint8_t *mask, const int size[2], const int hot_size[2], bool can_invert_color)=0
#define assert(assertion)
ccl_device_inline float2 mask(const MaskType mask, const float2 a)