diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2016-03-29 10:16:36 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2016-03-31 15:10:50 -0700 |
commit | b6a5ec4c299566b8365a927c139d969cc44c56c2 (patch) | |
tree | 2a417543f9069d8b47ef1a0636fa6522c24141de /src/mapi/glapi/gen/apiexec.py | |
parent | d3ea882120563e761f52218afb7ed35e39689d1b (diff) |
glapi: use python's textwrap.dedent to make code readable
This allows large blocks of C code that is going to be printed to be
nested nicely in the python functions that print them, but still be
printed at the same level they were previously. This helps to make the
code visually more readable, and fixes syntax folding in vim.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'src/mapi/glapi/gen/apiexec.py')
-rw-r--r-- | src/mapi/glapi/gen/apiexec.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/apiexec.py b/src/mapi/glapi/gen/apiexec.py index 670dc4a6ad..66e857954f 100644 --- a/src/mapi/glapi/gen/apiexec.py +++ b/src/mapi/glapi/gen/apiexec.py @@ -20,6 +20,7 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. + class exec_info(): """Information relating GL APIs to a function. @@ -66,6 +67,7 @@ class exec_info(): self.es1 = es1 self.es2 = es2 + functions = { # OpenGL 3.1 / GL_ARB_texture_buffer_object. Mesa only exposes this # extension with core profile. |