rodecomp/Source/Render/SpriteQuad.h
ragnarok-clanker fdbebbba25 Maintenance: Second pass on unknown_XXXX members: 140 more renamed (61 files), named from the original binary (accesses at this+offse
Batch #14947 by ragnarok-clanker: no function's compiled code changes; checked with 596 compiled unit(s), including every includer of Source/Client/Input/Language.h, Source/Client/Input/LanguageTC.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Mode/EquipWindowLook.h, Source/Client/Session.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/GraffiSkill.h, Source/Contents/Actors/GrannyGameActor.h, Source/Contents/Actors/Pc.h, Source/Contents/Camera/Camera.h, Source/Contents/Effects/EffectEmitter.h, Source/Contents/Effects/EffectPrimitiveState.h, Source/Contents/FlyingShipRouteInfo.h, Source/Contents/Ground/GroundGeometry.h, Source/Contents/Ground/GroundSpatial.h, Source/Contents/Items/ItemInfo.h, Source/Render/SpriteQuad.h, Source/Resource/EZeffectResource.h, Source/Resource/Models/AnimatedModelResource.h, Source/Resource/Models/GrannyModelResource.h, Source/Resource/Models/ModelMesh.h, Source/Resource/World/WorldResource.h, Source/UI/Dialogs/UIChooseWnd.h, Source/UI/Items/UISpellListWnd.h, Source/UI/Lists/UIListBoxTemplate.h, Source/UI/MiniPartyGrid.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/Text/UIAchWnd.h, Source/UI/Window/UIMonsterInfoWnd.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UINewMakeCharWnd.h, Source/UI/Window/UITalkboxTrapInputWnd.h, Source/UI/Window/UIWindowMgr.h.
2026-11-08 18:16:10 +00:00

33 lines
909 B
C++

#ifndef RAGNAROK_SOURCE_RENDER_SPRITEQUAD_H
#define RAGNAROK_SOURCE_RENDER_SPRITEQUAD_H
#include <cstddef>
#include <cstdint>
class CRenderSystemBase;
struct RenderPrimitive;
struct SpriteRleImage;
struct SpriteQuad {
/* 0000 */ float top;
/* 0004 */ float left;
/* 0008 */ float bottom;
/* 000C */ float right;
/* 0010 */ float bottomRhw;
/* 0014 */ float topRhw;
/* 0018 */ std::uint32_t color;
/* 001C */ float angle;
/* 0020 */ std::int32_t cacheTextureIndex;
/* 0024 */ std::int32_t u;
/* 0028 */ std::int32_t v;
/* 002C */ const SpriteRleImage* image;
};
RenderPrimitive* BuildSpriteQuad(CRenderSystemBase& system, const SpriteQuad& quad, const std::uint32_t* palette, int blend, float offsetX, float offsetY);
#if defined(_WIN32) && !defined(_WIN64)
static_assert(offsetof(SpriteQuad, angle) == 0x001C);
static_assert(offsetof(SpriteQuad, image) == 0x002C);
#endif
#endif