---
name: "osg2cpp"
section: "1"
platform: "linux"
package: "openscenegraph"
version: "3.6.5+dfsg1-9"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/osg2cpp"
---

# osg2cpp(1)

Extract shaders from a native .osg\* file into C++ source code.

## NAME

osg2cpp - Extract shaders from a native .osg\* file into C++ source code.

## SYNOPSIS

**osg2cpp** \[*options*\] *filename* ...

## OPTIONS

- **--shader** \<filename\>

  Shader file to create a .cpp file for.

- **--write-to-source-file-directory**

  Use the path to the source filename as the directory to write to.

- **-h** or **--help**

  Display command line parameters
