Jim Hollister

Creating a direct-mode graphical plug-in

Discussion created by Jim Hollister on Dec 8, 2011
Latest reply on Dec 15, 2011 by Jim Hollister

I'm trying to create a direct-mode graphical plug-in. My understanding (acquired from reading the  ifxui_plugin.c example) is that I set my plug-in's mode in the 'CreateElement' call to my plug-in, like so:

 

pProperty->mode = IFX_MODE_ELEMENT_BUFFERED; 

 

The defined values for mode are:

IFX_MODE_ELEMENT_INVALID

IFX_MODE_ELEMENT_OPENGL_TEXTURE

IFX_MODE_ELEMENT_BUFFERED_AND_DIRECT

IFX_MODE_ELEMENT_BUFFERED

IFX_MODE_ELEMENT_BUFFERED_NORMAL

 

How do I indicate that I just want DIRECT mode? I tried specifying mode IFX_MODE_ELEMENT_BUFFERED_AND_DIRECT, hoping that I'd get a 'ChangeElementMode' call from the engine telling me which mode I was actually in but I never seem to get that call. In fact, after I get the 'CreateElement' call, I don't get any other calls until DestroyElement. The documentation seems to say that I should also be getting ChangeElementMode, PositionElement, and ActivateElement calls.

 

Can anyone help me understand what I'm doing wrong?

 

Jim

Outcomes