summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/angle/src/libGLESv2/renderer/RenderbufferImpl.h
blob: 52e070f1d3b8bf65034a7f4d2c40a89688d82747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//

// RenderbufferImpl.h: Defines the abstract class gl::RenderbufferImpl

#ifndef LIBGLESV2_RENDERER_RENDERBUFFERIMPL_H_
#define LIBGLESV2_RENDERER_RENDERBUFFERIMPL_H_

#include "angle_gl.h"

#include "libGLESv2/Error.h"

#include "common/angleutils.h"

namespace rx
{

class RenderbufferImpl
{
  public:
    RenderbufferImpl();
    virtual ~RenderbufferImpl() = 0;

    virtual gl::Error setStorage(GLsizei width, GLsizei height, GLenum internalformat, GLsizei samples) = 0;

    virtual GLsizei getWidth() const = 0;
    virtual GLsizei getHeight() const = 0;
    virtual GLenum getInternalFormat() const = 0;
    virtual GLenum getActualFormat() const = 0;
    virtual GLsizei getSamples() const = 0;

  private:
    DISALLOW_COPY_AND_ASSIGN(RenderbufferImpl);
};

}

#endif   // LIBGLESV2_RENDERER_RENDERBUFFERIMPL_H_