Batch #12366 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_12590 UIRoMapWnd::DrawArrow: logic confirmed by peer review - fn_12594 UIRoMapWnd::DrawDashedArrow: logic confirmed by peer review Peer-reviewed-by: KWDev, cremane, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
25 lines
877 B
C++
25 lines
877 B
C++
#ifndef RAGNAROK_SOURCE_RENDER_SCREENGEOMETRY_H
|
|
#define RAGNAROK_SOURCE_RENDER_SCREENGEOMETRY_H
|
|
|
|
#include <cstdint>
|
|
|
|
class CTexture;
|
|
class RenderPrimitivePool;
|
|
struct RenderQueues;
|
|
|
|
struct ScreenPoint {
|
|
/* 0000 */ float x;
|
|
/* 0004 */ float y;
|
|
};
|
|
|
|
void DrawScreenQuad(
|
|
RenderPrimitivePool& primitives, RenderQueues& queues, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, CTexture* texture,
|
|
std::uint32_t color, bool depthAlpha, float depthStart, float depthEnd
|
|
);
|
|
void DrawScreenLine(
|
|
RenderPrimitivePool& primitives, RenderQueues& queues, float startX, float startY, float endX, float endY, int thickness, CTexture* texture,
|
|
std::uint32_t color, bool depthAlpha, float depthStart, float depthEnd
|
|
);
|
|
void DrawScreenQuad(ScreenPoint p0, ScreenPoint p1, ScreenPoint p2, ScreenPoint p3, CTexture* texture, std::uint32_t color);
|
|
|
|
#endif
|