// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - OpenGL Renderer" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include namespace Nz { inline const GL::Context& OpenGLDevice::GetReferenceContext() const { return *m_referenceContext; } inline void OpenGLDevice::NotifyBufferDestruction(GLuint buffer) const { for (const GL::Context* context : m_contexts) context->NotifyBufferDestruction(buffer); } inline void OpenGLDevice::NotifyFramebufferDestruction(GLuint fbo) const { for (const GL::Context* context : m_contexts) context->NotifyFramebufferDestruction(fbo); } inline void OpenGLDevice::NotifyProgramDestruction(GLuint program) const { for (const GL::Context* context : m_contexts) context->NotifyProgramDestruction(program); } inline void OpenGLDevice::NotifySamplerDestruction(GLuint sampler) const { for (const GL::Context* context : m_contexts) context->NotifySamplerDestruction(sampler); } inline void OpenGLDevice::NotifyTextureDestruction(GLuint texture) const { for (const GL::Context* context : m_contexts) context->NotifyTextureDestruction(texture); } inline void OpenGLDevice::NotifyContextDestruction(const GL::Context& context) const { m_contexts.erase(&context); } } #include