Geoff Lang | 6a1e6b9 | 2014-11-06 10:42:45 -0500 | [diff] [blame] | 1 | // |
| 2 | // Copyright 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 | // FramebufferImpl.h: Defines the abstract rx::DefaultAttachmentImpl class. |
| 8 | |
Geoff Lang | 0a73dd8 | 2014-11-19 16:18:08 -0500 | [diff] [blame] | 9 | #ifndef LIBANGLE_RENDERER_FRAMBUFFERIMPL_H_ |
| 10 | #define LIBANGLE_RENDERER_FRAMBUFFERIMPL_H_ |
Geoff Lang | 6a1e6b9 | 2014-11-06 10:42:45 -0500 | [diff] [blame] | 11 | |
| 12 | #include "angle_gl.h" |
| 13 | |
| 14 | namespace rx |
| 15 | { |
| 16 | |
| 17 | class DefaultAttachmentImpl |
| 18 | { |
| 19 | public: |
| 20 | virtual ~DefaultAttachmentImpl() {}; |
| 21 | |
| 22 | virtual GLsizei getWidth() const = 0; |
| 23 | virtual GLsizei getHeight() const = 0; |
| 24 | virtual GLenum getInternalFormat() const = 0; |
| 25 | virtual GLenum getActualFormat() const = 0; |
| 26 | virtual GLsizei getSamples() const = 0; |
| 27 | }; |
| 28 | |
Geoff Lang | da88add | 2014-12-01 10:22:01 -0500 | [diff] [blame] | 29 | class FramebufferImpl |
| 30 | { |
| 31 | public: |
| 32 | virtual ~FramebufferImpl() {}; |
| 33 | }; |
| 34 | |
Geoff Lang | 6a1e6b9 | 2014-11-06 10:42:45 -0500 | [diff] [blame] | 35 | } |
| 36 | |
Geoff Lang | 0a73dd8 | 2014-11-19 16:18:08 -0500 | [diff] [blame] | 37 | #endif // LIBANGLE_RENDERER_FRAMBUFFERIMPL_H_ |