|
Blender V4.3
|
#include <GHOST_ContextD3D.hh>
Inherits GHOST_Context.
Friends | |
| class | GHOST_XrGraphicsBindingD3D |
Additional Inherited Members | |
Protected Attributes inherited from GHOST_Context | |
| bool | m_stereoVisual |
| void * | m_user_data = nullptr |
Definition at line 19 of file GHOST_ContextD3D.hh.
| GHOST_ContextD3D::GHOST_ContextD3D | ( | bool | stereoVisual, |
| HWND | hWnd ) |
Definition at line 23 of file GHOST_ContextD3D.cc.
| GHOST_ContextD3D::~GHOST_ContextD3D | ( | ) |
Definition at line 28 of file GHOST_ContextD3D.cc.
|
virtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 40 of file GHOST_ContextD3D.cc.
References GHOST_kFailure.
| GHOST_TSuccess GHOST_ContextD3D::blitFromOpenGLContext | ( | class GHOST_SharedOpenGLResource * | shared_res, |
| unsigned int | width, | ||
| unsigned int | height ) |
Definition at line 393 of file GHOST_ContextD3D.cc.
References GHOST_SharedOpenGLResource::blit().
| GHOST_SharedOpenGLResource * GHOST_ContextD3D::createSharedOpenGLResource | ( | unsigned int | width, |
| unsigned int | height, | ||
| DXGI_FORMAT | format ) |
Definition at line 381 of file GHOST_ContextD3D.cc.
References createSharedOpenGLResource().
| GHOST_SharedOpenGLResource * GHOST_ContextD3D::createSharedOpenGLResource | ( | unsigned int | width, |
| unsigned int | height, | ||
| DXGI_FORMAT | format, | ||
| ID3D11RenderTargetView * | render_target ) |
Definition at line 364 of file GHOST_ContextD3D.cc.
Referenced by createSharedOpenGLResource().
| void GHOST_ContextD3D::disposeSharedOpenGLResource | ( | class GHOST_SharedOpenGLResource * | shared_res | ) |
Definition at line 388 of file GHOST_ContextD3D.cc.
|
inlinevirtual |
Gets the OpenGL frame-buffer associated with the OpenGL context
Reimplemented from GHOST_Context.
Definition at line 91 of file GHOST_ContextD3D.hh.
| ID3D11Texture2D * GHOST_ContextD3D::getSharedTexture2D | ( | class GHOST_SharedOpenGLResource * | shared_res | ) |
Definition at line 400 of file GHOST_ContextD3D.cc.
References GHOST_SharedOpenGLResource::m_render_target_tex.
|
inlinevirtual |
Gets the current swap interval for swapBuffers.
| intervalOut | Variable to store the swap interval if it can be read. |
Reimplemented from GHOST_Context.
Definition at line 82 of file GHOST_ContextD3D.hh.
References GHOST_kFailure.
|
virtual |
Call immediately after new to initialize. If this fails then immediately delete the object.
Implements GHOST_Context.
Definition at line 78 of file GHOST_ContextD3D.cc.
References GHOST_kFailure, and GHOST_kSuccess.
|
inlinevirtual |
Returns if the context is rendered upside down compared to OpenGL.
Reimplemented from GHOST_Context.
Definition at line 110 of file GHOST_ContextD3D.hh.
|
virtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 45 of file GHOST_ContextD3D.cc.
References GHOST_kFailure.
|
virtual |
Checks if it is OK for a remove the native display
Implements GHOST_Context.
Definition at line 105 of file GHOST_ContextD3D.cc.
References GHOST_kFailure.
|
inlinevirtual |
Sets the swap interval for swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 72 of file GHOST_ContextD3D.hh.
References GHOST_kFailure.
|
virtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 35 of file GHOST_ContextD3D.cc.
References GHOST_kSuccess.
|
inlinevirtual |
Updates the drawing context of this window. Needed whenever the window is changed.
Reimplemented from GHOST_Context.
Definition at line 56 of file GHOST_ContextD3D.hh.
References GHOST_kFailure.
|
friend |
Definition at line 21 of file GHOST_ContextD3D.hh.