#include <dx10weaver.h>
|
| DX10WeaverBase () |
|
| ~DX10WeaverBase () |
|
ID3D10RenderTargetView * | getFrameBuffer () |
| Returns the buffer that will be used to create a weaved image. This buffer expects a side-by-side image. When a frame buffer is provided by calling setInputFrameBuffer(), the internally created buffer will be released. More...
|
|
void | setInputFrameBuffer (ID3D10ShaderResourceView *frameBuffer) |
| Sets the buffer that will be used to create a weaved image. This will release the internally created frame buffer. More...
|
|
void | setWindowHandle (HWND handle) |
| Sets the window handle of the application window. More...
|
|
bool | canWeave (unsigned int width, unsigned int height) |
| Used to determine if software weaving is possible for certain size and visibility to the currently bound framebuffer. More...
|
|
bool | canWeave (unsigned int width, unsigned int height, unsigned int xOffset, unsigned int yOffset) |
| Used to determine if software weaving is possible for certain size and visibility to the currently bound framebuffer. More...
|
|
void | weave (unsigned int width, unsigned int height) |
| Can be called to render a weaved image of a certain size to the currently bound framebuffer A framebuffer must be set before calling this function. More...
|
|
void | weave (unsigned int width, unsigned int height, unsigned int xOffset, unsigned int yOffset) |
| Can be called to render a weaved image of a certain size to the currently bound framebuffer A framebuffer must be set before calling this function. More...
|
|
|
std::unique_ptr< Impl > | pimpl |
|
◆ DX10WeaverBase()
SR::DX10WeaverBase::DX10WeaverBase |
( |
| ) |
|
◆ ~DX10WeaverBase()
SR::DX10WeaverBase::~DX10WeaverBase |
( |
| ) |
|
◆ canWeave() [1/2]
bool SR::DX10WeaverBase::canWeave |
( |
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
Used to determine if software weaving is possible for certain size and visibility to the currently bound framebuffer.
- Parameters
-
width | of the image to be rendered to the bound framebuffer |
height | of the image to be rendered to the bound framebuffer |
- Exceptions
-
std::runtime_error | if the window handle (HWND) becomes invalid during the execution of canWeave |
- Returns
- bool indicating whether weaving can be done. Returns true when software weaving can be performed by DX10Weaver. When false is returned, you can output side-by-side manually or let DX10Weaver handle this.
◆ canWeave() [2/2]
bool SR::DX10WeaverBase::canWeave |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
xOffset, |
|
|
unsigned int |
yOffset |
|
) |
| |
Used to determine if software weaving is possible for certain size and visibility to the currently bound framebuffer.
- Parameters
-
width | of the image to be rendered to the bound framebuffer |
height | of the image to be rendered to the bound framebuffer |
xOffset | of the image to be rendered to the bound framebuffer |
yOffset | of the image to be rendered to the bound framebuffer |
- Exceptions
-
std::runtime_error | if the window handle (HWND) becomes invalid during the execution of canWeave |
- Returns
- bool indicating whether weaving can be done. Returns true when software weaving can be performed by DX10Weaver. When false is returned, you can output side-by-side manually or let DX10Weaver handle this.
◆ getFrameBuffer()
ID3D10RenderTargetView * SR::DX10WeaverBase::getFrameBuffer |
( |
| ) |
|
Returns the buffer that will be used to create a weaved image. This buffer expects a side-by-side image. When a frame buffer is provided by calling setInputFrameBuffer(), the internally created buffer will be released.
The buffer identifier can be bound using OMSetRenderTargets
to start rendering to it. Rendering to the buffer is identical to normal rendering and often starts with calling ClearRenderTargetView
.
- Returns
- ID3D10RenderTargetView identifying a buffer generated with
CreateRenderTargetView
◆ setInputFrameBuffer()
void SR::DX10WeaverBase::setInputFrameBuffer |
( |
ID3D10ShaderResourceView * |
frameBuffer | ) |
|
Sets the buffer that will be used to create a weaved image. This will release the internally created frame buffer.
- Parameters
-
frameBuffer | Frame buffer to set |
◆ setWindowHandle()
void SR::DX10WeaverBase::setWindowHandle |
( |
HWND |
handle | ) |
|
Sets the window handle of the application window.
- Parameters
-
window | Handle of the application window |
◆ weave() [1/2]
void SR::DX10WeaverBase::weave |
( |
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
Can be called to render a weaved image of a certain size to the currently bound framebuffer A framebuffer must be set before calling this function.
- Parameters
-
width | of the image to be rendered to the bound framebuffer |
height | of the image to be rendered to the bound framebuffer |
◆ weave() [2/2]
void SR::DX10WeaverBase::weave |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
xOffset, |
|
|
unsigned int |
yOffset |
|
) |
| |
Can be called to render a weaved image of a certain size to the currently bound framebuffer A framebuffer must be set before calling this function.
- Parameters
-
width | of the image to be rendered to the bound framebuffer |
height | of the image to be rendered to the bound framebuffer |
xOffset | of the image to be rendered to the bound framebuffer |
yOffset | of the image to be rendered to the bound framebuffer |
◆ pimpl
std::unique_ptr<Impl> SR::DX10WeaverBase::pimpl |
|
protected |
Suppressing warning because if we don't want to export everything then solving the underlying problem requires modification of the API Warning Description: 'type' : class 'type1' needs to have dll-interface to be used by clients of class 'type2' Candidate for deprecation
The documentation for this class was generated from the following file: