mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Direct2D: Rename GDIContext and D2DContext
This commit is contained in:
parent
831c5142a4
commit
2a108ca582
1 changed files with 5 additions and 5 deletions
|
|
@ -4663,12 +4663,12 @@ Image createSnapshotOfNativeWindow (void* nativeWindowHandle)
|
|||
return {};
|
||||
}
|
||||
|
||||
class GDIContext : public RenderContext
|
||||
class GDIRenderContext : public RenderContext
|
||||
{
|
||||
public:
|
||||
static constexpr auto name = "Software Renderer";
|
||||
|
||||
explicit GDIContext (HWNDComponentPeer& peerIn)
|
||||
explicit GDIRenderContext (HWNDComponentPeer& peerIn)
|
||||
: peer (peerIn)
|
||||
{
|
||||
peer.setLayeredWindowStyle (false);
|
||||
|
|
@ -4989,12 +4989,12 @@ private:
|
|||
bool resizing = false;
|
||||
};
|
||||
|
||||
class D2DContext : public RenderContext
|
||||
class D2DRenderContext : public RenderContext
|
||||
{
|
||||
public:
|
||||
static constexpr auto name = "Direct2D";
|
||||
|
||||
explicit D2DContext (HWNDComponentPeer& peerIn)
|
||||
explicit D2DRenderContext (HWNDComponentPeer& peerIn)
|
||||
: peer (peerIn),
|
||||
direct2DContext (std::make_unique<Direct2DHwndContext> (peer.getHWND(), peer.getComponent().isOpaque()))
|
||||
{
|
||||
|
|
@ -5174,7 +5174,7 @@ inline constexpr ContextDescriptor contextDescriptorList[]
|
|||
};
|
||||
|
||||
// To add a new rendering backend, implement RenderContext for that backend, and then append the backend to this typelist
|
||||
inline constexpr auto& contextDescriptors = contextDescriptorList<GDIContext, D2DContext>;
|
||||
inline constexpr auto& contextDescriptors = contextDescriptorList<GDIRenderContext, D2DRenderContext>;
|
||||
|
||||
void HWNDComponentPeer::setCurrentRenderingEngine (int e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue