2005-06-16 Al Riddoch <alriddoch@zepler.org> * libmd3/inttypes.h: Add in endian check, in readiness for making the loader endian independant. 2005-06-16 Al Riddoch <alriddoch@zepler.org> * libmd3/loader.c: Fix some error conditions which were not correctly checked or reported. 2005-06-15 Al Riddoch <alriddoch@zepler.org> * libmd3/loader.c: Don't free mesh when it fails to load. Free all the meshes as that is how they were allocated. * libmd3/loader.c, libmd3/loader.h: Add libmd3_file_free() to free the entire structure. * tests/dumpmd3.c: Test that libmd3_file_free works. * configure.ac: Increment interface version. 2005-06-13 Al Riddoch <alriddoch@zepler.org> * libmd3/convert.c, libmd3/convert.h: Fix the normal extraction code, and rename function to unpack_normals to reflect its real job. * tests/dumpmd3.c, tests/rendermd3.c: Use new function name for normals. 2005-06-13 Al Riddoch <alriddoch@zepler.org> * tests/dumpmd3.c: Fix dumping normals, which was formerly broken due to faulty pointer arithmetic. * libmd3/convert.c: Fix ommitting the first normal, and try another aproach to the normal conversion. 2005-06-13 Al Riddoch <alriddoch@zepler.org> * configure.ac: Check if libm is required for sin() and cos() functions. * tests/Makefile.am: Fix libraries for the tests so they pick up libm if required. * tests/dumpmd3.c: Dump mesh normals as part of dumping the entire model. * tests/rendermd3.c: Enable lighting, and experiment with rendering using the normals. 2005-06-13 Al Riddoch <alriddoch@zepler.org> * libmd3/convert.c: Add experimental implementation of algorithm to extract normal data from md3 files. 2005-06-13 Al Riddoch <alriddoch@zepler.org> * configure.ac: Cleanups. * NEWS: Add placeholder for next release. * libmodelfile.spec.in: Correct descriptions, and add packager tags. Generally cleanup. 2005-02-20 Al Riddoch <alriddoch@zepler.org> * libmodelfile.vcproj, Makefile.am: Add Visual Studio build file. * tests/rendermd3.c: Eliminate dependency on SDL_Image. 2005-02-20 Al Riddoch <alriddoch@zepler.org> * libmd3/loader.c: Use size_t when getting return value from fread(). 2005-02-20 Al Riddoch <alriddoch@zepler.org> * libmd3/inttypes.h: Remove inverted pre-processor check used for debugging. * libmd3/Makefile.am: Make sure inttypes.h is distributed. * configure.ac: Increment version, and add a .zip distribution format. 2005-02-14 Al Riddoch <alriddoch@zepler.org> * configure.ac: Cleanup. * libmd3/inttypes.h: New header to handle int types on older platforms without C99. * libmd3/mesh.h, libmd3/structure.h: Use new abstracted int types header. * tests/checksizes.c: Check that assumptions made about word sizes are correct. 2004-10-10 Al Riddoch <alriddoch@zepler.org> * Fix pkgconfig include path. * Release 0.1.91. 2004-10-10 Al Riddoch <alriddoch@zepler.org> * Release 0.1.90. 2004-05-21 Al Riddoch <alriddoch@zepler.org> * libmd3/mesh.h: Add member for normal data. * libmd3/structure.h: Fixed signedness of strings. * tests/rendermd3.c: Strip unused code, and make all functions static as this is a standalone file. 2004-05-18 Al Riddoch <alriddoch@zepler.org> * Make tests into check_PROGRAMS, and don't build by default. * Rename the variables defined in configure to match the project name. * Fix up the new spec. 2004-05-18 Al Riddoch <alriddoch@zepler.org> * Update configure.ac 2004-04-04 Al Riddoch <alriddoch@zepler.org> * libmd3/loader.c, tests/rendermd3.c: Move declarations to the beginning of the block to confirm with old ISO C. 2004-03-17 Al Riddoch <alriddoch@zepler.org> * tests/rendermd3.c: Remove legacy non-vertex array rendering code. 2004-03-17 Al Riddoch <alriddoch@zepler.org> * Updated AUTHORS and README. 2004-03-17 Al Riddoch <alriddoch@zepler.org> * tests/dumpmd3.c: Stop using strnlen, as its not part of the standard C library. 2004-03-17 Al Riddoch <alriddoch@zepler.org> * Change package name to libmodelfile, remove obsolete files, and ensure all sources are packaged correctly. 2004-03-14 Al Riddoch <alriddoch@zepler.org> * tests/rendermd3.c: Fix convert code. Switch to vertex array rendering, now that the vertex data is packed. 2004-03-14 Al Riddoch <alriddoch@zepler.org> * libmd3/convert.h, libmd3/convert.c: Add function to remove the env texcoords from the vertex data, so that rendering is more efficient if they are not required. * tests/dumpmd3.c: Improve error handling, and test vertex conversion function. * tests/rendermd3.c: Try out using the vertex conversion functionality. 2004-03-14 Al Riddoch <alriddoch@zepler.org> * tests/rendermd3.c: Set colour for full brightness, and set background to grey for contrast. Detect if model is not found. 2004-03-14 Al Riddoch <alriddoch@zepler.org> * libmd3/mesh.h, libmd3/loader.h: Add user union to libmd3 defined structs for extra info. * libmd3/structure.h, tests/dumpmd3.c: Fix attribute typo. * tests/rendermd3.c: Add handling for textures. 2004-03-13 Al Riddoch <alriddoch@zepler.org> * libmd3/structure.h: Change comments, and attributes of in-files structures due to improved understanding. * libmd3/loader.c: Re-write loader to work using start positions and seeking, rather than just reading sequentially, and hoping sections are in the right order. * tests/dumpmd3.c: Fix typos and new names in dump output. * tests/rendermd3.c: Use the official 1/64 scale and make the window bigger. 2004-03-13 Al Riddoch <alriddoch@zepler.org> * libmd3/structure.h: Add some comments, including size in bytes of each structure. * libmd3/loader.c: Add code to handle header_len attribute. * tests/rendermd3.c: Disable SDL parachute, and tweak scale factor. 2004-03-12 Al Riddoch <alriddoch@zepler.org> * tests/rendermd3.c: Slightly cleaner render code. 2004-03-12 Al Riddoch <alriddoch@zepler.org> * libmd3/loader.c: Use the stdint version of type for sizeof. * tests/dumpmd3.c: Dump triangle indices, texcoords and vertex coords. * tests/rendermd3.c: Implement discrete function based rendering. Sort out vertex arrays later. 2004-03-12 Al Riddoch <alriddoch@zepler.org> * tests/rendermd3.c: Add first pass of mesh drawing code. 2004-03-12 Al Riddoch <alriddoch@zepler.org> * libmd3/loader.c: Fix calls to calloc with zero blocks. 2004-03-12 Al Riddoch <alriddoch@zepler.org> * tests/rendermd3.c: Add example renderer code. 2004-03-12 Al Riddoch <alriddoch@zepler.org> * tests/dumpmd3.c: Dump the skin names. 2004-03-12 Al Riddoch <alriddoch@zepler.org> * Add -std=c89 to compile flags to ensure ANSI C compatability. * libmd3/loader.c: Correct check of mesh count when loading, and add meshes to the file structure. * libmd3/loader.c, libmd3/loader.h, libmd3/mesh.h, libmd3/structure.h: Fix C99/C++ style comments. * tests/dumpmd3.c: Implement dumping the mesh header. 2004-03-08 Al Riddoch <alriddoch@zepler.org> * libmd3/loader.c, libmd3/mesh.h: Implement loader for the rest of the mesh data. * tests/dumpmd3.c: Start writing dump code for the rest of the mesh data. 2004-03-07 Al Riddoch <alriddoch@zepler.org> * libmd3/mesh.h: Add member for triangles. * libmd3/loader.c: Add loader for triangles. 2004-03-07 Al Riddoch <alriddoch@zepler.org> * libmd3/mesh.h: New structure for all the data associated with a mesh. * libmd3/loader.h: Tweak the file structure to hold the mesh data pointers using new mesh data structure. * libmd3/loader.c: Add code to load the mesh header, and skins. 2004-03-07 Al Riddoch <alriddoch@zepler.org> * libmd3/structure.h: Fix spelling typo of md3_tag.position. * libmd3/loader.c: Clean up loading of frames and tags. * tests/dumpmd3.c: Separate dumping header into function, and dump frames and tags. 2004-03-06 Al Riddoch <alriddoch@zepler.org> * libmd3/structure.h, libmd3/loader.h: Clear up the naming of md3_frame structure. * libmd3/loader.c: Implement loading frames and tags. 2004-03-01 Al Riddoch <alriddoch@zepler.org> * libmd3/structure.h: Re-order declarations to match order in file. * libmd3/loader.h: Re-format, and add members to file structure to store pointers of other loaded structures. 2004-02-29 Al Riddoch <alriddoch@zepler.org> * libmd3/structure.h: Re-format using spaces. * libmd3/loader.c: Break into functions, and add stubs for the rest of the loader. 2004-02-29 Al Riddoch <alriddoch@zepler.org> * libmd3/loader.c, libmd3/loader.h: Add first stage of code to actually load the file. * tests/dumpmd3.c: Test the load code, and dump the results to terminal. 2004-02-28 Al Riddoch <alriddoch@zepler.org> * libmd3/structure.h: Add remaining items for on-disk data structures. 2004-02-26 Al Riddoch <alriddoch@zepler.org> * libmd3/structure.h: Add new header for on-disk data structures.