Page 1 of 1

Where are Icon in source?

Posted: Thu Jan 12, 2006 10:18 am
by russose
Does someone know where icons are packed in the code? I find all function concerning icon but not the icons definition…the RGBA data. For example, if I want to change the look of an icon… which file do I have to modify? where is the icon ->data?

Thanks for your Help,

Posted: Thu Jan 12, 2006 7:48 pm
by lightning
The buttons are stored as a c file in /source/blender/src/blenderbuttons.c

To convert the image to a c file, use datatoc.c found in /release/datafiles/datatoc.c

The image used to make blenderbuttons.c is also found in /release/datafiles, filename blenderbuttons, you have to add the extension .png to view it

Posted: Thu Jan 12, 2006 8:37 pm
by LetterRip
icons are usually converted to opengl as vectors or other C code format...


Posted: Fri Jan 13, 2006 8:53 am
by russose
Thanks for the info. I will have a better look. I am asking that because my icons are not appearing... I am using the texture implementation already implemented in Blender (draw_icon_tex).

Thanks again,