Hi Carsten,

Carsten Neumann wrote:
>       Hello Johannes,
> 
> I've attached a LogicOpChunk implementation (I haven't tested it, it
> compiles though), but in case you still want to try it yourself:

Close! I think you also need to enable GL_COLOR_LOGIC_OP for it to be effective.

> Johannes Brunen wrote:
>>      - Is there a good example which I can use for guidiance?
> 
> I used the LineChunk as an example. I don't think we have step-by-step
> instructions.

Not really, no. I usually use the BlendChunk as a starting point, because it 
also has extension handling, but for this one that's not needed.

>>      - I do have the impression that there is some code generation
>> machinery at work for building 
>>        StateChunk classes. Is that correct?
> 
> Yes, for 1.8 there is a fcdEdit in OpenSG/Tools/fcdEdit which is
> relatively easy to use. To compile it osg-config should be in your PATH.
> Here is what I entered (on the left side) to get the LogicOpChunk:
...
> 
> Save the information to OSGLogicOpChunk.fcd and generate the files with
> the buttons "Write Field Container Base Code" and "Write Field Container
> Code" then edit the files OSGLogicOpChunk.{h,cpp,inl}.

The alternative is to copy-n-paste an existing .fcd and just add/remove the 
fields you need. You can then call fcdEdit from the commandline to generate the 
Base and FC code.

Hope it helps

        Dirk

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to