half-edge/main.c

38 lines
945 B
C
Raw Normal View History

2014-05-06 21:20:16 +00:00
/*
* Copyright 2011-2014 hasufell
*
* This file is part of a hasufell project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 2 of the License only.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2014-05-06 21:09:59 +00:00
#include "parser.h"
2014-05-07 19:08:47 +00:00
#include <stdio.h>
/**
* Program help text.
*/
char const * const helptext = "Usage: drow-engine <file.obj>\n";
int main(int argc, char *argv[])
2014-05-06 21:09:59 +00:00
{
2014-05-07 19:08:47 +00:00
if (argc > 1)
parse_obj(argv[1]);
else
printf("%s", helptext);
return 0;
2014-05-06 21:09:59 +00:00
}