CmGLDepthStencilBuffer.cpp 580 B

123456789101112131415161718
  1. #include "CmGLDepthStencilBuffer.h"
  2. #include "CmGLHardwarePixelBuffer.h"
  3. #include "CmGLPixelFormat.h"
  4. namespace CamelotEngine
  5. {
  6. GLDepthStencilBuffer::GLDepthStencilBuffer(DepthStencilFormat format, UINT32 width, UINT32 height, UINT32 fsaa, const String &fsaaHint)
  7. :DepthStencilBuffer(format, width, height, fsaa, fsaaHint)
  8. {
  9. GLenum glDepthFormat = GLPixelUtil::getDepthStencilFormat(format);
  10. mDepthStencilRenderBuffer = GLRenderBufferPtr(new GLRenderBuffer(glDepthFormat, width, height, fsaa));
  11. }
  12. GLDepthStencilBuffer::~GLDepthStencilBuffer()
  13. {
  14. }
  15. }