Menu

#1 gl.Extension string indexer

First move
closed
nobody
2013-02-14
2012-12-18
pet_cz
No

Add gl.Extension string indexer to allow simple testing of predefined list of extensions. E.g.

~~~~C#:::
string[] neededExtensions = new string[] { "ARB_multitexture", "ARB_vertex_buffer_object" }
...
foreach(string ext in neededExtensions)
if(!gl.Extension[ext]) throw new Exception(ext + " is not supported");
~~~~

Discussion

  • pet_cz

    pet_cz - 2013-02-14

    Added bool gl.Extension.isSupported(string)

     
  • pet_cz

    pet_cz - 2013-02-14
    • status: open --> closed
     

Log in to post a comment.