2
############################################################################
5
# This script generates a C header file from a GLSL file. The header
6
# just contains the glsl file as a static char buffer.
9
# Morten Eriksen <mortene@sim.no>
10
# Lars J. Aas <larsa@sim.no>
13
UPCASEBASE=`basename $1 .glsl | tr '[a-z]' '[A-Z]'`
16
/**************************************************************************\
18
* This file is part of the Coin 3D visualization library.
19
* Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
21
* This library is free software; you can redistribute it and/or
22
* modify it under the terms of the GNU General Public License
23
* ("GPL") version 2 as published by the Free Software Foundation.
24
* See the file LICENSE.GPL at the root directory of this source
25
* distribution for additional information about the GNU GPL.
27
* For using Coin with software that can not be combined with the GNU
28
* GPL, and for taking advantage of the additional benefits of our
29
* support services, please contact Systems in Motion about acquiring
30
* a Coin Professional Edition License.
32
* See http://www.coin3d.org/ for more information.
34
* Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
35
* http://www.sim.no/ sales@sim.no coin-support@coin3d.org
37
\**************************************************************************/
40
#error this is a private header file
41
#endif /* !COIN_INTERNAL */
43
#ifndef SO_${UPCASEBASE}_GLSL_H
44
#define SO_${UPCASEBASE}_GLSL_H
46
static const char ${UPCASEBASE}_shadersource[] =
57
# ATTN: the file did not just get corrupted ;-)
61
#endif /* ! SO_${UPCASEBASE}_GLSL_H */