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

WebGL2 in std #5770

Closed
scarletjohansson opened this issue Oct 22, 2016 · 7 comments
Closed

WebGL2 in std #5770

scarletjohansson opened this issue Oct 22, 2016 · 7 comments
Assignees
Labels
enhancement platform-javascript Everything related to JS / JavaScript
Milestone

Comments

@scarletjohansson
Copy link

I wasn't able to find any discussion about WebGL2 in Haxe. I believe the spec is pretty much at final draft, browser have had implementations for a year (behind a flag), and it makes sense to be able to developed for WebGL2 in anticipation for its likely shipping soon.

What's the process for generating a new set of bindings from the IDLs? I wasn't able to find the generator code in the haxe repro. The WebGL2 IDL is here:

https://www.khronos.org/registry/webgl/specs/latest/2.0/webgl2.idl

@nadako
Copy link
Member

nadako commented Oct 23, 2016

There's a separate "generator" repo, but I can never remember how to use it. I'll look at this next week, but maybe @aduros suddenly shows up and does something about it :)

@nadako nadako added enhancement platform-javascript Everything related to JS / JavaScript labels Oct 23, 2016
@tong
Copy link
Contributor

tong commented Oct 27, 2016

Chrome and firefox aim to ship webgl2 in january as stated here: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/VAEv-MUFGC8

@haxiomic
Copy link
Member

Hey @nadako, I've created a PR (HaxeFoundation/html-externs#8) to get the generator repo up and running with the latest WebIDLs. Here's the generated WebGL2 context extern WebGL2RenderingContext.hx

@haxiomic
Copy link
Member

haxiomic commented Jul 28, 2018

Here's a complete delta for new js.html externs generated from the latest WebIDLs (and then passed through @markknol's html-extern-api-docs to add comments): development...haxiomic:development

@markknol
Copy link
Member

markknol commented Jul 30, 2018

Great, I would say, do a pull request 👍

(BTW, I do remember we manually fixed some stupid stuff in these definitions, but can't remember what exactly so we might have to look those up.)

@haxiomic
Copy link
Member

haxiomic commented Jul 30, 2018

Hey @markknol, I've been reviewing the diff and I unfortunately can see quite a lot of manual changes – I bet we can automate them but since that will take a while, for the time being I'll just PR for the higher priority extern changes like adding WebGL2, updating MediaElement and InputElement

Question for @Simn: do changes to the html externs have to be backward compatible for the 4.0 release? For example, the latest WebIDLs have renamed a few things: VertexArrayObjectOES is now VertexArrayObject and some extensions need to be renamed to avoid conflicts with new WebGL2 versions of the extensions.

@haxiomic
Copy link
Member

haxiomic commented Sep 9, 2018

WebGL2 externs are now available at js.html.webgl.WebGL2RenderingContext #7354

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement platform-javascript Everything related to JS / JavaScript
Projects
None yet
Development

No branches or pull requests

7 participants