Batch #18059 by eAthena: 6 byte-identical, 0 confirmed by peer review. - fn_02088 CRendererDX7::DrawDepthSortedQueue: byte-identical (already on main) - fn_02089 CRendererDX7::DrawAlphaQueues: byte-identical (already on main) - fn_02091 CRendererDX7::DrawOpaqueQueues: byte-identical (already on main) - fn_02092 CRendererDX7::DrawGroundBaseQueue: byte-identical (already on main) - fn_02093 CRendererDX7::DrawAuxiliaryQueue: byte-identical (already on main) - fn_45497 CRendererDX7::DrawBlendedQueue: byte-identical (already on main) Merged automatically: every function is byte-identical to the original.
36 lines
872 B
C
36 lines
872 B
C
#ifndef RAGNAROK_SOURCE_RENDER_DX7_QUEUEDDRAWINGDX7_H
|
|
#define RAGNAROK_SOURCE_RENDER_DX7_QUEUEDDRAWINGDX7_H
|
|
|
|
#include "Render/DX7/TextureDX7.h"
|
|
#include "Render/DX7/RendererDX7.h"
|
|
#include "Render/Primitives/RenderQueues.h"
|
|
|
|
#include <cstddef>
|
|
#include <d3d.h>
|
|
|
|
// INLINED
|
|
inline void CRendererDX7::BindTexture(CTextureDX7* texture) {
|
|
if (this->boundTexture != texture) {
|
|
if (!texture) {
|
|
this->device->SetTexture(0, nullptr);
|
|
} else {
|
|
this->device->SetTexture(0, texture->NativeSurface());
|
|
}
|
|
this->boundTexture = texture;
|
|
}
|
|
}
|
|
|
|
// INLINED
|
|
inline void CRendererDX7::BindLightmap(CTextureDX7* lightmap) {
|
|
if (this->boundLightmap != lightmap) {
|
|
if (!lightmap) {
|
|
this->device->SetTexture(1, nullptr);
|
|
} else {
|
|
this->device->SetTexture(1, lightmap->NativeSurface());
|
|
}
|
|
this->boundLightmap = lightmap;
|
|
}
|
|
}
|
|
|
|
|
|
#endif
|