General Category > General Anim8or Forum
Coding Anim8or
danielstritt:
This one is mostly for Steve since he makes Anim8or. I was wondering, as a developer I am curious, what development environment you use to make it, and any libraries like MFC or so, or just raw Windows API calls.
Thanks,
Daniel
Steve:
I use Microsoft Visual Studio and code in C++. I don't use MFC or anything like that. All OS calls are normal Windows API and the standard C++ library.
The only other code I use is some JPG code from The Independent JPEG Group and LIBPNG (which also requires ZLIB for the compression) to read and write .jpg and .png images.
Pixie3D:
Steve: Out of curiosity, how many classes have you created to develop Anim8or? and I know it is not so much of a useful information for people but how many lines of code have you written to create Anim8or? Also, what do you consider (for a developers perspective) as being the best part of Anim8or? and (last question) if you could go back in time and redo anything what would it be and why?
Steve:
So far there are about 900 classes and structs, and 300 KLOC in Anim8or, not counting the jpg and png libraries.
It's hard to say what I think is the best part. As I work on it I continue to think of better ways to structure the code. Much of what I do is rewriting code to simplify the overall organization. The earliest code that has become Anim8or was originally written in Pascal. Later I translated it into C and very soon afterwards into C++.
Initially there wasn't any kind of Undo-Redo capability. That was by far my biggest mistake. I would have designed the code very differently with that in mind. The second issues is that it's not 64-bit safe. I'm slowly fixing that but I still have code that casts pointers into ints for thinks like call back functions (yes, I knew better, but did it anyway to "save time"!) If I had gone from Pascal directly into C++ I don't think that would have happened.
thecolclough:
--- Quote from: Steve on May 02, 2017, 04:58:20 pm ---So far there are about 900 classes and structs, and 300 KLOC in Anim8or, not counting the jpg and png libraries.
--- End quote ---
good grief... i think the biggest thing i ever coded was about 2k lines, and i had fun keeping track of that - the mind boggles as to how you keep tabs on 300k lines! my hat's off, once again :)
Navigation
[0] Message Index
[#] Next page
Go to full version