OMAR Posted August 29, 2016 Share Posted August 29, 2016 If you want to start testing WebGL 2 in TypeScript I have already written a definition file right here that you can use Reason I wrote this is because I couldn't find reliable ones on Internet (they were very obsolete) and currently TypeScript doesn't support WebGL 2 Edit: In order to use WebGL 2 API in code you need to write: const CANVAS: HTMLCanvasElement = document.getElementById("myCanvas") as HTMLCanvasElement; // get canvas element let GL: WebGLRenderingContext & WebGL2RenderingContext = CANVAS.getContext("webgl2") as any; // get webgl2 context Quote Link to comment Share on other sites More sharing options...
8Observer8 Posted January 9, 2017 Share Posted January 9, 2017 Hello, OMAR! Please, share link, because it is dead now. Quote Link to comment Share on other sites More sharing options...
Nikos123 Posted March 1, 2017 Share Posted March 1, 2017 any updates? Quote Link to comment Share on other sites More sharing options...
MrVR Posted March 12, 2017 Share Posted March 12, 2017 HI @OMAR did you ever finish it ? Quote Link to comment Share on other sites More sharing options...
MaxGraey Posted March 19, 2017 Share Posted March 19, 2017 Try this: WebGL2-TypeScript 8Observer8 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.