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/dd.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/dd.h') diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index f9fdd3b92b6..f1b49b7a300 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -572,7 +572,17 @@ struct dd_function_table { /** Allocate a new program */ struct program * (*NewProgram)(GLcontext *ctx, GLenum target, GLuint id); /** Delete a program */ - void (*DeleteProgram)(GLcontext *ctx, struct program *prog); + void (*DeleteProgram)(GLcontext *ctx, struct program *prog); + /** Notify driver that a program string has been specified. */ + void (*ProgramStringNotify)(GLcontext *ctx, GLenum target, + struct program *prog); + + + + /** Query if program can be loaded onto hardware */ + GLboolean (*IsProgramNative)(GLcontext *ctx, GLenum target, + struct program *prog); + /*@}*/ -- cgit v1.2.3