Where are Icon in source?

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
russose
Posts: 0
Joined: Mon Apr 19, 2004 5:01 pm

Where are Icon in source?

Post by russose » Thu Jan 12, 2006 10:18 am

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,
Salvatore

lightning
Posts: 0
Joined: Sat May 17, 2003 9:06 pm

Post by lightning » Thu Jan 12, 2006 7:48 pm

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
The dawn of a new error...

LetterRip
Posts: 0
Joined: Thu Mar 25, 2004 7:03 am

Post by LetterRip » Thu Jan 12, 2006 8:37 pm

icons are usually converted to opengl as vectors or other C code format...

LetterRip

russose
Posts: 0
Joined: Mon Apr 19, 2004 5:01 pm

Post by russose » Fri Jan 13, 2006 8:53 am

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,
Salvatore

Post Reply