Edit

kc3-lang/angle/src/libGLESv2/renderer/RenderTarget.h

Branch :

  • Show log

    Commit

  • Author : daniel@transgaming.com
    Date : 2013-01-11 21:16:09
    Hash : 204677af
    Message : Cleanup extraneous D3D9_REPLACE comments Trac #22394 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods Blit.cpp and Renderer9.h/.cpp will remain d3d9-specific. Remove various unused includes and a typedef. git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1714 736b8ea6-26fd-11df-bfd4-992fa37f6226

  • src/libGLESv2/renderer/RenderTarget.h
  • //
    // Copyright (c) 2012 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.
    //
    
    // RenderTarget.h: Defines an abstract wrapper class to manage IDirect3DSurface9
    // and ID3D11View objects belonging to renderbuffers.
    
    #ifndef LIBGLESV2_RENDERER_RENDERTARGET_H_
    #define LIBGLESV2_RENDERER_RENDERTARGET_H_
    
    #define GL_APICALL
    #include <GLES2/gl2.h>
    
    #include "common/angleutils.h"
    
    namespace rx
    {
    class RenderTarget
    {
      public:
        RenderTarget() {};
        virtual ~RenderTarget() {};
    
        GLsizei getWidth() { return mWidth; }
        GLsizei getHeight() { return mHeight; }
        GLenum getInternalFormat() { return mInternalFormat; }
        GLenum getActualFormat() { return mActualFormat; }
        GLsizei getSamples() { return mSamples; }
        
        struct Desc {
            GLsizei width;
            GLsizei height;
            GLenum  format;
        };
    
      protected:
        GLsizei mWidth;
        GLsizei mHeight;
        GLenum mInternalFormat;
        GLenum mActualFormat;
        GLsizei mSamples;
    
      private:
        DISALLOW_COPY_AND_ASSIGN(RenderTarget);
    };
    
    }
    
    #endif // LIBGLESV2_RENDERTARGET_H_