<commit_before># duktape-opengl
OpenGL bindings for Duktape embeddable Javascript engine

If you ended up here randomly and have no idea what Duktape is, then have a look at here: http://duktape.org/

## Setup
* Include duktape_opengl.c and duktape_opengl.h to your Duktape&OpenGL project.
* To initialize OpenGL bindings, call function: void duk_gl_push_opengl_bindings(duk_context *ctx)

* Currently by default only OpenGL 1.1 bindings will be initialized. If you want to include other bindings, such as ARB extensions, then add defines.
* If you're using OpenGL corearb then use duktape_opengl_corearb.c instead of duktape_opengl.c.

## Defines
* DUK_GL_OPENGL_4X  - Enable OpenGL 4.x and older major versions
* DUK_GL_OPENGL_3X  - Enable OpenGL 3.x and older major versions
* DUK_GL_OPENGL_2X  - Enable OpenGL 2.x and older major versions
* DUK_GL_OPENGL_1X  - Enable OpenGL 1.x and older major versions
* DUK_GL_OPENGL_N_X - Enable OpenGL N.X (for example DUK_GL_OPENGL_1_2)
* DUK_GL_ARB         Enable extensions officially approved by the OpenGL Architecture Review Board
* DUK_GL_ATI         Enable ATI Technologies extensions
* DUK_GL_EXT         Enable extensions agreed upon by multiple OpenGL vendors
* DUK_GL_HP          Enable Hewlett-Packard extensions
* DUK_GL_IBM         Enable International Business Machines extensions
* DUK_GL_KTX         Enable Kinetix extensions<commit_msg>Quick readme update to point out that this project is legacy<commit_after># duktape-opengl
Legacy OpenGL 1.x bindings for Duktape embeddable Javascript engine
If you're looking for WebGL bindings check [duktape-webgl](https://github.com/mrautio/duktape-webgl)

If you ended up here randomly and have no idea what Duktape is, then have a look at here: http://duktape.org/

## Setup
* Include duktape_opengl.c and duktape_opengl.h to your Duktape&OpenGL project.
* To initialize OpenGL bindings, call function: void duk_gl_push_opengl_bindings(duk_context *ctx)

* Currently by default only OpenGL 1.1 bindings will be initialized. If you want to include other bindings, such as ARB extensions, then add defines.
* If you're using OpenGL corearb then use duktape_opengl_corearb.c instead of duktape_opengl.c.

## Defines
* DUK_GL_OPENGL_4X  - Enable OpenGL 4.x and older major versions
* DUK_GL_OPENGL_3X  - Enable OpenGL 3.x and older major versions
* DUK_GL_OPENGL_2X  - Enable OpenGL 2.x and older major versions
* DUK_GL_OPENGL_1X  - Enable OpenGL 1.x and older major versions
* DUK_GL_OPENGL_N_X - Enable OpenGL N.X (for example DUK_GL_OPENGL_1_2)
* DUK_GL_ARB         Enable extensions officially approved by the OpenGL Architecture Review Board
* DUK_GL_ATI         Enable ATI Technologies extensions
* DUK_GL_EXT         Enable extensions agreed upon by multiple OpenGL vendors
* DUK_GL_HP          Enable Hewlett-Packard extensions
* DUK_GL_IBM         Enable International Business Machines extensions
* DUK_GL_KTX         Enable Kinetix extensions
{'fraction_non_alphanumeric': 0.0467321368100237, 'fraction_numerical': 0.008465966813410091, 'mean_word_length': 4.303411131059246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5898438', 'n_tokens_mistral': 964, 'n_tokens_neox': 948, 'n_words': 341}