locked
WebGL IntelliSense

    Question

  • When I got a WebGL context like this :

    var canvas = document.createElement('canvas');

    var ctx = canvas.getContext('experimental-webgl');

    how can I use IntelliSense in Visual Studio 2013 Ultimate ?

    Thank you in advance.

    Tuesday, December 17, 2013 5:51 PM

All replies

  • Can you explain what you mean? What behavior do you expect and how does that differ from the behavior you actually get?

    You should get IntelliSense automatically for JavaScript files in VS2013. It should offer both the createElement and getContext method calls on the document and canvas objects respectively and it should identify the argument types for each. It doesn't autocomplete string arguments to fill in "canvas" or "experimental-webgl".

    --Rob

    Wednesday, December 18, 2013 1:35 AM
    Owner
  • I'm sorry,

    var canvas = document.createElement('canvas');
    
    var ctx = canvas.getContext('experimental-webgl');
    

    and then later when I type "ctx." I'd like to get the list of all webgl context's "methods" instead of the CanvasRenderingContext2D's "methods".


    • Edited by Lore91 Saturday, December 21, 2013 8:49 AM
    Wednesday, December 18, 2013 11:15 AM
  • Anyone ? My apologize, I don't speak english very well. Maybe code completion is more appropriate.
    Saturday, December 21, 2013 8:55 AM