| From | Sent On | Attachments |
|---|---|---|
| Jean-Yves Gratius | Feb 19, 2009 5:24 am | |
| Thomas Grill | Feb 19, 2009 9:10 am | |
| Jean-Yves Gratius | Feb 19, 2009 11:35 pm | |
| marius schebella | Feb 20, 2009 4:21 am | |
| Thomas Grill | Feb 20, 2009 5:54 am | |
| Thomas Grill | Feb 20, 2009 5:56 am |
| Subject: | [PD-dev] Accessing Gem_State pointer from a flext-external | |
|---|---|---|
| From: | Jean-Yves Gratius (jygr...@club.fr) | |
| Date: | Feb 19, 2009 5:24:51 am | |
| List: | at.iem.pd-dev | |
Hi,
I'm triing to write a flext external thats reads a gem_state struct. I 'd like to access the pixBlock data. I wrote the following method ( registered as FLEXT_ADDMETHOD_(0,"gem_state", gem_state) ) I don't know where I am wrong in my code.... any hint ? thanks, Jean-Yves
void my_flext_external::gem_state(int argc, t_atom *argv) { GemState *my_pointer; if (CanbePointer(argv[0])) { my_pointer = (GemState *) GetPointer(argv[0]); // retrieve gem pointer if (!my_pointer) { post ("no pixblock !"); return; } else { //accessing to fields post ("dirty field = %d", my_pointer->dirty); post ("inDisplayList field = %d", my_pointer->inDisplayList); post ("lighting field = %d", my_pointer->lighting); post ("texture field = %d", my_pointer->texture); post ("*image field = %d", my_pointer->image); post ("*texCoords field = %d", my_pointer->texCoords); post ("multiTexUnits field = %d", my_pointer->multiTexUnits); // etc... }
}
_______________________________________________ Pd-dev mailing list Pd-...@iem.at http://lists.puredata.info/listinfo/pd-dev





