-
Notifications
You must be signed in to change notification settings - Fork 3.5k
OpenGL support
kripken edited this page Apr 7, 2012
·
20 revisions
Emscripten supports most of the subset of OpenGL that maps directly to WebGL. That is basically equivalent to OpenGL ES 2.0 minus clientside arrays. Run python tests/runner.py browser.test_glgears for an example.
See src/library_gl.js for details.
class MyGroup(ExceptionGroup): def derive(self, excs): return MyGroup(self.message, excs)
e = MyGroup("eg", [ValueError(1), TypeError(2)]) e.add_note("a note") e.context = Exception("context") e.cause = Exception("cause") try: raise e except Exception as e: exc = e
match, rest = exc.split(ValueError) exc, exc.context, exc.cause, exc.notes
match, match.context, match.cause, match.notes
rest, rest.context, rest.cause, rest.notes
exc.traceback is match.traceback is rest.traceback