Finally got the renderer to actually draw something! Still needs a lot of work but at least it doesn't show garbage or blank anymore.

Disable the locale when parsing LDraw code or atof's behavior becomes locale-dependant. Who the hell thought that was a great idea?

With removal of vectors, I don't need to keep the bearing class around either

Removed vectors. I realized that subfiles can actually perform their job just as well and that keeping them around would just imply extra work - for nothing.

Added code for parsing vertices

Added insert vertex function and added vertex icons.

Added triangle, quad and condline to the add object dialog

Begin work on dialogs for adding objects. Comments functional!

Implemented insertion of triangles, quads, condlines and comments

er, I said don't limit the amount of decimals

ftoa: don't limit the amount of decimals

Temporarily set the locale to C when using ftoa, or the resulting string is subject to the locale and gets unexpected symbols (e.g. commas for the decimal dots while the function expects periods)

Added main color configuration option, not implemented yet

Added color selection icon

Made the GL renderer background color configurable

Added RC file for the application icon introduced in d2d86021

Licensed LDForge GPL3, added some more icons

Added LDraw path setting dialog

added Save As function

and of course I forget to update ldforge.pro... or to test compile for that matter

Renamed io.cpp to file.cpp, draw.cpp to gldraw.cpp

Deleted scanner.cpp (don't need it), merged model.cpp into io.cpp. Renamed LDForgeWindow to just ForgeWindow since I want the LD* prefix only be given to LDObject derivatives.

added dummy action for future inlining command. Also GCC says that deleting instances of classes with virtual members but no virtual destructors is bad.

begin work on subfile caching

So much for that pointer class, caused more problems than it solved. For instance splitting a second quad after a first one had been split would trigger a peculiar crash...

Added split-quads-to-triangles function

Yay! This thing can save now.

Added pointer serializing so I can keep track of all LDObject* members. This way I can replace them all properly when needed.

Convert the static getCoordinateRep to a common ftoa, use this function to get proper coordinate representation when converting objects to LDraw code

Allow addition of dummy lines..

Added icon for setting contents

oops, forgot the new dialog files out

(0) -32 +32 +50 +100 +300 +1000 tip

mercurial