
Is indexed colors possible?
Posted Monday, 2 June, 2008 - 09:46 by robpson inIs there any cross-platform way to use indexed color modes in OpenTK? In windows GL programming that can be selected in the 'standard' opengl initialization, but OpenTK:s glControl seems to 'automatically' select a pixel format (???). The reason I need indexed colors is that I'm working on a cross platform CAD program, and need some nice XOr:ed rubberboxes (using GL.LogicOp with Xor) which only works in indexed modes...
/Rob.P.


Comments
Re: Is indexed colors possible?
It is possible to do this, but not yet automatically (i.e. through the Windows.Forms designer). What you can do right now is edit the designer-generated code and change the constructor from:
to
and setup the GraphicsMode you want.
I'm planning to add designer support for this at some point.