New game export thing?

I have tried to figure out how to make new exporter to my own filetype? It should be able to export information like animation, object, and material/texture. Other things seem to be pretty easy.