Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:21

0001 // Created on: 2012-01-26
0002 // Created by: Kirill GAVRILOV
0003 // Copyright (c) 2012-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef OpenGl_ArbFBO_HeaderFile
0017 #define OpenGl_ArbFBO_HeaderFile
0018 
0019 #include <OpenGl_GlFunctions.hxx>
0020 
0021 //! FBO is available on OpenGL 2.0+ hardware
0022 struct OpenGl_ArbFBO : protected OpenGl_GlFunctions
0023 {
0024 
0025   using OpenGl_GlFunctions::glIsRenderbuffer;
0026   using OpenGl_GlFunctions::glBindRenderbuffer;
0027   using OpenGl_GlFunctions::glDeleteRenderbuffers;
0028   using OpenGl_GlFunctions::glGenRenderbuffers;
0029   using OpenGl_GlFunctions::glRenderbufferStorage;
0030   using OpenGl_GlFunctions::glGetRenderbufferParameteriv;
0031   using OpenGl_GlFunctions::glIsFramebuffer;
0032   using OpenGl_GlFunctions::glBindFramebuffer;
0033   using OpenGl_GlFunctions::glDeleteFramebuffers;
0034   using OpenGl_GlFunctions::glGenFramebuffers;
0035   using OpenGl_GlFunctions::glCheckFramebufferStatus;
0036   using OpenGl_GlFunctions::glFramebufferTexture2D;
0037   using OpenGl_GlFunctions::glFramebufferRenderbuffer;
0038   using OpenGl_GlFunctions::glGetFramebufferAttachmentParameteriv;
0039   using OpenGl_GlFunctions::glGenerateMipmap;
0040 
0041 #if !defined(GL_ES_VERSION_2_0)
0042   using OpenGl_GlFunctions::glBlitFramebuffer;
0043   using OpenGl_GlFunctions::glFramebufferTexture1D;
0044   using OpenGl_GlFunctions::glFramebufferTexture3D;
0045   using OpenGl_GlFunctions::glFramebufferTextureLayer;
0046   using OpenGl_GlFunctions::glRenderbufferStorageMultisample;
0047 #endif
0048 
0049 };
0050 
0051 //! FBO blit is available in OpenGL 3.0+.
0052 //! Moved out from OpenGl_ArbFBO since it is unavailable in OpenGL ES 2.0.
0053 struct OpenGl_ArbFBOBlit : protected OpenGl_GlFunctions
0054 {
0055 
0056   using OpenGl_GlFunctions::glBlitFramebuffer;
0057 
0058 };
0059 
0060 #endif // _OpenGl_ArbFBO_H__