|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Dynamic arrays
OpenGL uses integers for their color. It's operators are overloaded so it can take nearly any value but behind the scene they are all converted to integers for their functions. Hope that helps Derold **** MESSAGE TRIMMED *** > You do have to recompute the pixel values when the size of the window > changes, and restore them in array. The array is used for when portions of > the window need to be redisplayed and the image has not changed. > > You would need to do this when regenerating the image is a large > calculation, and the image remains fairly static. The rendering sequence is > exactly what I had in mind. Say you render a scene and just want to display > it. Then you need the high color and also the array so you don't have to > rerender the image everytime it gets lost on the screen. > > I do have to admit that I'm not sure why OpenGL is working with 3 floats. > I'm more used to DirectX color. As far as I'm using OpenGL, I was told to > just use glColor3f and not worrying about the bit color. What's a better > way to do this? How is, say 24-bit or 32-bit color generally done in OpenGL? > > Thanks, > SirFern ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|