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;
|
struct GraphicsAdapterImplementation;
|
||||||
|
|
||||||
//Provides methods to retrieve and manipulate graphics adapters.
|
//Provides methods to retrieve and manipulate graphics adapters.
|
||||||
class GraphicsAdapter : public ImplementationBase<GraphicsAdapterImplementation> {
|
class GraphicsAdapter : public PlatformImplementation<GraphicsAdapterImplementation> {
|
||||||
public:
|
public:
|
||||||
//Collection of available adapters on the system.
|
//Collection of available adapters on the system.
|
||||||
static void Adapters(std::vector<std::unique_ptr<GraphicsAdapter>>& adapters);
|
static void Adapters(std::vector<std::unique_ptr<GraphicsAdapter>>& adapters);
|
||||||
|
@ -104,7 +104,7 @@ namespace xna {
|
|||||||
struct BlendStateImplementation;
|
struct BlendStateImplementation;
|
||||||
|
|
||||||
//Contains blend state for the device.
|
//Contains blend state for the device.
|
||||||
class BlendState : public GraphicsResource, public ImplementationBase<BlendStateImplementation> {
|
class BlendState : public GraphicsResource, public PlatformImplementation<BlendStateImplementation> {
|
||||||
public:
|
public:
|
||||||
BlendState();
|
BlendState();
|
||||||
BlendState(std::shared_ptr<GraphicsDevice> const& device);
|
BlendState(std::shared_ptr<GraphicsDevice> const& device);
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace xna {
|
namespace xna {
|
||||||
template <typename T> struct ImplementationBase {
|
template <typename T> struct PlatformImplementation {
|
||||||
virtual ~ImplementationBase() {}
|
virtual ~PlatformImplementation() {}
|
||||||
|
|
||||||
std::unique_ptr<T> Implementation;
|
std::unique_ptr<T> Implementation;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user