|
Blender
V2.93
|
#include <GHOST_ContextD3D.h>
Inherits GHOST_Context.
Friends | |
| class | GHOST_XrGraphicsBindingD3D |
Additional Inherited Members | |
Protected Member Functions inherited from GHOST_Context | |
| void | initContextGLEW () |
Static Protected Member Functions inherited from GHOST_Context | |
| static void | initClearGL () |
Protected Attributes inherited from GHOST_Context | |
| bool | m_stereoVisual |
Definition at line 31 of file GHOST_ContextD3D.h.
| GHOST_ContextD3D::GHOST_ContextD3D | ( | bool | stereoVisual, |
| HWND | hWnd | ||
| ) |
Definition at line 36 of file GHOST_ContextD3D.cpp.
| GHOST_ContextD3D::~GHOST_ContextD3D | ( | ) |
Definition at line 41 of file GHOST_ContextD3D.cpp.
|
virtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 53 of file GHOST_ContextD3D.cpp.
References GHOST_kFailure.
| GHOST_TSuccess GHOST_ContextD3D::blitFromOpenGLContext | ( | class GHOST_SharedOpenGLResource * | shared_res, |
| unsigned int | width, | ||
| unsigned int | height | ||
| ) |
Definition at line 348 of file GHOST_ContextD3D.cpp.
References GHOST_SharedOpenGLResource::blit(), height, and width.
| GHOST_SharedOpenGLResource * GHOST_ContextD3D::createSharedOpenGLResource | ( | unsigned int | width, |
| unsigned int | height | ||
| ) |
Definition at line 337 of file GHOST_ContextD3D.cpp.
References createSharedOpenGLResource(), height, and width.
| GHOST_SharedOpenGLResource * GHOST_ContextD3D::createSharedOpenGLResource | ( | unsigned int | width, |
| unsigned int | height, | ||
| ID3D11RenderTargetView * | render_target | ||
| ) |
Definition at line 323 of file GHOST_ContextD3D.cpp.
Referenced by createSharedOpenGLResource().
| void GHOST_ContextD3D::disposeSharedOpenGLResource | ( | class GHOST_SharedOpenGLResource * | shared_res | ) |
Definition at line 343 of file GHOST_ContextD3D.cpp.
|
inlinevirtual |
Gets the OpenGL frame-buffer associated with the OpenGL context
Reimplemented from GHOST_Context.
Definition at line 103 of file GHOST_ContextD3D.h.
| ID3D11Texture2D * GHOST_ContextD3D::getSharedTexture2D | ( | class GHOST_SharedOpenGLResource * | shared_res | ) |
Definition at line 355 of file GHOST_ContextD3D.cpp.
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 94 of file GHOST_ContextD3D.h.
References GHOST_kFailure.
|
virtual |
Call immediately after new to initialize. If this fails then immediately delete the object.
Implements GHOST_Context.
Definition at line 91 of file GHOST_ContextD3D.cpp.
References GHOST_kFailure, GHOST_kSuccess, and NULL.
|
inlinevirtual |
Returns if the context is rendered upside down compared to OpenGL.
Reimplemented from GHOST_Context.
Definition at line 118 of file GHOST_ContextD3D.h.
|
virtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 58 of file GHOST_ContextD3D.cpp.
References GHOST_kFailure.
|
virtual |
Checks if it is OK for a remove the native display
Implements GHOST_Context.
Definition at line 118 of file GHOST_ContextD3D.cpp.
References GHOST_kFailure.
|
inlinevirtual |
Sets the swap interval for swapBuffers.
| interval | The swap interval to use. |
Reimplemented from GHOST_Context.
Definition at line 84 of file GHOST_ContextD3D.h.
References GHOST_kFailure.
|
virtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 48 of file GHOST_ContextD3D.cpp.
References GHOST_kSuccess.
|
inlinevirtual |
Updates the drawing context of this window. Needed whenever the window is changed.
Reimplemented from GHOST_Context.
Definition at line 68 of file GHOST_ContextD3D.h.
References GHOST_kFailure.
|
friend |
Definition at line 33 of file GHOST_ContextD3D.h.