Greg Ercolano wrote:
>>     Also: I noticed my 'OpenGL Sphere With Light' cheat sheet example now
>>     crashes under FLTK 1.3.x, and even if I change around the code to match
>>     the docs..

>     Using the fractal test program's technique, I was able to get my sphere
>     example to build and run OK again under FLTK 1.3.x with the following 
> code.

    I updated the cheat page to show this newer technique
    for the 'Sphere' example that compiles and runs on both 1.1 and 1.3:
    http://seriss.com/people/erco/fltk/#OpenGLSphereWithLight

    Had to make some changes to the #include's at the top to ensure
    it builds and runs correctly on both.

    I couldn't find a combo of #include's that worked for both versions.
    Ran out of time, and had to make conditional #if's based on FL_MINOR_VERSION
    to get it to build and run on 1.1 and 1.3.

    This perhaps reveals some (undesirable) incompatibilities.

    If someone can tell me what the correct #includes should be
    which works for both 1.1 and 1.3 in that example, I'd appreciate it.
    As it is, the example is now a bit ugly with all those #if conditionals,
    which seems to show an undesirable FLTK incompatibility between 1.1 and 1.3.

    FWIW, I saved the old sphere code under the "older code" link
    on the above page. (That older code doesn't fly on 1.3.x)

_______________________________________________
fltk-opengl mailing list
fltk-opengl@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-opengl

Reply via email to