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
20 lines
693 B
C++
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
|