|
Blender V5.0
|
#include <GHOST_ContextD3D.hh>
Inherits GHOST_Context.
Friends | |
| class | GHOST_XrGraphicsBindingD3D |
| class | GHOST_XrGraphicsBindingOpenGLD3D |
| class | GHOST_XrGraphicsBindingVulkanD3D |
Additional Inherited Members | |
| Static Public Member Functions inherited from GHOST_Context | |
| static GHOST_Context * | getActiveDrawingContext () |
| Static Public Member Functions inherited from GHOST_IContext | |
| static GHOST_IContext * | getActiveDrawingContext () |
| Protected Attributes inherited from GHOST_Context | |
| GHOST_ContextParams | context_params_ |
| void * | user_data_ = nullptr |
| Static Protected Attributes inherited from GHOST_Context | |
| static GHOST_Context * | active_context_ |
Definition at line 19 of file GHOST_ContextD3D.hh.
| GHOST_ContextD3D::GHOST_ContextD3D | ( | const GHOST_ContextParams & | context_params, |
| HWND | hWnd ) |
Definition at line 23 of file GHOST_ContextD3D.cc.
References GHOST_Context::GHOST_Context().
|
override |
Definition at line 28 of file GHOST_ContextD3D.cc.
|
overridevirtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 40 of file GHOST_ContextD3D.cc.
References GHOST_Context::active_context_, and GHOST_kFailure.
| GHOST_TSuccess GHOST_ContextD3D::blitFromOpenGLContext | ( | class GHOST_SharedOpenGLResource * | shared_res, |
| unsigned int | width, | ||
| unsigned int | height ) |
Definition at line 396 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 384 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 367 of file GHOST_ContextD3D.cc.
Referenced by createSharedOpenGLResource().
| void GHOST_ContextD3D::disposeSharedOpenGLResource | ( | class GHOST_SharedOpenGLResource * | shared_res | ) |
Definition at line 391 of file GHOST_ContextD3D.cc.
|
inlineoverridevirtual |
Gets the OpenGL frame-buffer associated with the OpenGL context
Reimplemented from GHOST_Context.
Definition at line 99 of file GHOST_ContextD3D.hh.
| ID3D11Texture2D * GHOST_ContextD3D::getSharedTexture2D | ( | class GHOST_SharedOpenGLResource * | shared_res | ) |
Definition at line 403 of file GHOST_ContextD3D.cc.
References GHOST_SharedOpenGLResource::render_target_tex_.
|
inlineoverridevirtual |
Gets the current swap interval for #swapBuffers.
| interval_out | Variable to store the swap interval if it can be read. |
Reimplemented from GHOST_Context.
Definition at line 90 of file GHOST_ContextD3D.hh.
References GHOST_kFailure.
|
overridevirtual |
Call immediately after new to initialize. If this fails then immediately delete the object.
Implements GHOST_Context.
Definition at line 80 of file GHOST_ContextD3D.cc.
References GHOST_Context::active_context_, GHOST_kFailure, and GHOST_kSuccess.
|
inlineoverridevirtual |
Returns if the context is rendered upside down compared to OpenGL.
Reimplemented from GHOST_Context.
Definition at line 118 of file GHOST_ContextD3D.hh.
|
overridevirtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 46 of file GHOST_ContextD3D.cc.
References GHOST_Context::active_context_, and GHOST_kFailure.
|
overridevirtual |
Checks if it is OK for a remove the native display
Implements GHOST_Context.
Definition at line 108 of file GHOST_ContextD3D.cc.
References GHOST_kFailure.
|
inlineoverridevirtual |
Sets the swap interval for #swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 80 of file GHOST_ContextD3D.hh.
References GHOST_kFailure.
|
inlineoverridevirtual |
Implements GHOST_Context.
Definition at line 30 of file GHOST_ContextD3D.hh.
References GHOST_kSuccess.
|
overridevirtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 35 of file GHOST_ContextD3D.cc.
References GHOST_kSuccess.
|
inlineoverridevirtual |
Updates the drawing context of this window. Needed whenever the window is changed.
Reimplemented from GHOST_Context.
Definition at line 64 of file GHOST_ContextD3D.hh.
References GHOST_kFailure.
|
friend |
Definition at line 21 of file GHOST_ContextD3D.hh.
References GHOST_XrGraphicsBindingD3D.
Referenced by GHOST_XrGraphicsBindingD3D.
|
friend |
Definition at line 22 of file GHOST_ContextD3D.hh.
References GHOST_XrGraphicsBindingOpenGLD3D.
Referenced by GHOST_XrGraphicsBindingOpenGLD3D.
|
friend |
Definition at line 23 of file GHOST_ContextD3D.hh.
References GHOST_XrGraphicsBindingVulkanD3D.
Referenced by GHOST_XrGraphicsBindingVulkanD3D.