1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

Pequenos ajustes

This commit is contained in:
Danilo 2024-11-14 13:44:23 -03:00
parent bdb6cfcd53
commit b186fe754d
3 changed files with 8 additions and 10 deletions

View File

@ -4,15 +4,10 @@
#include "headers.hpp"
namespace xna {
struct GraphicsAdapterImplementation {
comptr<IDXGIAdapter1> Adapter;
comptr<IDXGIFactory1> Factory;
};
struct BlendStateImplementation {
D3D11_BLEND_DESC Description{};
float BlendFactor[4]{ 1.0F, 1.0F, 1.0F, 1.0F };
UINT SampleMask{ 0xffffffff };
UINT SampleMask{ 0xffffffff };
comptr<ID3D11BlendState> BlendState;
static constexpr int MAX_RENDER_TARGETS = 8;
@ -23,6 +18,11 @@ namespace xna {
D3D11_DEPTH_STENCIL_DESC Description{};
};
struct GraphicsAdapterImplementation {
comptr<IDXGIAdapter1> Adapter;
comptr<IDXGIFactory1> Factory;
};
struct SpriteFont::PlatformImplementation {
uptr<DirectX::SpriteFont> dxSpriteFont{ nullptr };
};

View File

@ -1,11 +1,11 @@
#ifndef XNA_GRAPHICS_DEPTHSTENCILSTATE_HPP
#define XNA_GRAPHICS_DEPTHSTENCILSTATE_HPP
#include "gresource.hpp"
#include "../platform.hpp"
#include "gresource.hpp"
#include "shared.hpp"
#include <memory>
#include <cstdint>
#include <memory>
namespace xna {
enum class StencilOperation

View File

@ -65,8 +65,6 @@ namespace xna {
struct PlatformImplementation;
uptr<PlatformImplementation> impl = nullptr;
};
using PGraphicsDevice = sptr<GraphicsDevice>;
}
#endif