- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# src/ps2icon_to_obj.cpp File Reference

A tool for converting PS2 Icons to OBJ. More...

`#include <iostream>`
`#include "../include/ps2_ps2icon.hpp"`
`#include "../include/obj_loader.hpp"`
`#include "../gbLib/include/gbException.hpp"`
`#include "../gbLib/include/gbColor.hpp"`
`#include "../gbLib/include/gbImageLoader.hpp"`

## Functions
void | PrintHelp (char *self)
| Print a help text on screen.
void | ParseCommandLine (int argc, char *argv[])
| Parse the command line arguments and set globals accordingly.
PS2Icon * | LoadPS2Icon ()
void | WriteOBJFile (PS2Icon *ps2_icon)
void | WriteTextureFile (PS2Icon *ps2_icon)
int | main (int argc, char *argv[])
## Variables
char const * | ps2_input_file = NULL
| path to the input file
char const * | obj_output_file = NULL
| path to the output file
char const * | texture_output_file = NULL
| path to the output texture file
bool | verbose_output = false
| flag for verbose output

## Detailed Description

A tool for converting PS2 Icons to OBJ.

Version:
  1.0

Author:
  Andreas Weis

## Function Documentation

void ParseCommandLine | ( | int | argc,
|  | char * | argv[] |
| ) |  |  |

Parse the command line arguments and set globals accordingly.

Parameters:

  `[in]` | argc | argc
  `[in]` | argv | argv

void PrintHelp | ( | char * | self | ) |

Print a help text on screen.

Parameters:

  `[in]` | self | Name of the executable (e.g. obtained from argv[0])