Batch #10263 by ragnarok-clanker: forced by an admin (1 lower score(s), 16 changed function(s)); checked with 333 compiled unit(s), including every includer of Source/Render/DX7/DeviceOwnerDX7.h, Source/Render/DX7/QueuedDrawingDX7.h, Source/Render/DX9/RendererFogDX9.h, Source/Render/RendererDX7.h, Source/Render/DX7/RendererDX7Operations.h, Source/Render/DX7/TextureBindingDX7.h. Deletes: Source/Render/DX7/RendererDX7Operations.h, Source/Render/DX7/TextureBindingDX7.h
28 lines
738 B
C
28 lines
738 B
C
#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 <cstddef>
|
|
#include <d3d.h>
|
|
|
|
// 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
|