SamplerImpl.h 627 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <AnKi/Gr/Sampler.h>
  7. #include <AnKi/Gr/gl/GlObject.h>
  8. namespace anki {
  9. /// @addtogroup opengl
  10. /// @{
  11. /// Sampler GL object.
  12. class SamplerImpl final : public Sampler, public GlObject
  13. {
  14. public:
  15. SamplerImpl(GrManager* manager, CString name)
  16. : Sampler(manager, name)
  17. {
  18. }
  19. ~SamplerImpl()
  20. {
  21. destroyDeferred(getManager(), glDeleteSamplers);
  22. }
  23. void init(const SamplerInitInfo& sinit);
  24. };
  25. /// @}
  26. } // end namespace anki