blob: 5f24e80c1aa1f4a7c0861769af57cc2762cbfaa2 [file] [log] [blame]
Shannon Woods9fc51d92014-10-17 13:08:51 -04001//
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
16namespace rx
17{
18
19class 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_