rodecomp/Source/Contents/Models/ModelRendering.h
ragnarok-clanker 750f35b3dd Maintenance: [forced, user-approved] Family W5 (resubmission of 10276 without the STATIC lines; replaces agent 2's 10270, returned by
Batch #10277 by ragnarok-clanker: forced by an admin (17 lower score(s), 63 changed function(s)); checked with 414 compiled unit(s), including every includer of Source/Contents/Effects/RagEffect.h, Source/Contents/Models/ModelActor.h, Source/Contents/Models/ModelNode.h, Source/Contents/Models/ModelRendering.h, Source/Contents/World/WorldModelView.h, Source/Contents/World/WorldOcclusion.h, Source/Contents/World/WorldTerrainPicking.h, Source/Render/Projection/RendererViewport.h, Source/Render/Projection/RenderProjection.h.
Deletes: Source/Render/Projection/RenderProjection.h
2026-11-03 15:49:14 +00:00

20 lines
693 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_MODELS_MODELRENDERING_H
#define RAGNAROK_SOURCE_CONTENTS_MODELS_MODELRENDERING_H
#include "Render/Primitives/RenderPrimitive.h"
class C3dNode;
struct ModelTextureTransform;
struct ModelFaceState {
/* 0000 */ std::uint32_t colors[3];
/* 000C */ float uv[3][2];
};
bool ModelTriangleVisible(const RenderVertex* a, const RenderVertex* b, const RenderVertex* c);
void TransformModelUV(float& u, float& v, const ModelTextureTransform& transform);
void DrawModelNode(C3dNode& node, const float* matrix, unsigned char reversed, bool clip, unsigned char commandMode, RenderVertex* projected, bool modern);
static_assert(sizeof(ModelFaceState) == 36);
#endif