Batch #10266 by ragnarok-clanker: forced by an admin (1 lower score(s), 12 changed function(s)); checked with 32 compiled unit(s), including every includer of Source/Render/DX7/DeviceOwnerDX7.h, Source/Render/DX7/TextureAllocationDX7.h, Source/Render/DX7/TextureDX7.h, Source/Render/DX9/RendererDX9.h, Source/Render/RendererDX7.h, Source/Render/DX7/RendererPresentationDX7.h, Source/Render/DX9/RendererPresentation.h. Deletes: Source/Render/DX7/RendererPresentationDX7.h, Source/Render/DX9/RendererPresentation.h
97 lines
2.5 KiB
C++
97 lines
2.5 KiB
C++
#include "Render/RendererDX7.h"
|
|
|
|
#include <timeapi.h>
|
|
|
|
// OFFSET: 0x00559420
|
|
// FUNCTION: fn_02065
|
|
CRendererDX7::CRendererDX7() {
|
|
this->frame = 0;
|
|
this->samples = 0;
|
|
this->time = timeGetTime();
|
|
this->rate = 0;
|
|
this->boundTexture = nullptr;
|
|
this->boundLightmap = nullptr;
|
|
this->fog.enabled = 0;
|
|
this->fog.supported = 0;
|
|
this->unknown_004C = 0;
|
|
|
|
RenderQueues& queues = this->queues;
|
|
if (queues.lightmapped.first.capacity() < 1000) {
|
|
queues.lightmapped.first.reserve(1000);
|
|
}
|
|
if (queues.queue_015C.capacity() < 1000) {
|
|
queues.queue_015C.reserve(1000);
|
|
}
|
|
if (queues.queue_0168.capacity() < 1000) {
|
|
queues.queue_0168.reserve(1000);
|
|
}
|
|
if (queues.queue_0174.capacity() < 1000) {
|
|
queues.queue_0174.reserve(1000);
|
|
}
|
|
if (queues.queue_0180.capacity() < 1000) {
|
|
queues.queue_0180.reserve(1000);
|
|
}
|
|
if (queues.queue_018C.capacity() < 1000) {
|
|
queues.queue_018C.reserve(1000);
|
|
}
|
|
if (queues.queue_0198.capacity() < 1000) {
|
|
queues.queue_0198.reserve(1000);
|
|
}
|
|
if (queues.queue_01A4.capacity() < 1000) {
|
|
queues.queue_01A4.reserve(1000);
|
|
}
|
|
if (queues.queue_01B0.capacity() < 1000) {
|
|
queues.queue_01B0.reserve(1000);
|
|
}
|
|
if (queues.queue_01BC.capacity() < 1000) {
|
|
queues.queue_01BC.reserve(1000);
|
|
}
|
|
if (queues.queue_01C8.capacity() < 1000) {
|
|
queues.queue_01C8.reserve(1000);
|
|
}
|
|
if (queues.queue_01D4.capacity() < 1000) {
|
|
queues.queue_01D4.reserve(1000);
|
|
}
|
|
if (queues.queue_01E0.capacity() < 1000) {
|
|
queues.queue_01E0.reserve(1000);
|
|
}
|
|
if (queues.queue_01EC.capacity() < 1000) {
|
|
queues.queue_01EC.reserve(1000);
|
|
}
|
|
if (queues.lightmapped.second.capacity() < 1000) {
|
|
queues.lightmapped.second.reserve(1000);
|
|
}
|
|
if (queues.queue_0210.capacity() < 1000) {
|
|
queues.queue_0210.reserve(1000);
|
|
}
|
|
if (queues.queue_021C.capacity() < 1000) {
|
|
queues.queue_021C.reserve(1000);
|
|
}
|
|
if (queues.queue_0228.capacity() < 1000) {
|
|
queues.queue_0228.reserve(1000);
|
|
}
|
|
if (queues.queue_0240.capacity() < 1000) {
|
|
queues.queue_0240.reserve(1000);
|
|
}
|
|
this->twoPass = 0;
|
|
if (queues.queue_0234.capacity() < 1000) {
|
|
queues.queue_0234.reserve(1000);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x0055EC00
|
|
// FUNCTION: fn_02113
|
|
void CRendererDX7::SetClearColor(unsigned color) {
|
|
this->clearColor = color;
|
|
}
|
|
|
|
// OFFSET: 0x0055ED40
|
|
// FUNCTION: fn_02115
|
|
void CRendererDX7::SetCamera(const float* eye, const float* target, const float* up) {
|
|
}
|
|
|
|
// OFFSET: 0x0055F690
|
|
// FUNCTION: fn_02117
|
|
void CRendererDX7::SetTextureFormat(unsigned format) {
|
|
this->unknown_024C = format;
|
|
}
|