November 15, 2004 Re: Error: Access Violation | ||||
---|---|---|---|---|
| ||||
Posted in reply to h3r3tic | In article <cna2ap$21la$1@digitaldaemon.com>, h3r3tic says... > >Ant wrote: >> >> here it is a copy past version, you gonna like it ;) >> funny thing is that "version=glFloat" fails >> but the "else" version is OK! >> OpenGL on DUI for windows might be just around the corner >> I'm blaiming DMD on this one also interesting to know >> that DUI OpenGL extensions never worked for windows and >> that's since version 0.70 or close. >> (...) > >Well, IMO this code is fine... my only guess of code that could crash the whole thing is that you define glFrustum as taking 6 floats (instead of doubles) when version(glFloat) is set... no, I created version glFloat just for posting. asptect use to be of type GLfloat (alias float GLfloat). > With this code I can't guess >more... maybe if you posted your sources somewhere so that more people could compile and fight them, it could be solved... this is distributed with DUI since a early version. it runs fine on linux (which might be irrelevant for the windows version). http://cvs.sourceforge.net/viewcvs.py/dui/DUI/src/testGL/TestGL.d?view=markup shapesGL.d (as oposed to TestGL.d) contains the same piece of code but replacing it didn't solve the it. Seems to me then this problem runs depper. I'll have to go back on what I posted and declare the OpenGL is still not available for DUI on windows... the problem is to reduce it and remove dependencies on DUI and libgtkglext. and until that I can't be sure it isn't a problem with the gl extensions. Ant >As for the moment, ensure that your glFrustum is defined as taking 6 doubles... glFrustum is all doubles. and there is only one defined so both version of the code should produce the same result... >No more ideas :( thank you any way! Ant |
Copyright © 1999-2021 by the D Language Foundation