Shannon Woods | 9fc51d9 | 2014-10-17 13:08:51 -0400 | [diff] [blame^] | 1 | // |
| 2 | // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
| 7 | // RenderbufferImpl.h: Defines the abstract class gl::RenderbufferImpl |
| 8 | |
| 9 | #ifndef LIBGLESV2_RENDERER_RENDERBUFFERIMPL_H_ |
| 10 | #define LIBGLESV2_RENDERER_RENDERBUFFERIMPL_H_ |
| 11 | |
| 12 | #include "angle_gl.h" |
| 13 | |
| 14 | #include "common/angleutils.h" |
| 15 | |
| 16 | namespace rx |
| 17 | { |
| 18 | |
| 19 | class RenderbufferImpl |
| 20 | { |
| 21 | public: |
| 22 | RenderbufferImpl(); |
| 23 | virtual ~RenderbufferImpl() = 0; |
| 24 | |
| 25 | virtual void setStorage(GLsizei width, GLsizei height, GLenum internalformat, GLsizei samples) = 0; |
| 26 | |
| 27 | virtual GLsizei getWidth() const = 0; |
| 28 | virtual GLsizei getHeight() const = 0; |
| 29 | virtual GLenum getInternalFormat() const = 0; |
| 30 | virtual GLenum getActualFormat() const = 0; |
| 31 | virtual GLsizei getSamples() const = 0; |
| 32 | |
| 33 | private: |
| 34 | DISALLOW_COPY_AND_ASSIGN(RenderbufferImpl); |
| 35 | }; |
| 36 | |
| 37 | } |
| 38 | |
| 39 | #endif // LIBGLESV2_RENDERER_RENDERBUFFERIMPL_H_ |