Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_Window.cpp
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | else { | ||||
| m_drawingContextType = GHOST_kDrawingContextTypeNone; | m_drawingContextType = GHOST_kDrawingContextTypeNone; | ||||
| } | } | ||||
| return (type == m_drawingContextType) ? GHOST_kSuccess : GHOST_kFailure; | return (type == m_drawingContextType) ? GHOST_kSuccess : GHOST_kFailure; | ||||
| } | } | ||||
| return GHOST_kSuccess; | return GHOST_kSuccess; | ||||
| } | } | ||||
| GHOST_IContext *GHOST_Window::getDrawingContext() | |||||
| { | |||||
| return m_context; | |||||
| } | |||||
| GHOST_TSuccess GHOST_Window::swapBuffers() | GHOST_TSuccess GHOST_Window::swapBuffers() | ||||
| { | { | ||||
| return m_context->swapBuffers(); | return m_context->swapBuffers(); | ||||
| } | } | ||||
| GHOST_TSuccess GHOST_Window::setSwapInterval(int interval) | GHOST_TSuccess GHOST_Window::setSwapInterval(int interval) | ||||
| { | { | ||||
| return m_context->setSwapInterval(interval); | return m_context->setSwapInterval(interval); | ||||
| Show All 9 Lines | GHOST_Context *GHOST_Window::getContext() | ||||
| return m_context; | return m_context; | ||||
| } | } | ||||
| uint GHOST_Window::getDefaultFramebuffer() | uint GHOST_Window::getDefaultFramebuffer() | ||||
| { | { | ||||
| return (m_context) ? m_context->getDefaultFramebuffer() : 0; | return (m_context) ? m_context->getDefaultFramebuffer() : 0; | ||||
| } | } | ||||
| GHOST_TSuccess GHOST_Window::getVulkanBackbuffer(void *image, | |||||
| void *framebuffer, | |||||
| void *command_buffer, | |||||
| void *render_pass, | |||||
| void *extent, | |||||
| uint32_t *fb_id) | |||||
| { | |||||
| return m_context->getVulkanBackbuffer( | |||||
| image, framebuffer, command_buffer, render_pass, extent, fb_id); | |||||
| } | |||||
| GHOST_TSuccess GHOST_Window::activateDrawingContext() | GHOST_TSuccess GHOST_Window::activateDrawingContext() | ||||
| { | { | ||||
| return m_context->activateDrawingContext(); | return m_context->activateDrawingContext(); | ||||
| } | } | ||||
| GHOST_TSuccess GHOST_Window::updateDrawingContext() | GHOST_TSuccess GHOST_Window::updateDrawingContext() | ||||
| { | { | ||||
| return m_context->updateDrawingContext(); | return m_context->updateDrawingContext(); | ||||
| ▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines | |||||