SamplerImpl.h 627 B

1234567891011121314151617181920212223242526272829303132333435
  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. {
  10. /// @addtogroup opengl
  11. /// @{
  12. /// Sampler GL object.
  13. class SamplerImpl final : public Sampler, public GlObject
  14. {
  15. public:
  16. SamplerImpl(GrManager* manager, CString name)
  17. : Sampler(manager, name)
  18. {
  19. }
  20. ~SamplerImpl()
  21. {
  22. destroyDeferred(getManager(), glDeleteSamplers);
  23. }
  24. void init(const SamplerInitInfo& sinit);
  25. };
  26. /// @}
  27. } // end namespace anki