gfx/angle/src/libGLESv2/renderer/RenderTarget.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/angle/src/libGLESv2/renderer/RenderTarget.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +//
     1.5 +// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
     1.6 +// Use of this source code is governed by a BSD-style license that can be
     1.7 +// found in the LICENSE file.
     1.8 +//
     1.9 +
    1.10 +// RenderTarget.h: Defines an abstract wrapper class to manage IDirect3DSurface9
    1.11 +// and ID3D11View objects belonging to renderbuffers.
    1.12 +
    1.13 +#ifndef LIBGLESV2_RENDERER_RENDERTARGET_H_
    1.14 +#define LIBGLESV2_RENDERER_RENDERTARGET_H_
    1.15 +
    1.16 +#include "common/angleutils.h"
    1.17 +
    1.18 +namespace rx
    1.19 +{
    1.20 +class RenderTarget
    1.21 +{
    1.22 +  public:
    1.23 +    RenderTarget()
    1.24 +    {
    1.25 +        mWidth = 0;
    1.26 +        mHeight = 0;
    1.27 +        mInternalFormat = GL_NONE;
    1.28 +        mActualFormat = GL_NONE;
    1.29 +        mSamples = 0;
    1.30 +    }
    1.31 +
    1.32 +    virtual ~RenderTarget() {};
    1.33 +
    1.34 +    GLsizei getWidth() { return mWidth; }
    1.35 +    GLsizei getHeight() { return mHeight; }
    1.36 +    GLenum getInternalFormat() { return mInternalFormat; }
    1.37 +    GLenum getActualFormat() { return mActualFormat; }
    1.38 +    GLsizei getSamples() { return mSamples; }
    1.39 +    
    1.40 +    struct Desc {
    1.41 +        GLsizei width;
    1.42 +        GLsizei height;
    1.43 +        GLenum  format;
    1.44 +    };
    1.45 +
    1.46 +  protected:
    1.47 +    GLsizei mWidth;
    1.48 +    GLsizei mHeight;
    1.49 +    GLenum mInternalFormat;
    1.50 +    GLenum mActualFormat;
    1.51 +    GLsizei mSamples;
    1.52 +
    1.53 +  private:
    1.54 +    DISALLOW_COPY_AND_ASSIGN(RenderTarget);
    1.55 +};
    1.56 +
    1.57 +}
    1.58 +
    1.59 +#endif // LIBGLESV2_RENDERTARGET_H_

mercurial