BsGLGpuParamBlockBuffer.h 702 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "BsGLPrerequisites.h"
  3. #include "BsGpuParamBlockBuffer.h"
  4. namespace BansheeEngine
  5. {
  6. class BS_RSGL_EXPORT GLGpuParamBlockBuffer : public GpuParamBlockBuffer
  7. {
  8. public:
  9. GLGpuParamBlockBuffer();
  10. /**
  11. * @copydoc GpuParamBlockBuffer::writeAll.
  12. */
  13. void writeData(const UINT8* data);
  14. /**
  15. * @copydoc GpuParamBlockBuffer::readAll.
  16. */
  17. void readData(UINT8* data) const;
  18. GLuint getGLHandle() const { return mGLHandle; }
  19. protected:
  20. /**
  21. * @copydoc CoreGpuObject::initialize_internal.
  22. */
  23. virtual void initialize_internal();
  24. /**
  25. * @copydoc CoreGpuObject::destroy_internal.
  26. */
  27. virtual void destroy_internal();
  28. private:
  29. GLuint mGLHandle;
  30. };
  31. }