29 lines
702 B
C++
29 lines
702 B
C++
#ifndef RAGNAROK_SOURCE_RENDER_RENDERERFOGDX7_H
|
|
#define RAGNAROK_SOURCE_RENDER_RENDERERFOGDX7_H
|
|
|
|
#include "Render/FogConfiguration.h"
|
|
|
|
#include <d3d.h>
|
|
|
|
class CRenderSystemBase;
|
|
|
|
HRESULT PerspectiveMatrixDX7(D3DMATRIX& matrix, float fov, float aspect, float nearPlane, float farPlane);
|
|
|
|
struct RendererFogDX7 {
|
|
int enabled;
|
|
int dirty;
|
|
int supported;
|
|
|
|
void Set(int value, IDirect3DDevice7* device, const D3DDEVICEDESC7& caps, FogConfiguration& configuration);
|
|
void Apply(
|
|
IDirect3DDevice7* device,
|
|
const D3DDEVICEDESC7& caps,
|
|
float aspect,
|
|
const FogConfiguration& configuration,
|
|
CRenderSystemBase* renderSystem
|
|
);
|
|
};
|
|
|
|
static_assert(sizeof(RendererFogDX7) == 12);
|
|
|
|
#endif
|