// Copyright 2004-2006 Nanorex, Inc. See LICENSE file for details. #include #include #include #include "mol.h" /** * @file * * Instead of sending frames to an OpenGL pane, let's dump frames as a * sequence of XYZ snapshots. Because it's a 3D representation, the * display animation program can place light sources and the camera * wherever we want. * * Info about sequential XYZ file format: * http://willware.net:8080/xyz2rgb.html */ FILE *outf; /** */ void display(void) { } /** */ void snapshot(int n) { int i,j; fwrite(&Nexatom, sizeof(int), 1, outf); for (i=0; i