mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
partly working chunk-based map generator (doesn't save properly, spawn is pretty random)
This commit is contained in:
parent
be851871cd
commit
6e196c2ce4
13 changed files with 1370 additions and 126 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
IrrlichtWrapper::IrrlichtWrapper(IrrlichtDevice *device)
|
||||
{
|
||||
m_running = true;
|
||||
m_main_thread = get_current_thread_id();
|
||||
m_device_mutex.Init();
|
||||
m_device = device;
|
||||
|
@ -35,6 +36,11 @@ void IrrlichtWrapper::Run()
|
|||
}
|
||||
}
|
||||
|
||||
void IrrlichtWrapper::Shutdown(bool shutdown)
|
||||
{
|
||||
m_running = !shutdown;
|
||||
}
|
||||
|
||||
textureid_t IrrlichtWrapper::getTextureId(const std::string &name)
|
||||
{
|
||||
u32 id = m_namecache.getId(name);
|
||||
|
@ -73,6 +79,10 @@ video::ITexture* IrrlichtWrapper::getTexture(const TextureSpec &spec)
|
|||
}
|
||||
else
|
||||
{
|
||||
// If irrlicht has shut down, just return NULL
|
||||
if(m_running == false)
|
||||
return NULL;
|
||||
|
||||
// We're gonna ask the result to be put into here
|
||||
ResultQueue<TextureSpec, video::ITexture*, u8, u8> result_queue;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue