mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
Pequenos ajustes
This commit is contained in:
parent
bdb6cfcd53
commit
b186fe754d
@ -4,15 +4,10 @@
|
|||||||
#include "headers.hpp"
|
#include "headers.hpp"
|
||||||
|
|
||||||
namespace xna {
|
namespace xna {
|
||||||
struct GraphicsAdapterImplementation {
|
|
||||||
comptr<IDXGIAdapter1> Adapter;
|
|
||||||
comptr<IDXGIFactory1> Factory;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct BlendStateImplementation {
|
struct BlendStateImplementation {
|
||||||
D3D11_BLEND_DESC Description{};
|
D3D11_BLEND_DESC Description{};
|
||||||
float BlendFactor[4]{ 1.0F, 1.0F, 1.0F, 1.0F };
|
float BlendFactor[4]{ 1.0F, 1.0F, 1.0F, 1.0F };
|
||||||
UINT SampleMask{ 0xffffffff };
|
UINT SampleMask{ 0xffffffff };
|
||||||
comptr<ID3D11BlendState> BlendState;
|
comptr<ID3D11BlendState> BlendState;
|
||||||
|
|
||||||
static constexpr int MAX_RENDER_TARGETS = 8;
|
static constexpr int MAX_RENDER_TARGETS = 8;
|
||||||
@ -23,6 +18,11 @@ namespace xna {
|
|||||||
D3D11_DEPTH_STENCIL_DESC Description{};
|
D3D11_DEPTH_STENCIL_DESC Description{};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct GraphicsAdapterImplementation {
|
||||||
|
comptr<IDXGIAdapter1> Adapter;
|
||||||
|
comptr<IDXGIFactory1> Factory;
|
||||||
|
};
|
||||||
|
|
||||||
struct SpriteFont::PlatformImplementation {
|
struct SpriteFont::PlatformImplementation {
|
||||||
uptr<DirectX::SpriteFont> dxSpriteFont{ nullptr };
|
uptr<DirectX::SpriteFont> dxSpriteFont{ nullptr };
|
||||||
};
|
};
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#ifndef XNA_GRAPHICS_DEPTHSTENCILSTATE_HPP
|
#ifndef XNA_GRAPHICS_DEPTHSTENCILSTATE_HPP
|
||||||
#define XNA_GRAPHICS_DEPTHSTENCILSTATE_HPP
|
#define XNA_GRAPHICS_DEPTHSTENCILSTATE_HPP
|
||||||
|
|
||||||
#include "gresource.hpp"
|
|
||||||
#include "../platform.hpp"
|
#include "../platform.hpp"
|
||||||
|
#include "gresource.hpp"
|
||||||
#include "shared.hpp"
|
#include "shared.hpp"
|
||||||
#include <memory>
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
namespace xna {
|
namespace xna {
|
||||||
enum class StencilOperation
|
enum class StencilOperation
|
||||||
|
@ -65,8 +65,6 @@ namespace xna {
|
|||||||
struct PlatformImplementation;
|
struct PlatformImplementation;
|
||||||
uptr<PlatformImplementation> impl = nullptr;
|
uptr<PlatformImplementation> impl = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
using PGraphicsDevice = sptr<GraphicsDevice>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
x
Reference in New Issue
Block a user