~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to render/idsoshadeops.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
Import upstream version 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Aqsis
 
2
// Copyright � 1997 - 2001, Paul C. Gregory
 
3
//
 
4
// Contact: pgregory@aqsis.com
 
5
//
 
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.
 
13
//
 
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
 
17
 
 
18
 
 
19
/** \file
 
20
                \brief  Interface and structures for supporting DSOs
 
21
                \author Tristan Colgate <tristan@inuxtech.co.uk>
 
22
*/
 
23
 
 
24
#ifndef IDSOSHADEOPS_H
 
25
#define IDSOSHADEOPS_H
 
26
 
 
27
#include        <stack>
 
28
#include        <vector>
 
29
#include        <list>
 
30
 
 
31
#include        "aqsis.h"
 
32
 
 
33
#include        "sstring.h"
 
34
#include        "plugins.h"
 
35
 
 
36
#include        "shadeop.h"
 
37
 
 
38
START_NAMESPACE( Aqsis )
 
39
 
 
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 {
 
44
    DSOMethod method;
 
45
    DSOInit init;
 
46
    DSOShutdown shutdown;
 
47
    enum EqVariableType return_type;
 
48
    std::list<EqVariableType> arg_types;
 
49
    void *initData;
 
50
    bool initialised;
 
51
};
 
52
 
 
53
/** Interface to the repostiory of dynamic shader operations*/
 
54
 
 
55
struct IqDSORepository{
 
56
    virtual void SetDSOPath(const CqString*) = 0;
 
57
    virtual ~IqDSORepository(){};
 
58
 
 
59
private:
 
60
    virtual std::list<SqDSOExternalCall*>* getShadeOpMethods(CqString*) = 0;
 
61
 
 
62
    // Parse a single DSO SHADEOP_TABLE entry
 
63
    virtual SqDSOExternalCall* parseShadeOpTableEntry(void*, SqShadeOp*) = 0;
 
64
};
 
65
 
 
66
END_NAMESPACE( Aqsis )
 
67
 
 
68
#endif  // IDSOSHADEOPS_H