Edit

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

Branch :

  • Show log

    Commit

  • Author : daniel@transgaming.com
    Date : 2012-11-28 20:54:14
    Hash : 965bcd2e
    Message : Removes getSurface function from base RenderTarget TRAC #22134 Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1480 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"
    
    struct IDirect3DSurface9;   // D3D9_REPLACE
    
    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_