mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
Corrige BlendState
This commit is contained in:
parent
19ccd27dea
commit
6bd15e797b
@ -166,7 +166,7 @@ namespace xna {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uptr<BlendState> BlendState::AlphaBlend() {
|
uptr<BlendState> BlendState::AlphaBlend() {
|
||||||
auto blendState = std::unique_ptr<BlendState>();
|
auto blendState = unew<BlendState>();
|
||||||
blendState->impl->dxDescription.RenderTarget[0].SrcBlend = D3D11_BLEND_ONE;
|
blendState->impl->dxDescription.RenderTarget[0].SrcBlend = D3D11_BLEND_ONE;
|
||||||
blendState->impl->dxDescription.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_ONE;
|
blendState->impl->dxDescription.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_ONE;
|
||||||
blendState->impl->dxDescription.RenderTarget[0].DestBlend = D3D11_BLEND_INV_SRC_ALPHA;
|
blendState->impl->dxDescription.RenderTarget[0].DestBlend = D3D11_BLEND_INV_SRC_ALPHA;
|
||||||
@ -176,7 +176,7 @@ namespace xna {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uptr<BlendState> BlendState::Additive() {
|
uptr<BlendState> BlendState::Additive() {
|
||||||
auto blendState = std::unique_ptr<BlendState>();
|
auto blendState = unew<BlendState>();
|
||||||
blendState->impl->dxDescription.RenderTarget[0].SrcBlend = D3D11_BLEND_SRC_ALPHA;
|
blendState->impl->dxDescription.RenderTarget[0].SrcBlend = D3D11_BLEND_SRC_ALPHA;
|
||||||
blendState->impl->dxDescription.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_SRC_ALPHA;
|
blendState->impl->dxDescription.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_SRC_ALPHA;
|
||||||
blendState->impl->dxDescription.RenderTarget[0].DestBlend = D3D11_BLEND_ONE;
|
blendState->impl->dxDescription.RenderTarget[0].DestBlend = D3D11_BLEND_ONE;
|
||||||
@ -186,7 +186,7 @@ namespace xna {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uptr<BlendState> BlendState::NonPremultiplied() {
|
uptr<BlendState> BlendState::NonPremultiplied() {
|
||||||
auto blendState = std::unique_ptr<BlendState>();
|
auto blendState = unew<BlendState>();
|
||||||
blendState->impl->dxDescription.RenderTarget[0].SrcBlend = D3D11_BLEND_SRC_ALPHA;
|
blendState->impl->dxDescription.RenderTarget[0].SrcBlend = D3D11_BLEND_SRC_ALPHA;
|
||||||
blendState->impl->dxDescription.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_SRC_ALPHA;
|
blendState->impl->dxDescription.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_SRC_ALPHA;
|
||||||
blendState->impl->dxDescription.RenderTarget[0].DestBlend = D3D11_BLEND_INV_SRC_ALPHA;
|
blendState->impl->dxDescription.RenderTarget[0].DestBlend = D3D11_BLEND_INV_SRC_ALPHA;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#ifndef XNA_GRAPHICS_BLENDSTATE_HPP
|
#ifndef XNA_GRAPHICS_BLENDSTATE_HPP
|
||||||
#define XNA_GRAPHICS_BLENDSTATE_HPP
|
#define XNA_GRAPHICS_BLENDSTATE_HPP
|
||||||
|
|
||||||
|
#include "../common/color.hpp"
|
||||||
#include "../default.hpp"
|
#include "../default.hpp"
|
||||||
#include "gresource.hpp"
|
#include "gresource.hpp"
|
||||||
#include "../common/color.hpp"
|
|
||||||
|
|
||||||
namespace xna {
|
namespace xna {
|
||||||
struct BlendRenderTarget;
|
struct BlendRenderTarget;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user