Re: [Pipmak-Users] Pipmak development
Status: Alpha
Brought to you by:
cwalther
From: Andrea V. <and...@gm...> - 2007-07-10 08:13:07
|
Christian Walther <cwalther <at> gmx.ch> writes: > - pipmak.server_screensize(): First, I would call this "desktopsize" or > something like that. Even though, at least on X11, there's actually a Well,I think desktopsize could be better than server_screensize(), I will try to implement using SDL_SetVideoMode()!! >.... I'd just have checked whether there exists a > file at that path. Your way, the file association flipflops back and > forth when you have two versions of Pipmak - my way, it sticks with the > old version until you move it away. Of course, both ways have their merit. OK, I don't know what is better...with your way, if in future release of Pipmak you change something in the Registry (for example, add another file type, or another action...) the registry contents couldn't be aligned with the current running pipmak.exe... 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? > Could you provide your changes in patch (unified diff) form, e.g. > obtained using "svn diff" or the "Create Patch" menu from TortoiseSVN? > They'd be easier to apply and review that way. Ok, I will try to use diff, I haven't use because my code is slightly different from your official SVN to permit compilation with MS VC++ I'm not very competent on diff/patch and concurrent developing tools. I have used wiki to not fill to much mailing list with develop informations. I will try to send next threads on pipmak.devel (I didn't done it before because the list seems abandoned....), But how I can subscribe to 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...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...) 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? Andrea |