#pragma region CPL License
/*
Nuclex Native Framework
Copyright (C) 2002-2013 Nuclex Development Labs
This library is free software; you can redistribute it and/or
modify it under the terms of the IBM Common Public License as
published by the IBM Corporation; either version 1.0 of the
License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
IBM Common Public License for more details.
You should have received a copy of the IBM Common Public
License along with this library
*/
#pragma endregion // CPL License
#ifndef NUCLEX_GRAPHICS_RASTERIZATION_DIRECT3D11TEXTUREOBSERVER_H
#define NUCLEX_GRAPHICS_RASTERIZATION_DIRECT3D11TEXTUREOBSERVER_H
#include "Nuclex/Graphics/Config.h"
#include "Nuclex/Graphics/Rasterization/Texture.h"
#include "../Direct3D11Api.h"
namespace Nuclex { namespace Graphics { namespace Rasterization {
// ------------------------------------------------------------------------------------------- //
///Base class for Direct3D 11 texture observers
class Direct3D11TextureObserver : public Texture::Observer {
/// Initializes a new Direct3D 11 texture observer
protected: Direct3D11TextureObserver() {}
/// Frees all resources owned by the texture observer
public: virtual ~Direct3D11TextureObserver() {}
/// Retrieves the view for the observer's Direct3D texture
/// The view for the observer's Direct3D texture
public: virtual const ID3D11ShaderResourceViewPtr &GetResourceView() const = 0;
private: Direct3D11TextureObserver(const Direct3D11TextureObserver &);
private: Direct3D11TextureObserver &operator =(const Direct3D11TextureObserver &);
};
// ------------------------------------------------------------------------------------------- //
}}} // namespace Nuclex::Graphics::Rasterization
#endif // NUCLEX_GRAPHICS_RASTERIZATION_DIRECT3D11TEXTUREOBSERVER_H