Mail Archives: djgpp/1999/03/22/17:20:32
Some Questions
1. how do i get and r,g,b, into a one diget color. rgb needs three numbers but
the command in allegro want one number.
RGB mycolor = {43,56,123}; *rgb colors here are ex.
set_color = (0,mycolor); *Wrong, mycolor is not const
(0,&mycolor) *Wrong, mycolor is not int
looking to mask sprites. but can't figure out my colors. (did it in windows
using hex colors). so how would i get grey or pink (24-bit). also need to
use colors for gui.
2. when getting .bmp or .pcx files(pics) from a data file is there a way to
index to the next file without calling the name of the pic i have chose
BASIC Ex.
for i=0 to eof
bmp = i
next i
if so that would shrink my code down considerably. :)
3. is there a way to get two dialogs to initialize at once, i've tried to
create a tool bar of icons and a menu bar(in one dialog), but with all the icon
procs the menu bar does not display correctly. when i put the menu bar in one
dialog and the tool bar in another they both display fine. but i lose the
ability to use one of the dialogs in the process.(usually the menu bar). memory
is not a prob have 13M to play with. if code would be of help e-mail me for its
somewhat big.
4. i get strange errors in something called sigxxx ?
5. how would one create a .h file so that way i could add them as new libs to
djgpp?
- Raw text -