Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Change dinamically color in a list



Hi,
I build a list with some objects which have some colors assigned and at run
time I would like to change the color of some objects in that list. Is a way
to define such a pointer to the color I want to assign to a given object of
the list?

Actually I do

    glNewList(objMovieList, GL_COMPILE);
        glColor4f(rCol, gCol, bCol, aCol);
        // draw some quad

    glEndList();

At run time, even if I change the values of rCol, gCol, bCol, aCol,
the object color doesn't change. Any pointer to the color in the list?
Any other way?

Thank you.

Best Regards
-- 
Lorenzo
email: email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.