XLE
v0.02.0
|
Public Member Functions | |
std::unique_ptr< IPresentationChain > | CreatePresentationChain (const void *platformValue, unsigned width, unsigned height) |
Initialised a window for rendering More... | |
void | BeginFrame (IPresentationChain *presentationChain) |
Begins rendering of a new frame More... | |
std::pair< const char *, const char * > | GetVersionInformation () |
Returns version information for this device More... | |
std::shared_ptr< IThreadContext > | GetImmediateContext () |
std::unique_ptr< IThreadContext > | CreateDeferredContext () |
Public Member Functions inherited from RenderCore::IDevice | |
virtual virtual void * | QueryInterface (const GUID &guid)=0 |
Looks for compatibility with another interface More... | |
Protected Member Functions | |
intrusive_ptr< IDXGI::Factory > | GetDXGIFactory () |
Protected Attributes | |
intrusive_ptr< ID3D::Device > | _underlying |
intrusive_ptr< ID3D::DeviceContext > | _immediateContext |
D3D_FEATURE_LEVEL | _featureLevel |
std::shared_ptr< ThreadContextDX11 > | _immediateThreadContext |
|
virtual |
Begins rendering of a new frame
Starts rendering of a new frame. The frame is ended with a call to RenderCore::IPresentationChain::Present(); You must pass a presentationChain. This defines how the frame will be presented to the user. Note that rendering to offscreen surfaces can happen outside of the BeginFrame/Present boundaries.
Implements RenderCore::IDevice.
|
virtual |
Initialised a window for rendering
To render to a window, we first need to create a presentation chain. This creates the buffers necessary to render to that window.
platformWindowHandle | A platform specific value representing a window. On windows, this is would be a HWND value |
width | Width of the presentation chain. RenderCore can't call GetClientRect() on the window directly, because that would require adding a linker reference to windows dlls. But normally, with and height are the same size as the window client area. If a different size is used, the behaviour might be different on different platforms (but on windows, the output is stretched. |
height | see width |
Implements RenderCore::IDevice.
|
virtual |
Returns version information for this device
Queries build number and build date information. The build number is in a format such as:
Here, X, Y, Z are major, minor and patch version.
The build date format is determined by the OS and locale at compilation time.
Implements RenderCore::IDevice.