Blender
V3.3
|
#include <GHOST_ContextD3D.h>
Friends | |
class | GHOST_XrGraphicsBindingD3D |
Additional Inherited Members | |
![]() | |
void | initContextGLEW () |
![]() | |
static void | initClearGL () |
![]() | |
bool | m_stereoVisual |
void * | m_user_data = nullptr |
Definition at line 17 of file GHOST_ContextD3D.h.
GHOST_ContextD3D::GHOST_ContextD3D | ( | bool | stereoVisual, |
HWND | hWnd | ||
) |
Definition at line 22 of file GHOST_ContextD3D.cpp.
GHOST_ContextD3D::~GHOST_ContextD3D | ( | ) |
Definition at line 27 of file GHOST_ContextD3D.cpp.
|
virtual |
Activates the drawing context of this window.
Implements GHOST_Context.
Definition at line 39 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 386 of file GHOST_ContextD3D.cpp.
References GHOST_SharedOpenGLResource::blit(), height, and width.
GHOST_SharedOpenGLResource * GHOST_ContextD3D::createSharedOpenGLResource | ( | unsigned int | width, |
unsigned int | height, | ||
DXGI_FORMAT | format | ||
) |
Definition at line 374 of file GHOST_ContextD3D.cpp.
References createSharedOpenGLResource(), height, and width.
GHOST_SharedOpenGLResource * GHOST_ContextD3D::createSharedOpenGLResource | ( | unsigned int | width, |
unsigned int | height, | ||
DXGI_FORMAT | format, | ||
ID3D11RenderTargetView * | render_target | ||
) |
Definition at line 357 of file GHOST_ContextD3D.cpp.
Referenced by createSharedOpenGLResource().
void GHOST_ContextD3D::disposeSharedOpenGLResource | ( | class GHOST_SharedOpenGLResource * | shared_res | ) |
Definition at line 381 of file GHOST_ContextD3D.cpp.
|
inlinevirtual |
Gets the OpenGL frame-buffer associated with the OpenGL context
Reimplemented from GHOST_Context.
Definition at line 89 of file GHOST_ContextD3D.h.
ID3D11Texture2D * GHOST_ContextD3D::getSharedTexture2D | ( | class GHOST_SharedOpenGLResource * | shared_res | ) |
Definition at line 393 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 80 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 77 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 108 of file GHOST_ContextD3D.h.
|
virtual |
Release the drawing context of the calling thread.
Implements GHOST_Context.
Definition at line 44 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 104 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 70 of file GHOST_ContextD3D.h.
References GHOST_kFailure.
|
virtual |
Swaps front and back buffers of a window.
Implements GHOST_Context.
Definition at line 34 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 54 of file GHOST_ContextD3D.h.
References GHOST_kFailure.
|
friend |
Definition at line 19 of file GHOST_ContextD3D.h.