Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_Context.h
| Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | public: | ||||
| * Gets the OpenGL frame-buffer associated with the OpenGL context | * Gets the OpenGL frame-buffer associated with the OpenGL context | ||||
| * \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 | ||||
| { | { | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| /** | |||||
| * Gets the Vulkan context related resource handles. | |||||
| * \return A boolean success indicator. | |||||
| */ | |||||
| virtual GHOST_TSuccess getVulkanHandles(void * /*r_instance*/, | |||||
| void * /*r_physical_device*/, | |||||
| void * /*r_device*/, | |||||
| uint32_t * /*r_graphic_queue_familly*/) override | |||||
| { | |||||
| return GHOST_kFailure; | |||||
| }; | |||||
| /** | |||||
| * 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 | |||||
| { | |||||
| return GHOST_kFailure; | |||||
| } | |||||
| protected: | protected: | ||||
| bool m_stereoVisual; | bool m_stereoVisual; | ||||
| /** Caller specified, not for internal use. */ | /** Caller specified, not for internal use. */ | ||||
| void *m_user_data = nullptr; | void *m_user_data = nullptr; | ||||
| static void initClearGL(); | static void initClearGL(); | ||||
| Show All 17 Lines | |||||