<p>In relation to this question on <a href="https://stackoverflow.com/questions/14413/using-opengl-extensions-on-windows">Using OpenGL extensions</a>, what's the purpose of these extension functions? Why would I want to use them? Further, are there any tradeoffs or gotchas associated with using them?</p>

[{'answer_id': 17390, 'author': 'Andrew Grant', 'author_id': 1043, 'author_profile': 'https://Stackoverflow.com/users/1043', 'pm_score': 6, 'selected': True, 'text': '<p>The OpenGL standard allows individual vendors to provide additional functionality through extensions as new technology is created. Extensions may introduce new functions and new constants, and may relax or remove restrictions on existing OpenGL functions. </p>\n\n<p>Each vendor has an alphabetic abbreviation that is used in naming their new functions and constants. For example, NVIDIA\'s abbreviation (NV) is used in defining their proprietary function glCombinerParameterfvNV() and their constant GL_NORMAL_MAP_NV.</p>\n\n<p>It may happen that more than one vendor agrees to implement the same extended functionality. In that case, the abbreviation EXT is used. It may further happen that the Architecture Review Board "blesses" the extension. It then becomes known as a standard extension, and the abbreviation ARB is used. The first ARB extension was GL_ARB_multitexture, introduced in version 1.2.1. Following the official extension promotion path, multitexturing is no longer an optionally implemented ARB extension, but has been a part of the OpenGL core API since version 1.3.</p>\n\n<p>Before using an extension a program must first determine its availability, and then obtain pointers to any new functions the extension defines. The mechanism for doing this is platform-specific and libraries such as GLEW and GLEE exist to simplify the process.</p>\n'}, {'answer_id': 17393, 'author': 'Ashwin Nanjappa', 'author_id': 1630, 'author_profile': 'https://Stackoverflow.com/users/1630', 'pm_score': 3, 'selected': False, 'text': "<p><strong>OpenGL Extensions</strong> are new features added to the <strong>OpenGL specification</strong>, they are added by the OpenGL standards body and by the various graphics card vendors. These are exposed to the programmer as new function calls or variables. Every new version of the OpenGL specification ships with newer functionality and (typically) includes all the previous functionality and extensions.</p>\n\n<p>The real problem with OpenGL extensions exists only on Windows. Microsoft hasn't supported any extensions that have been released after <em>OpenGL v1.1</em>. The graphics card vendors overcome this by shipping their own version of this functionality through header files and libraries. However, using this can be a bit painful as the question you linked to shows. But this problem has mostly gone away with the popularity of <strong>GLEW</strong>, which takes care of wrapping all this into a easy-to-use package.</p>\n\n<p>If you do use a very recent OpenGL extension, be aware that it may not be supported on older graphics hardware. Other than this, there's no other disadvantage to using these extensions. Most of the extensions which become standard are pretty darn <em>useful</em> and there's very little logic to not use them.</p>\n"}, {'answer_id': 23908, 'author': 'spate', 'author_id': 2276, 'author_profile': 'https://Stackoverflow.com/users/2276', 'pm_score': 3, 'selected': False, 'text': "<p>Extensions are, in general, a way for graphics card vendors to add new functionality to OpenGL without having to wait until the next revision of the OpenGL spec.  There are different types of extensions:</p>\n\n<ol>\n<li>Vendor extension - only one vendor provides a certain type of functionality.\n\n<ul>\n<li>Example: <code>NV_vertex_program</code></li>\n</ul></li>\n<li>Multivendor extension - multiple vendors have gotten together and agreed on the functionality.\n\n<ul>\n<li>Example: <code>EXT_vertex_program</code></li>\n</ul></li>\n<li>ARB extension - the OpenGL Architecture Review Board has blessed the extension.  You have a reasonable expectation that this type of extension will be around for a while.\n\n<ul>\n<li>Example: <code>ARB_vertex_program</code></li>\n</ul></li>\n</ol>\n\n<p>Extensions don't have to go through all of these steps.  Sometimes an extension is only ever implemented by one vendor, before hardware designs go a different way and the extension is abandoned.  Other times, an extension might make it as far as ARB status before everyone decides there's a better way.  (The <code>ARB_vertex_program</code> approach, for instance, was set aside in favor of the high-level shading language approach of <code>ARB_vertex_shader</code> when it came time to roll shaders into the core OpenGL spec.)  Even ARB extensions don't last forever; I wouldn't write something today requiring <code>ARB_matrix_palette</code>, for instance.</p>\n\n<p>All of that having been said, it's a very good idea to keep up to date on extensions, in particular the latest ARB and EXT extensions.  In the past it has been true that some of the 'fast paths' through the hardware were only accessible via extensions.  Likewise, if you want to know what all functionality a piece of hardware can do, there's no better place to look than in a vendor-specific extension.</p>\n\n<p>If you're just getting started in OpenGL, I'd recommend investigating:</p>\n\n<ul>\n<li><code>ARB_vertex_buffer_object</code>  (vertices)</li>\n<li><code>ARB_vertex_shader</code> / <code>ARB_fragment_shader</code> / <code>ARB_shader_objects</code> / GLSL spec  (shaders)</li>\n</ul>\n\n<p>More advanced:</p>\n\n<ul>\n<li><code>ARB/EXT_framebuffer_object</code>  (off-screen rendering)</li>\n</ul>\n\n<p>This is all functionality that's been rolled into core, but it can be good to see it in isolation so you can get a better feel for where its boundaries lie.  (The core OpenGL spec seamlessly mixes the old with the new, so this can be pretty important if you want to stay on the fast path, and avoid the legacy and sometimes implemented in software paths.)</p>\n\n<p>Whatever you do, make sure you have appropriate checks for the extensions you decide to use, and fallbacks where necessary.  Even though your card may have a given extension, there's no guarantee that the extension will be present on another vendor's card, or even on another operating system with the same card.</p>\n"}]
['https://Stackoverflow.com/questions/17352', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/803/']