mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
Adiciona override em destrutores
This commit is contained in:
parent
4b3a55f760
commit
7b8a37ab6d
@ -54,6 +54,14 @@ namespace xna {
|
|||||||
return SUCCEEDED(hr);
|
return SUCCEEDED(hr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VertexShader::~VertexShader() {
|
||||||
|
impl = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
PixelShader::~PixelShader() {
|
||||||
|
impl = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
bool VertexShader::Initialize(DataBuffer& buffer, xna_error_ptr_arg)
|
bool VertexShader::Initialize(DataBuffer& buffer, xna_error_ptr_arg)
|
||||||
{
|
{
|
||||||
if (!impl || !m_device || !m_device->_device || !buffer.impl->_blob) {
|
if (!impl || !m_device || !m_device->_device || !buffer.impl->_blob) {
|
||||||
|
@ -11,7 +11,7 @@ namespace xna {
|
|||||||
public:
|
public:
|
||||||
BlendState();
|
BlendState();
|
||||||
BlendState(sptr<GraphicsDevice> const& device);
|
BlendState(sptr<GraphicsDevice> const& device);
|
||||||
~BlendState();
|
~BlendState() override;
|
||||||
bool Initialize(xna_error_nullarg) ;
|
bool Initialize(xna_error_nullarg) ;
|
||||||
void AlphaToCoverageEnable(bool value) ;
|
void AlphaToCoverageEnable(bool value) ;
|
||||||
void IndependentBlendEnable(bool value) ;
|
void IndependentBlendEnable(bool value) ;
|
||||||
|
@ -9,7 +9,7 @@ namespace xna {
|
|||||||
public:
|
public:
|
||||||
ConstantBuffer();
|
ConstantBuffer();
|
||||||
ConstantBuffer(sptr<GraphicsDevice> const&);
|
ConstantBuffer(sptr<GraphicsDevice> const&);
|
||||||
~ConstantBuffer();
|
~ConstantBuffer() override;
|
||||||
bool Initialize(xna_error_nullarg);
|
bool Initialize(xna_error_nullarg);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -21,7 +21,7 @@ namespace xna {
|
|||||||
public:
|
public:
|
||||||
DataBuffer();
|
DataBuffer();
|
||||||
DataBuffer(sptr<GraphicsDevice> const&);
|
DataBuffer(sptr<GraphicsDevice> const&);
|
||||||
~DataBuffer();
|
~DataBuffer() override;
|
||||||
bool Initialize(xna_error_nullarg);
|
bool Initialize(xna_error_nullarg);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -33,7 +33,7 @@ namespace xna {
|
|||||||
public:
|
public:
|
||||||
IndexBuffer();
|
IndexBuffer();
|
||||||
IndexBuffer(sptr<GraphicsDevice> const&);
|
IndexBuffer(sptr<GraphicsDevice> const&);
|
||||||
~IndexBuffer();
|
~IndexBuffer() override;
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool Initialize(std::vector<T> const& data, xna_error_nullarg);
|
bool Initialize(std::vector<T> const& data, xna_error_nullarg);
|
||||||
|
@ -11,7 +11,7 @@ namespace xna {
|
|||||||
DepthStencilState();
|
DepthStencilState();
|
||||||
DepthStencilState(sptr<GraphicsDevice> const& device);
|
DepthStencilState(sptr<GraphicsDevice> const& device);
|
||||||
|
|
||||||
~DepthStencilState();
|
~DepthStencilState() override;
|
||||||
bool Initialize(xna_error_nullarg);
|
bool Initialize(xna_error_nullarg);
|
||||||
bool Apply(xna_error_ptr_arg);
|
bool Apply(xna_error_ptr_arg);
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ namespace xna {
|
|||||||
public:
|
public:
|
||||||
RasterizerState();
|
RasterizerState();
|
||||||
RasterizerState(sptr<GraphicsDevice> const& device);
|
RasterizerState(sptr<GraphicsDevice> const& device);
|
||||||
~RasterizerState();
|
~RasterizerState() override;
|
||||||
bool Initialize(xna_error_nullarg);
|
bool Initialize(xna_error_nullarg);
|
||||||
bool Apply(xna_error_nullarg);
|
bool Apply(xna_error_nullarg);
|
||||||
xna::CullMode CullMode() const;
|
xna::CullMode CullMode() const;
|
||||||
|
@ -9,7 +9,7 @@ namespace xna {
|
|||||||
public:
|
public:
|
||||||
SamplerState();
|
SamplerState();
|
||||||
SamplerState(sptr<GraphicsDevice> const& device);
|
SamplerState(sptr<GraphicsDevice> const& device);
|
||||||
~SamplerState();
|
~SamplerState() override;
|
||||||
bool Initialize(xna_error_nullarg);
|
bool Initialize(xna_error_nullarg);
|
||||||
bool Apply(xna_error_nullarg);
|
bool Apply(xna_error_nullarg);
|
||||||
void Filter(TextureFilter value);
|
void Filter(TextureFilter value);
|
||||||
|
@ -9,7 +9,7 @@ namespace xna {
|
|||||||
public:
|
public:
|
||||||
Shader();
|
Shader();
|
||||||
Shader(sptr<GraphicsDevice> const& device);
|
Shader(sptr<GraphicsDevice> const& device);
|
||||||
~Shader();
|
~Shader() override {}
|
||||||
bool Initialize(DataBuffer& buffer, xna_error_nullarg);
|
bool Initialize(DataBuffer& buffer, xna_error_nullarg);
|
||||||
static bool CompileFromFile(WString srcFile, String entryPoint, String profile, DataBuffer& blob);
|
static bool CompileFromFile(WString srcFile, String entryPoint, String profile, DataBuffer& blob);
|
||||||
};
|
};
|
||||||
@ -18,7 +18,7 @@ namespace xna {
|
|||||||
public:
|
public:
|
||||||
VertexShader();
|
VertexShader();
|
||||||
VertexShader(sptr<GraphicsDevice> const& device);
|
VertexShader(sptr<GraphicsDevice> const& device);
|
||||||
~VertexShader();
|
~VertexShader() override;
|
||||||
bool Initialize(DataBuffer& buffer, xna_error_nullarg);
|
bool Initialize(DataBuffer& buffer, xna_error_nullarg);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -30,7 +30,7 @@ namespace xna {
|
|||||||
public:
|
public:
|
||||||
PixelShader();
|
PixelShader();
|
||||||
PixelShader(sptr<GraphicsDevice> const& device);
|
PixelShader(sptr<GraphicsDevice> const& device);
|
||||||
~PixelShader();
|
~PixelShader() override;
|
||||||
bool Initialize(DataBuffer& buffer, xna_error_nullarg);
|
bool Initialize(DataBuffer& buffer, xna_error_nullarg);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -9,7 +9,7 @@ namespace xna {
|
|||||||
public:
|
public:
|
||||||
SwapChain();
|
SwapChain();
|
||||||
SwapChain(sptr<GraphicsDevice> const& device);
|
SwapChain(sptr<GraphicsDevice> const& device);
|
||||||
~SwapChain();
|
~SwapChain() override;
|
||||||
bool Initialize(xna_error_nullarg);
|
bool Initialize(xna_error_nullarg);
|
||||||
bool Present(bool vsync);
|
bool Present(bool vsync);
|
||||||
bool GetBackBuffer(Texture2D& texture2D);
|
bool GetBackBuffer(Texture2D& texture2D);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user