Nicolas Capens | ee16f0d | 2015-07-16 17:40:10 -0400 | [diff] [blame] | 1 | // SwiftShader Software Renderer |
| 2 | // |
| 3 | // Copyright(c) 2005-2011 TransGaming Inc. |
| 4 | // |
| 5 | // All rights reserved. No part of this software may be copied, distributed, transmitted, |
| 6 | // transcribed, stored in a retrieval system, translated into any human or computer |
| 7 | // language by any means, or disclosed to third parties without the explicit written |
| 8 | // agreement of TransGaming Inc. Without such an agreement, no rights or licenses, express |
| 9 | // or implied, including but not limited to any patent rights, are granted to you. |
| 10 | // |
| 11 | |
| 12 | #ifndef D3D9_SwiftShader_hpp |
| 13 | #define D3D9_SwiftShader_hpp |
| 14 | |
| 15 | #include "SwiftShader.h" |
| 16 | #include "Unknown.hpp" |
| 17 | |
| 18 | namespace D3D9 |
| 19 | { |
| 20 | class Direct3D9; |
| 21 | |
| 22 | class SwiftShader : public ISwiftShaderPrivateV1, public Unknown |
| 23 | { |
| 24 | public: |
| 25 | SwiftShader(Direct3D9 *d3d9); |
| 26 | |
| 27 | virtual ~SwiftShader(); |
| 28 | |
| 29 | // IUnknown methods |
| 30 | long __stdcall QueryInterface(const IID &iid, void **object); |
| 31 | unsigned long __stdcall AddRef(); |
| 32 | unsigned long __stdcall Release(); |
| 33 | |
| 34 | // ISwiftShaderPrivateV1 methods |
| 35 | long __stdcall RegisterLicenseKey(char *licenseKey); |
| 36 | long __stdcall SetControlSetting(SWSETTINGTYPE setting, unsigned long value); |
| 37 | |
| 38 | private: |
| 39 | // Creation parameters |
| 40 | Direct3D9 *const d3d9; |
| 41 | }; |
| 42 | } |
| 43 | |
| 44 | #endif // D3D9_SwiftShader_hpp |