示例#1
0
Game::Game()
: window(sf::VideoMode(720,480), "SeoSplasher"),
resourceManager(&stateStack, RESOURCE_MANAGER_MODE, PACKFILE_NAME),
mPlayer(),
sPlayer(),
stateStack(Context(window, resourceManager, mPlayer, sPlayer, ecEngine, rGen, isQuitting, mode, scontext, sfxContext)),
isQuitting(false),
mode(0)
{
    registerResources();
    registerStates();

    frameTime = sf::seconds(1.f / 60.f);
}
	void CudaVideoRender::map(CUdeviceptr * ppImageData, unsigned int * pImagePitch, int active_field)
	{
		unsigned int nFrames = m_bIsProgressive ? 1 : 2;

		if(!m_ppRegisteredResources[0])
			registerResources(nFrames);

		cutilDrvSafeCallNoSync ( cuD3D9MapResources(nFrames, reinterpret_cast<IDirect3DResource9 **>(m_ppRegisteredResources) ));

		cutilDrvSafeCallNoSync ( cuD3D9ResourceGetMappedPointer(ppImageData, m_ppRegisteredResources[active_field], 0, 0) );
		assert(0 != *ppImageData);

		cutilDrvSafeCallNoSync ( cuD3D9ResourceGetMappedPitch(pImagePitch, NULL, m_ppRegisteredResources[active_field], 0, 0) );
		assert(0 != *pImagePitch);	
	}
示例#3
0
void ActorInstance::unpause() {
	--_pauseCtr;
	if (_pauseCtr == 0)
		registerResources();
}