1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/framework/graphics/blendstate.hpp
2024-04-24 11:44:41 -03:00

26 lines
689 B
C++

#ifndef XNA_GRAPHICS_BLENDSTATE_HPP
#define XNA_GRAPHICS_BLENDSTATE_HPP
#include "../default.hpp"
namespace xna {
struct BlendRenderTarget;
class IBlendState {
public:
virtual ~IBlendState() {}
virtual bool Initialize(GraphicsDevice& device, xna_error_nullarg) = 0;
virtual void AlphaToCoverageEnable(bool value) = 0;
virtual void IndependentBlendEnable(bool value) = 0;
virtual void RenderTargets(std::vector<BlendRenderTarget> const& value) = 0;
virtual bool Apply(GraphicsDevice& device, xna_error_nullarg) = 0;
static PBlendState Opaque();
static PBlendState AlphaBlend();
static PBlendState Additive();
static PBlendState NonPremultiplied();
};
}
#endif