Bitmapped Buttons
Hi, I''m trying to create a menu system for my game but am unable to create bitmapped buttons. I know how to create them using MFC but but could someone please explain how to do it without? Or a point to a tutorial would be nice also.
Any help is appreciated, thanks.
There's always something smaller and something bigger. Don't sweat the small stuff and don't piss off the big stuff :)
Noone can help?
There's always something smaller and something bigger. Don't sweat the small stuff and don't piss off the big stuff :)
There was a huge thread on this within the last 3 days! Look first then ask, people don''t like to repeat thing to people who haven''t looked first. There was C code posted C++ code and assembler code posted as well as lot''s of idea''s and theories on the best way to make menu''s and stuff...
Go find it!
See ya,
Ben
Go find it!
See ya,
Ben
__________________________Mencken's Law:"For every human problem, there is a neat, simple solution; and it's always wrong."
"Computers in the future may weigh no more than 1.5 tons."- Popular Mechanics, forecasting the relentless march of science in 1949
"Computers in the future may weigh no more than 1.5 tons."- Popular Mechanics, forecasting the relentless march of science in 1949
i program in delphi, so i cant help u with the MFC part.
the normal part, however, is to have a class defifition like
tdsprite=class
protected
function getcurrentframe:integer;
public
constructor create(aframeinterval,anumberofframes,....etc etc)
destructor done;
//have here a pointer to array of rects, which mark the position of the rects to blit
frames:array of trect;
fromsurface:idirectdrawsurface7;//can load a bitmap to this
tosurface:idirectdrawsurface7;//can be assigned the backbuffer
procedure draw;virtual;
function collision(sender:tdsprite):boolean;
end;
this is somewhat my own sprite code, and the mouse cursor could be another sprite, checked by the collision function.
i ur inerested, i could mail a demo to u. just post again, if required. hope this is what u need !
(^-^)
the normal part, however, is to have a class defifition like
tdsprite=class
protected
function getcurrentframe:integer;
public
constructor create(aframeinterval,anumberofframes,....etc etc)
destructor done;
//have here a pointer to array of rects, which mark the position of the rects to blit
frames:array of trect;
fromsurface:idirectdrawsurface7;//can load a bitmap to this
tosurface:idirectdrawsurface7;//can be assigned the backbuffer
procedure draw;virtual;
function collision(sender:tdsprite):boolean;
end;
this is somewhat my own sprite code, and the mouse cursor could be another sprite, checked by the collision function.
i ur inerested, i could mail a demo to u. just post again, if required. hope this is what u need !
(^-^)
(^-^)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement