Пример #1
0
		internal void Start()
		{
			Display.AtExit += Display_AtExit;
			VoxelReactor = new VoxelReactor();
			VoxelReactor.Init( this.GameEnv );
			ThreadContinue = true;
			thread = new Thread( thread_func );
			thread.Start( this );
			//Thread[1] = (SDL_Thread * )SDL_CreateThread(thread_func, "thread_func", this);
			//Thread[2] = (SDL_Thread * )SDL_CreateThread(thread_func, "thread_func", this);
			//Thread[3] = (SDL_Thread * )SDL_CreateThread(thread_func, "thread_func", this);
		}
Пример #2
0
		internal void End()
		{
			ThreadContinue = false;
			while( ThreadProcessing )
				Thread.Sleep( 10 );
			VoxelReactor = null;
		}