Am Dienstag, 12. September 2006 02:29 schrieb Christian Ohm: > On Saturday, 9 September 2006 at 2:30, Dennis Schridde wrote: > > Hi! > > > > I added 2 new pages to the wiki and would like to get some comments: > > http://wz.rootzilla.de/wiki/user:codingstyle > > Well, the coding style is mostly personal preference, the main thing is > to keep it consistent (as far as possible, since the existing code > isn't). I'd only like to comment on one thing: Tab size. There is a > indentation style where tab size is irrelevant: Use tabs to indent and > spaces to align, like this: > > int bla(int blubb) { > int i = 26; > float honk = 84.332; > if (blubb < i || > blubb > honk) > return 37; > } > return 982; > } > Actually that int i doesn't align here very probably... (Might be due to a non fixed fontsize.)
> That would be my preference. > > And I'd move the first six points of "Other" to user:coding, as that's > rather code organization than coding style. I thought that that's all the same. Idea was to have one reference for someone who wants to know "how shall my code look like". I counted both API style as well as indentation into that wish. And it is still a complete draft. Maybe some things are totally irrelevant and maybe very relevant things are missing... > Then rename "Other" to > "Indentation" (that's usually used instead of "indention"). Ok. Marked on my list of things I'll do when I have time. ;) > > > http://wz.rootzilla.de/wiki/user:wishlist > > Question: What about the TODO file in the repository? Do we need both? That's also a question I asked myself when I found out that parts of the TODO also should be in the wishlist... > If not, which one do we keep? In my opinion, the wiki is more suitable > for that as it can be changed more easily. Actually I don't know. It seems like not so many people look into a TODO file as look into a wishlist Wiki page. We probably need to decide on that question. > > Not all of the points you listed are major changes ("Make it possible to > close Warzone with ^C, ALT+F4 or closing the window", "Fix memleaks in > lexer files"). That page was all about design questions, which both points involve to some extend. Closing with ^C requires Warzone to be design in a way which makes it possible to call a subsystem's init function and register it's exit function to atexit(). Those memleaks are also similar: It is perhaps more a question like: How can we help prevent memleaks by design? Instead of how can we fix this memleak. And even fixing that memleak is tricky, because eg MSVC's memleak detection fails on all of those memleaks, because it doesn't know where they come from, because they don't have the crtdbg.h redefinitions of malloc and free. > > "Improve the menus for usability (esp. networking)" is connected to an > overhauled GUI system; "Increase drawed area In-Game" and "Find a better > (easily useable) dataformat for models (?) and textures (DDS?)" depend > on the graphics engine. Yes, there are some dependancies. Perhaps we can display them better? > DDS looks to Microsoft/DirectX specific to me, DDS can include (and that's the sense why I added it) S3TC compressed images. (MS calls that DXTC.) Those images can be loaded by any more or less current graphicscards in hardware. (List of OpenGL drivers/hardware supporting it: http://www.delphi3d.net/hardware/extsupport.php?extension=GL_EXT_texture_compression_s3tc) The DDS file structure is documented by MS very well and you can simply load the texture (if it is S3TC compressed) out of the file into the hardware. (No need of extra libraries.) That's why I thought about this format. > which Linux program can edit those files? Now that you remind me of this I find the flaw in my idea... GIMP seems to not support it and actually I don't know of any other... (Perhaps there are converters?) > And what's wrong with PNG / I think some time ago someone said that he/she thinks that pngs are quite big. I don't remember who it was. (I think one of the devs.) And png needs an external library. :P > what's better about TGA? Don't ask me that, that idea is from Kamaze. ;) --Dennis
pgp9WA0OG6hG3.pgp
Description: PGP signature
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
