OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
spursthreadsupportinterface.h
1// Gamespy Technology
2// NOTE: this code has been provided by Sony for usage in Speex SPURS Manager
3
4/*
5Bullet Continuous Collision Detection and Physics Library
6Copyright (c) 2003-2007 Erwin Coumans http://bulletphysics.com
7
8This software is provided 'as-is', without any express or implied warranty.
9In no event will the authors be held liable for any damages arising from the use of this software.
10Permission is granted to anyone to use this software for any purpose,
11including commercial applications, and to alter it and redistribute it freely,
12subject to the following restrictions:
13
141. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
152. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
163. This notice may not be removed or altered from any source distribution.
17*/
18
19#ifndef THREAD_SUPPORT_INTERFACE_H
20#define THREAD_SUPPORT_INTERFACE_H
21
22#include "spursPlatformDefinitions.h"
23
25{
26public:
27
29
31 virtual int sendRequest(uint32_t uiCommand, uint32_t uiArgument0, uint32_t uiArgument1) =0;
32
34 virtual int waitForResponse(unsigned int *puiArgument0, unsigned int *puiArgument1) =0;
35
37 virtual int startSPU() =0;
38
40 virtual int stopSPU()=0;
41};
42
43#endif //THREAD_SUPPORT_INTERFACE_H
Definition spursthreadsupportinterface.h:25
virtual int stopSPU()=0
tell the task scheduler we are done with the SPU tasks
virtual int waitForResponse(unsigned int *puiArgument0, unsigned int *puiArgument1)=0
check for messages from SPUs
virtual int sendRequest(uint32_t uiCommand, uint32_t uiArgument0, uint32_t uiArgument1)=0
send messages to SPUs
virtual int startSPU()=0
start the spus (can be called at the beginning of each frame, to make sure that the right SPU program...