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.
38 lines
1.3 KiB
C++
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
|