d3d2glsl.h
author icculus
Fri, 14 Mar 2008 07:07:49 -0400
branchtrunk
changeset 18 0dbdb2be8bf8
parent 14 7075b6e31471
child 20 bb2e8f285acc
permissions -rw-r--r--
[svn] Bunch More Work. Cleanups, added app-supplied allocators, flexible output, etc.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
     1
/**
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
     2
 * d3d2glsl; generate GLSL programs from bytecode of compiled Direct3D shaders.
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
     3
 *
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
     4
 * Please see the file LICENSE.txt in the source's root directory.
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
     5
 *
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
     6
 *  This file written by Ryan C. Gordon.
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
     7
 */
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
     8
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
     9
#ifndef __INCL_D3D2GLSL_H_
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    10
#define __INCL_D3D2GLSL_H_
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    11
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    12
#ifdef __cplusplus
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    13
extern "C" {
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    14
#endif
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    15
18
0dbdb2be8bf8 [svn] Bunch More Work. Cleanups, added app-supplied allocators, flexible output, etc.
icculus
parents: 14
diff changeset
    16
typedef void *(*D3D2GLSL_malloc)(int bytes);
0dbdb2be8bf8 [svn] Bunch More Work. Cleanups, added app-supplied allocators, flexible output, etc.
icculus
parents: 14
diff changeset
    17
typedef void (*D3D2GLSL_free)(void *ptr);
0dbdb2be8bf8 [svn] Bunch More Work. Cleanups, added app-supplied allocators, flexible output, etc.
icculus
parents: 14
diff changeset
    18
7
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    19
/* !!! FIXME: documentation. */
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    20
/* !!! FIXME: this needs to change to return a buffer of GLSL code. */
14
7075b6e31471 [svn] More proper split into profiles.
icculus
parents: 9
diff changeset
    21
int D3D2GLSL_parse(const char *profile, const unsigned char *tokenbuf,
18
0dbdb2be8bf8 [svn] Bunch More Work. Cleanups, added app-supplied allocators, flexible output, etc.
icculus
parents: 14
diff changeset
    22
                   const unsigned int bufsize, D3D2GLSL_malloc m,
0dbdb2be8bf8 [svn] Bunch More Work. Cleanups, added app-supplied allocators, flexible output, etc.
icculus
parents: 14
diff changeset
    23
                   D3D2GLSL_free f);
7
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    24
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    25
#ifdef __cplusplus
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    26
}
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    27
#endif
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    28
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    29
#endif  /* include-once blocker. */
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    30
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    31
/* end of d3d2glsl.h ... */
18bf77bb8c07 [svn] Cleanups, split things out.
icculus
parents:
diff changeset
    32