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.
11
// This library is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
// General Public License for more details.
16
// You should have received a copy of the GNU General Public
17
// License along with this library; if not, write to the Free Software
18
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
\brief Simple example display device manager.
23
\author Paul C. Gregory (pgregory@aqsis.com)
26
//? Is .h included already?
27
#ifndef DDMSIMPLE_H_INCLUDED
28
#define DDMSIMPLE_H_INCLUDED 1
35
#include "iddmanager.h"
36
#include "ishaderexecenv.h"
38
START_NAMESPACE( Aqsis )
41
//---------------------------------------------------------------------
43
* Simple structure storing display device request.
50
SqDDevice( const TqChar* name, const TqChar* type, const TqChar* mode ) :
60
unsigned char* m_pData;
63
TqInt m_SamplesPerElement;
67
//---------------------------------------------------------------------
68
/** \class CqDDManagerSimple
69
* Class providing display device management to the renderer.
72
class CqDDManagerSimple : public IqDDManager
77
virtual ~CqDDManagerSimple()
80
// Overridden from IqDDManager
84
virtual TqInt Initialise();
85
virtual TqInt Shutdown();
86
virtual TqInt AddDisplay( const TqChar* name, const TqChar* type, const TqChar* mode, TqInt modeID, TqInt dataOffset, TqInt dataSize, std::map<std::string, void*> mapOfArguments );
87
virtual TqInt ClearDisplays();
88
virtual TqInt OpenDisplays();
89
virtual TqInt CloseDisplays();
90
virtual TqInt DisplayBucket( IqBucket* pBucket );
91
virtual TqBool fDisplayNeeds( const TqChar* var );
94
return( EnvVars_Ci | EnvVars_Oi );
98
std::vector<SqDDevice> m_aDisplayRequests; ///< Array of requested display drivers.
103
END_NAMESPACE( Aqsis )
105
#endif // DDSERVER_H_INCLUDED