2
// Copyright � 1997 - 2001, Paul C. Gregory
4
// Contact: pgregory@aqsis.com
6
// This library is free software; you can redistribute it and/or
7
// modify it under the terms of the GNU General Public
8
// License as published by the Free Software Foundation; either
9
// version 2 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
// General Public License for more details.
14
// You should have received a copy of the GNU General Public
15
// License along with this library; if not, write to the Free Software
16
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
\brief Interface and structures for supporting DSOs
21
\author Tristan Colgate <tristan@inuxtech.co.uk>
24
#ifndef IDSOSHADEOPS_H
25
#define IDSOSHADEOPS_H
38
START_NAMESPACE( Aqsis )
40
// This is used as the datablock for SO_external within UsProgramElement
41
// Additionally it cotains the init and shutdown funnction pointers, it
42
// is basically a parsed SHADEOP_TABLE entry
43
struct SqDSOExternalCall {
47
enum EqVariableType return_type;
48
std::list<EqVariableType> arg_types;
53
/** Interface to the repostiory of dynamic shader operations*/
55
struct IqDSORepository{
56
virtual void SetDSOPath(const CqString*) = 0;
57
virtual ~IqDSORepository(){};
60
virtual std::list<SqDSOExternalCall*>* getShadeOpMethods(CqString*) = 0;
62
// Parse a single DSO SHADEOP_TABLE entry
63
virtual SqDSOExternalCall* parseShadeOpTableEntry(void*, SqShadeOp*) = 0;
66
END_NAMESPACE( Aqsis )
68
#endif // IDSOSHADEOPS_H