diff options
author | Brian Paul <[email protected]> | 2003-02-16 23:07:34 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-02-16 23:07:34 +0000 |
commit | 2c1912fe84d110d4c8cccc207827a154c09dd09a (patch) | |
tree | ccb6cfadd52472b444a27a88e088b118ec9ad910 /src/mesa/main/nvprogram.h | |
parent | a89cc0edad31001a4207e180e618004fc43c82eb (diff) |
more work on DEFINE/DECLARATION statements, symbol tables
Diffstat (limited to 'src/mesa/main/nvprogram.h')
-rw-r--r-- | src/mesa/main/nvprogram.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/mesa/main/nvprogram.h b/src/mesa/main/nvprogram.h index 3ede7057220..5d31ebba3bf 100644 --- a/src/mesa/main/nvprogram.h +++ b/src/mesa/main/nvprogram.h @@ -1,10 +1,10 @@ -/* $Id: nvprogram.h,v 1.1 2003/01/14 04:55:46 brianp Exp $ */ +/* $Id: nvprogram.h,v 1.2 2003/02/16 23:07:36 brianp Exp $ */ /* * Mesa 3-D graphics library * Version: 5.1 * - * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -32,6 +32,26 @@ #define NVPROGRAM_H +enum symbol_type +{ + Definition, + Declaration +}; + + +extern void +_mesa_add_symbol(struct symbol_table *symbolTable, + const char *name, enum symbol_type type, + const GLfloat *value); + +extern GLboolean +_mesa_lookup_symbol(const struct symbol_table *symbolTable, + const char *name, GLfloat *value); + +extern void +_mesa_assign_program_registers(struct symbol_table *symbolTable); + + extern void _mesa_set_program_error(GLcontext *ctx, GLint pos, const char *string); |