mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
Renomeia ImplementationBase
This commit is contained in:
parent
8a9415b88e
commit
9fac00699d
@ -12,7 +12,7 @@ namespace xna {
|
||||
struct GraphicsAdapterImplementation;
|
||||
|
||||
//Provides methods to retrieve and manipulate graphics adapters.
|
||||
class GraphicsAdapter : public ImplementationBase<GraphicsAdapterImplementation> {
|
||||
class GraphicsAdapter : public PlatformImplementation<GraphicsAdapterImplementation> {
|
||||
public:
|
||||
//Collection of available adapters on the system.
|
||||
static void Adapters(std::vector<std::unique_ptr<GraphicsAdapter>>& adapters);
|
||||
|
@ -104,7 +104,7 @@ namespace xna {
|
||||
struct BlendStateImplementation;
|
||||
|
||||
//Contains blend state for the device.
|
||||
class BlendState : public GraphicsResource, public ImplementationBase<BlendStateImplementation> {
|
||||
class BlendState : public GraphicsResource, public PlatformImplementation<BlendStateImplementation> {
|
||||
public:
|
||||
BlendState();
|
||||
BlendState(std::shared_ptr<GraphicsDevice> const& device);
|
||||
|
@ -4,8 +4,8 @@
|
||||
#include <memory>
|
||||
|
||||
namespace xna {
|
||||
template <typename T> struct ImplementationBase {
|
||||
virtual ~ImplementationBase() {}
|
||||
template <typename T> struct PlatformImplementation {
|
||||
virtual ~PlatformImplementation() {}
|
||||
|
||||
std::unique_ptr<T> Implementation;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user