michael@0: // michael@0: // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: // RenderTarget.h: Defines an abstract wrapper class to manage IDirect3DSurface9 michael@0: // and ID3D11View objects belonging to renderbuffers. michael@0: michael@0: #ifndef LIBGLESV2_RENDERER_RENDERTARGET_H_ michael@0: #define LIBGLESV2_RENDERER_RENDERTARGET_H_ michael@0: michael@0: #include "common/angleutils.h" michael@0: michael@0: namespace rx michael@0: { michael@0: class RenderTarget michael@0: { michael@0: public: michael@0: RenderTarget() michael@0: { michael@0: mWidth = 0; michael@0: mHeight = 0; michael@0: mInternalFormat = GL_NONE; michael@0: mActualFormat = GL_NONE; michael@0: mSamples = 0; michael@0: } michael@0: michael@0: virtual ~RenderTarget() {}; michael@0: michael@0: GLsizei getWidth() { return mWidth; } michael@0: GLsizei getHeight() { return mHeight; } michael@0: GLenum getInternalFormat() { return mInternalFormat; } michael@0: GLenum getActualFormat() { return mActualFormat; } michael@0: GLsizei getSamples() { return mSamples; } michael@0: michael@0: struct Desc { michael@0: GLsizei width; michael@0: GLsizei height; michael@0: GLenum format; michael@0: }; michael@0: michael@0: protected: michael@0: GLsizei mWidth; michael@0: GLsizei mHeight; michael@0: GLenum mInternalFormat; michael@0: GLenum mActualFormat; michael@0: GLsizei mSamples; michael@0: michael@0: private: michael@0: DISALLOW_COPY_AND_ASSIGN(RenderTarget); michael@0: }; michael@0: michael@0: } michael@0: michael@0: #endif // LIBGLESV2_RENDERTARGET_H_