GP32 My Vector And Linked List Implementation For C


generalnmx

Playful/Fascist Mod
Joined
Apr 18, 2003
Messages
2,128
Age
43
Location
Maryland, USA
Website
www.matts-hosting.com
After creating a Vector implementation for C (no STL), I thought, why the hell don't I also create a Linked List? Well obviously it was harder, but I think they both came out alright, albiet not very optimized.

Attached are my two current "utility" sources. Note that ISysMemFree, ISysMemCopy, ISysMemAllocate, and ISysMemSet are just #define's for free(), memcpy(), malloc(), and memset(), respectively.

Attached as a ZIP.

I plan to make all my code open source, but the rest isn't good enough, so enjoy this for now. I haven't written up a licence or whatever, you're free to use this code and modify it as long as you give me credit for the initial code ;)
 
How about some 2d translation and rotation routines, they would be useful (for asteroids clones)
 
jlebrech posted on Aug 17 2004 at 08:25 PM said:
How about some 2d translation and rotation routines, they would be useful (for asteroids clones)
Yeah, stop slacking off GenNMX.

And when your are done with that I could really use a nice 3d library

Oh and scalable font support would be nice

Also....a PNG library
 
Last edited by a moderator:
Im not trying to "slack" him off, i recon it the next step thats all, and with the linked list feature, he can add single vector rotation and world rotation by going thru the linked list.
 
jlebrech posted on Aug 18 2004 at 04:28 PM said:
Im not trying to "slack" him off, i recon it the next step thats all, and with the linked list feature, he can add single vector rotation and world rotation by going thru the linked list.
Hmm....I think you misunderstood what I was saying..."slacking off" menas being lazy. I was telling GenNMX to stop being lazy.
 
Last edited by a moderator:
Wrong type of vectors guys, he is implementing the 'adjustable arrays' type vectors, not x,y,z ones :)
 
Back
Top