Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON file of symbols to restrict symbol generation #42

Closed
slimsag opened this issue Aug 16, 2014 · 0 comments · Fixed by #43
Closed

JSON file of symbols to restrict symbol generation #42

slimsag opened this issue Aug 16, 2014 · 0 comments · Fixed by #43

Comments

@slimsag
Copy link
Member

slimsag commented Aug 16, 2014

One of my lasting concerns is the side of the wrappers generated by Glow. For instance Azul3D has an OpenGL 2 renderer (http://github.com/azul3d/gfx-gl2) that uses a somewhat small subset of the OpenGL 2.0 API.

Since most of the symbols (enums and functions) generated by Glow are not actually used by us -- it seems silly to compile them at all. I'd like to be able to specify a JSON input file to Glow that would specify the symbols that we actually want, for example:

{
    "Enums": [
        "GL_CCW",
        "GL_COLOR_ATTACHMENT0",
        "GL_COMPRESSED_RGB"
    ],
    "Functions": [
        "glBindTextures",
        "glBindVertexArray"
    ]
}

And Glow could generate just those symbols, greatly reducing the compilation time. Although I think it's not strictly the same tactic -- this could also help others trying to deal with issue #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant