Re: [Pipmak-Devel] Pipmak development
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2007-07-23 14:00:07
|
Andrea Viarengo wrote: > I thought also to add two command line switches: > > -reg and -unreg > > which perform just registry key writing and deleting to use these > with an eventual setup/uninstall program (game plus pipmak engine). > What do you think about? I don't care. Implement it in a nice way and I'll integrate it. > I tryed also to add some other image manipulation methods, like > drawing lines, circles, similarly to image:fill() but, for the moment > I cannot manage to use glBegin construct on a SDL surface... Hmm... you mean using some way of render-to-texture? Never thought about that. > I also found some library to draw line, circle and so on with SDL > (i.e.: SDL_draw) but it seems that it draws line point by point!! I > think it's stupid to do that when it's possible to use hardware > primitives (and openGl use the accelerated features of the graphic > cards, I believe...) Exactly. That's why there is no function to blit an image onto another, for example - you're better off using separate patches. > Another thing that I think could be useful: a function that return > the width in pixels of a text, so I could use before draw it. For > example, If I want to create a text button, I need this info to draw > the contour of the button before write the text inside... and avoid > that the text goes beyond the edge of the button... For example > myWidth=image:textwidth("Lorem ipsum dolor sit amet") What do you > think about? Good idea. I see no sense in making it an image method, and it needs to take the same arguments as image:drawtext(), but yeah. -Christian |