Torque3D Documentation / _generateds / sfxNullDevice.h

sfxNullDevice.h

Engine/source/sfx/null/sfxNullDevice.h

More...

Classes:

Detailed Description

 1
 2//-----------------------------------------------------------------------------
 3// Copyright (c) 2012 GarageGames, LLC
 4//
 5// Permission is hereby granted, free of charge, to any person obtaining a copy
 6// of this software and associated documentation files (the "Software"), to
 7// deal in the Software without restriction, including without limitation the
 8// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 9// sell copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21// IN THE SOFTWARE.
22//-----------------------------------------------------------------------------
23
24#ifndef _SFXNULLDEVICE_H_
25#define _SFXNULLDEVICE_H_
26
27class SFXProvider;
28
29#ifndef _SFXDEVICE_H_
30   #include "sfx/sfxDevice.h"
31#endif
32#ifndef _SFXPROVIDER_H_
33   #include "sfx/sfxProvider.h"
34#endif
35#ifndef _SFXNULLBUFFER_H_
36   #include "sfx/null/sfxNullBuffer.h"
37#endif
38#ifndef _SFXNULLVOICE_H_
39   #include "sfx/null/sfxNullVoice.h"
40#endif
41
42
43class SFXNullDevice : public SFXDevice
44{
45   typedef SFXDevice Parent;
46
47   public:
48
49      SFXNullDevice( SFXProvider* provider, 
50                     String name, 
51                     bool useHardware, 
52                     S32 maxBuffers );
53
54      virtual ~SFXNullDevice();
55
56   public:
57
58      // SFXDevice.
59      virtual  SFXBuffer* createBuffer( const ThreadSafeRef< SFXStream>& stream, SFXDescription* description );
60      virtual SFXVoice* createVoice( bool is3D, SFXBuffer *buffer );
61      virtual void update();
62};
63
64#endif // _SFXNULLDEVICE_H_
65