Blender
V4.3
intern
ghost
GHOST_IContext.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
10
#pragma once
11
12
#include <functional>
13
14
#include "
GHOST_Types.h
"
15
23
class
GHOST_IContext
{
24
public
:
28
virtual
~GHOST_IContext
() {}
29
34
virtual
GHOST_TSuccess
activateDrawingContext
() = 0;
35
40
virtual
GHOST_TSuccess
releaseDrawingContext
() = 0;
41
42
virtual
unsigned
int
getDefaultFramebuffer
() = 0;
43
virtual
GHOST_TSuccess
swapBuffers
() = 0;
44
45
#ifdef WITH_VULKAN_BACKEND
75
virtual
GHOST_TSuccess
getVulkanHandles(
void
*r_instance,
76
void
*r_physical_device,
77
void
*r_device,
78
uint32_t
*r_graphic_queue_family,
79
void
*r_queue,
80
void
**r_queue_mutex) = 0;
81
94
virtual
GHOST_TSuccess
getVulkanSwapChainFormat(
95
GHOST_VulkanSwapChainData *r_swap_chain_data) = 0;
96
108
virtual
GHOST_TSuccess
setVulkanSwapBuffersCallbacks(
109
std::function<
void
(
const
GHOST_VulkanSwapChainData *)> swap_buffers_pre_callback,
110
std::function<
void
(
void
)> swap_buffers_post_callback) = 0;
111
#endif
112
113
#ifdef WITH_CXX_GUARDEDALLOC
114
MEM_CXX_CLASS_ALLOC_FUNCS(
"GHOST:GHOST_IContext"
)
115
#endif
116
};
GHOST_Types.h
GHOST_TSuccess
GHOST_TSuccess
Definition
GHOST_Types.h:87
GHOST_IContext
Definition
GHOST_IContext.hh:23
GHOST_IContext::releaseDrawingContext
virtual GHOST_TSuccess releaseDrawingContext()=0
GHOST_IContext::~GHOST_IContext
virtual ~GHOST_IContext()
Definition
GHOST_IContext.hh:28
GHOST_IContext::activateDrawingContext
virtual GHOST_TSuccess activateDrawingContext()=0
GHOST_IContext::swapBuffers
virtual GHOST_TSuccess swapBuffers()=0
GHOST_IContext::getDefaultFramebuffer
virtual unsigned int getDefaultFramebuffer()=0
uint32_t
unsigned int uint32_t
Definition
stdint.h:80
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0