#ifndef RAGNAROK_SOURCE_RENDER_DX7_QUEUEDDRAWINGDX7_H #define RAGNAROK_SOURCE_RENDER_DX7_QUEUEDDRAWINGDX7_H #include "Render/DX7/TextureDX7.h" #include "Render/RendererDX7.h" #include "Render/Primitives/RenderQueues.h" #include #include // INLINED inline void CRendererDX7::BindTexture(CTextureDX7* texture) { if (this->boundTexture != texture) { this->device->SetTexture(0, texture ? texture->NativeSurface() : nullptr); this->boundTexture = texture; } } // INLINED inline void CRendererDX7::BindLightmap(CTextureDX7* lightmap) { if (this->boundLightmap != lightmap) { this->device->SetTexture(1, lightmap ? lightmap->NativeSurface() : nullptr); this->boundLightmap = lightmap; } } #endif