From 964e5325bdcca702cfb2f210e0b89809e42847ef Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Sat, 14 Feb 2004 15:00:42 +0000 Subject: 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. --- src/mesa/main/program.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/mesa/main/program.h') 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); -- cgit v1.2.3