sglv0.16
This document is intended to be viewed in Internet
Explorer
Well it could be a problem with the dll (its not perfect) BUT will most probably be a fault in your code causing DIV to crash by means of sgl. Check these things first: You have called sglInit() and not changed the resolution since. If you have called sglSetViewport() make sure all the co-ordinates were positive and that they were all SMALLER than the resolution. If you are using texture mapping, make sure all the c-ordinates were positive and SMALLER than the texture width/height. Make sure you have not used any massive polygons. e.g. polygons >2000000. If you have loaded a Texture make sure it does not return -1. This means the texture cannot be loaded because of an incorrect parameter or not enough memory. Make sure all the functions you call return 1 (with the exception of some texture commands). If they don't the error will usually have something to do with that function being called incorrectly. Make sure you have the latest version of sgl. ...If all else fails go to www.Div-arena.com and ask there, showing your code.
Check you have set the viewport using sglSetViewport() or sglSetMaxViewport(). Also check whatever you are rendering will be in front of the camera and not behind. You need to have initialised sgl for that resolution. Normally ignoring
this would cause a crash
|