diff options
author | Keith Whitwell <[email protected]> | 2004-02-14 15:00:42 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2004-02-14 15:00:42 +0000 |
commit | 964e5325bdcca702cfb2f210e0b89809e42847ef (patch) | |
tree | 1d65322fce17d62024ad7f900c30a48e7bbb321c /src/mesa/main/program.h | |
parent | 70dacabfe503e89d8c4a8df9fa6568aa5613a25b (diff) |
Make it easier for drivers to create "subclasses" of the existing
program struct hierarchy.
Add driver callbacks to enable the above and make it possible to track
more changes to program objects.
Diffstat (limited to 'src/mesa/main/program.h')
-rw-r--r-- | src/mesa/main/program.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/main/program.h b/src/mesa/main/program.h index 0217a00487d..f71b46f1f70 100644 --- a/src/mesa/main/program.h +++ b/src/mesa/main/program.h @@ -58,6 +58,19 @@ extern const GLubyte * _mesa_find_line_column(const GLubyte *string, const GLubyte *pos, GLint *line, GLint *col); + +extern struct program * +_mesa_init_vertex_program( GLcontext *ctx, + struct vertex_program *prog, + GLenum target, + GLuint id ); + +extern struct program * +_mesa_init_fragment_program( GLcontext *ctx, + struct fragment_program *prog, + GLenum target, + GLuint id ); + extern struct program * _mesa_new_program(GLcontext *ctx, GLenum target, GLuint id); |