Panda3D
Loading...
Searching...
No Matches
binToC.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file binToC.h
10 * @author drose
11 * @date 2003-07-18
12 */
13
14#ifndef BINTOC_H
15#define BINTOC_H
16
17#include "pandatoolbase.h"
18
19#include "programBase.h"
20#include "withOutputFile.h"
21
22/**
23 * A utility program to read a (binary) file and output a table that can be
24 * compiled via a C compiler to generate the same data. Handy for portably
25 * importing binary data into a library or executable.
26 */
27class BinToC : public ProgramBase, public WithOutputFile {
28public:
29 BinToC();
30
31 void run();
32
33protected:
34 virtual bool handle_args(Args &args);
35
36 Filename _input_filename;
37 std::string _table_name;
38 bool _static_table;
39 bool _for_string;
40};
41
42#endif
The name of a file, such as a texture file or an Egg file.
Definition filename.h:44
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.