Continuing WebGL

This is completely down and dirty into the mud tests. Besides Webgl, OpenGL 2.0 must be implemented on the machine. Open source drivers for ATI do not seem to support that. So fglrx for the moment. I am sure that the open source drivers will catch up as this is a WIP. I experimented with OpenGL ES a few days ago which was good prep. Javascript, HTML, and OpenGL are good prerequisites to have if you want to understand what is taking place and how to get some useful results.

So you can see that I created a canvas and that it is recognized. I prefer to do things this way so that I can get a better idea of what is taking place. The results are shown in the chrome BETA version.


<body>  
Begin<br />
<script type="text/javascript">
 canvas = document.getElementById("glcanvas");
 document.write("Is canvas null -- ",canvas," --<br />");
</script>
<canvas id="glcanvas" width="160" height="120">  
     No HTML5 support.<code>&lt;canvas&gt;</code> element.  
</canvas>  
<script type="text/javascript">
 canvas = document.getElementById("glcanvas");
 document.write("<br />Is canvas NULL now? --&gt; ",canvas," --<br />");
</script>
End of page
</body>

0 comments:

Contributors

Automated Intelligence

Automated Intelligence
Auftrag der unendlichen LOL katzen