Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_Window.h
| Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | public: | ||||
| * Child classes do not need to overload this method, | * Child classes do not need to overload this method, | ||||
| * They should overload #newDrawingContext instead. | * They should overload #newDrawingContext instead. | ||||
| * \param type: The type of rendering context installed. | * \param type: The type of rendering context installed. | ||||
| * \return Indication as to whether installation has succeeded. | * \return Indication as to whether installation has succeeded. | ||||
| */ | */ | ||||
| GHOST_TSuccess setDrawingContextType(GHOST_TDrawingContextType type) override; | GHOST_TSuccess setDrawingContextType(GHOST_TDrawingContextType type) override; | ||||
| /** | /** | ||||
| * Returns the drawing context used in this window. | |||||
| * \return The current drawing context. | |||||
| */ | |||||
| virtual GHOST_IContext *getDrawingContext() override; | |||||
| /** | |||||
| * Swaps front and back buffers of a window. | * Swaps front and back buffers of a window. | ||||
| * \return A boolean success indicator. | * \return A boolean success indicator. | ||||
| */ | */ | ||||
| virtual GHOST_TSuccess swapBuffers() override; | virtual GHOST_TSuccess swapBuffers() override; | ||||
| /** | /** | ||||
| * Activates the drawing context of this window. | * Activates the drawing context of this window. | ||||
| * \return A boolean success indicator. | * \return A boolean success indicator. | ||||
| Show All 15 Lines | public: | ||||
| /** | /** | ||||
| * Gets the OpenGL frame-buffer associated with the window's contents. | * Gets the OpenGL frame-buffer associated with the window's contents. | ||||
| * \return The ID of an OpenGL frame-buffer object. | * \return The ID of an OpenGL frame-buffer object. | ||||
| */ | */ | ||||
| virtual unsigned int getDefaultFramebuffer() override; | virtual unsigned int getDefaultFramebuffer() override; | ||||
| /** | /** | ||||
| * Gets the Vulkan framebuffer related resource handles associated with the Vulkan context. | |||||
| * Needs to be called after each swap events as the framebuffer will change. | |||||
| * \return A boolean success indicator. | |||||
| */ | |||||
| virtual GHOST_TSuccess getVulkanBackbuffer(void *image, | |||||
| void *framebuffer, | |||||
| void *command_buffer, | |||||
| void *render_pass, | |||||
| void *extent, | |||||
| uint32_t *fb_id) override; | |||||
| /** | |||||
| * Returns the window user data. | * Returns the window user data. | ||||
| * \return The window user data. | * \return The window user data. | ||||
| */ | */ | ||||
| inline GHOST_TUserDataPtr getUserData() const override | inline GHOST_TUserDataPtr getUserData() const override | ||||
| { | { | ||||
| return m_userData; | return m_userData; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines | |||||