rodecomp/Source/Render/DX7/RendererDX7Operations.h
ragnarok-clanker 6db58fa393 Maintenance: [forced, user-approved] R4: remove the invented IJL15Runtime (LoadLibraryA ijl15.dll + GetProcAddress table). The origin
Batch #10233 by ragnarok-clanker: forced by an admin (2 lower score(s), 3 changed function(s)); checked with 5 compiled unit(s), including every includer of Source/Resource/Bitmap/IJL15Runtime.h, Source/Render/DX7/RendererDX7Operations.h.
2026-11-03 10:24:09 +00:00

38 lines
1.3 KiB
C++

#ifndef RAGNAROK_SOURCE_RENDER_DX7_RENDERERDX7OPERATIONS_H
#define RAGNAROK_SOURCE_RENDER_DX7_RENDERERDX7OPERATIONS_H
#include <d3d.h>
#include <list>
#include <string>
class DeviceOwnerDX7;
struct RenderCommand;
struct LightmappedPrimitive;
struct RenderPrimitive;
class CTexture;
class CTextureDX7;
struct TextureDX7Context;
struct TextureBindingDX7;
struct RendererBackBuffer;
struct BitmapImage;
class ResourceMgr;
struct RendererDX7Operations {
DeviceOwnerDX7& owner;
IDirect3DDevice7* device;
void SetLighting(const float* direction, const float* diffuse, const float* ambient);
void ClearDepth(int clearColor);
void ClearWorld(unsigned color, int mode, unsigned char worldFlag, unsigned overlay);
void DrawPrimitive(RenderCommand* primitive);
void DrawLightmappedPrimitive(LightmappedPrimitive* primitive);
void SetTextureMode(int mode);
bool RenderToTexture(
int width, int height, const std::list<RenderPrimitive*>& primitives, CTexture*& texture, TextureDX7Context& context, TextureBindingDX7& binding
);
bool SaveBitmap(const char* filename, const BitmapImage& overlay, int width, int height, RendererBackBuffer& backBuffer);
bool SaveJpeg(const char* filename, const BitmapImage& overlay, int width, int height, RendererBackBuffer& backBuffer);
bool SaveLogo(std::string filename, ResourceMgr& resources);
};
#endif