-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdraw.cpp
More file actions
38 lines (35 loc) · 1.19 KB
/
draw.cpp
File metadata and controls
38 lines (35 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*****************************************************************
* draw.cpp
*
* Copyright 2012-2014, Hendrik Radke
* All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the license contained in the
* COPYING file.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Fill text bubbles of a comic with text, according to an XML
* file as generated by detect.cpp.
*/
#include "comicfile.hpp"
#include <fstream>
int main(int argc, char *argv[]) {
Comicfile::addFontpath("./fonts");
if(argc == 2) {
Comicfile* comic = parse_file(argv[1]);
comic->writeImage();
} else {
std::cerr<< "usage: "<< argv[0] <<" <XML file>\n";
exit(-1);
}
exit(0);
}
void Comicfile::draw() const {}