ps1.0_program.h 576 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _PS10_PROGRAM_H
  2. #define _PS10_PROGRAM_H
  3. #include "nvparse_errors.h"
  4. #include "nvparse_externs.h"
  5. #include <string>
  6. #include <list>
  7. #include <vector>
  8. #include <map>
  9. namespace ps10
  10. {
  11. struct constdef
  12. {
  13. std::string reg;
  14. float r,g,b,a;
  15. };
  16. extern std::map<int, std::pair<int,int> > constToStageAndConstMap;
  17. extern std::map<int, GLenum> stageToTargetMap;
  18. void invoke(std::vector<constdef> * c,
  19. std::list<std::vector<std::string> > * a,
  20. std::list<std::vector<std::string> > * b);
  21. bool init_extensions();
  22. }
  23. #endif