rodecomp/Source/Resource/Models/GrannyModelResource.h
ragnarok-clanker dc3d5ce1a5 Maintenance: Resubmission of 14942 (gate: three existing in-class helpers whose lines changed lacked an annotation; marked // INLINED
Batch #14943 by ragnarok-clanker: no function's compiled code changes; checked with 741 compiled unit(s), including every includer of Source/ActorPickNode.h, Source/Client/Browser/BrowserClientSite.h, Source/Client/Browser/BrowserPopupDispatch.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Mode/CMode.h, Source/Client/Mode/ModeDragState.h, Source/Client/Replay.h, Source/Client/Session.h, Source/Client/Stove/StoveMgr.h, Source/Contents/AchievementMgr.h, Source/Contents/ActorNameCard.h, Source/Contents/Actors/CharacterRender.h, Source/Contents/Actors/EffectActors.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/GrannyGameActor.h, Source/Contents/Actors/GroundScope.h, Source/Contents/Actors/Item.h, Source/Contents/Actors/Npc.h, Source/Contents/Actors/Pc.h, Source/Contents/Actors/RenderObjectState.h, Source/Contents/Actors/Skill.h, Source/Contents/AdventureGuideMgr.h, Source/Contents/Camera/Camera.h, Source/Contents/Camera/CameraState.h, Source/Contents/CashEmotionMgr.h, Source/Contents/Configuration/GameSettingsMgr.h, Source/Contents/EffectResourceSwitcher.h, Source/Contents/Effects/AMachineEffect.h, Source/Contents/Effects/AcidifiedThrow.h, Source/Contents/Effects/AxeBoomerang.h, Source/Contents/Effects/BlastForge.h, Source/Contents/Effects/CaneOfEvilEyeEffect.h, Source/Contents/Effects/CharacterParticleBundle.h, Source/Contents/Effects/CloudKillEffect.h, Source/Contents/Effects/Effect.h, Source/Contents/Effects/EffectActor.h, Source/Contents/Effects/EffectEmitter.h, Source/Contents/Effects/EffectMaker.h, Source/Contents/Effects/EffectPrimitiveState.h, Source/Contents/Effects/FuumaShouakuEffect.h, Source/Contents/Effects/GravityControlEffect.h, Source/Contents/Effects/HealSpEffect.h, Source/Contents/Effects/Level99Effect.h, Source/Contents/Effects/MapChainEffect.h, Source/Contents/Effects/MonsterSkillEffects.h, Source/Contents/Effects/MsgEffect.h, Source/Contents/Effects/NyanggrassEffect.h, Source/Contents/Effects/Particle.h, Source/Contents/Effects/PowderingEffect.h, Source/Contents/Effects/RagEffectState.h, Source/Contents/Effects/RectUpEffect.h, Source/Contents/Effects/ShadowExceedEffect.h, Source/Contents/Effects/SkillEffects.h, Source/Contents/Effects/SpriteParticle.h, Source/Contents/Effects/StormCannonEffect.h, Source/Contents/Effects/ThrowEffects.h, Source/Contents/EntryQueueMgr.h, Source/Contents/EquipmentResourceMgr.h, Source/Contents/FlyingShipRouteInfo.h, Source/Contents/Ground/GroundGeometry.h, Source/Contents/GuildInfo.h, Source/Contents/Items/ItemDescription.h, Source/Contents/Items/ItemInfo.h, Source/Contents/MapSkyMgr.h, Source/Contents/Messenger/MessengerWindows.h, Source/Contents/Models/ModelNode.h, Source/Contents/NavigationManager.h, Source/Contents/Party/AdventurerAgencyMgr.h, Source/Contents/RDamageVar.h, Source/Contents/RenewQuestMgr.h, Source/Contents/ReputeMgr.h, Source/Contents/RodexMailStore.h, Source/Contents/RouletteMgr.h, Source/Contents/Schedule/Schedule.h, Source/Contents/SignBoard/SignBoard.h, Source/Contents/Skills/ClientSkills.h, Source/Contents/Skills/PlayerSkillBundle.h, Source/Contents/Skills/SkillInfo.h, Source/Contents/SpriteLayerDrawing.h, Source/Contents/TipBoxTitles.h, Source/Contents/UserData/AccountLinkedUserDataMgr.h, Source/Contents/UserData/NormalItemSlots.h, Source/Contents/World/World.h, Source/Contents/WorldView/WorldViewData.h, Source/Render/Primitives/LightmappedPrimitive.h, Source/Render/Primitives/RenderPrimitive.h, Source/Render/Renderer.h, Source/Render/Textures/SpritePixels.h, Source/Render/Textures/Texture.h, Source/Resource/EZeffectResource.h, Source/Resource/Models/AnimatedModelResource.h, Source/Resource/Models/GrannyModelResource.h, Source/Resource/Sprites/ActionResource.h, Source/Resource/World/GroundResource.h, Source/Resource/World/WorldResource.h, Source/Resource/XmlNode.h, Source/UI/AdventureGuide/UIAdventureGuide.h, Source/UI/Buttons/UIBmpRadioBtn.h, Source/UI/Buttons/UIDescriptRace.h, Source/UI/Buttons/UIItemTagButton.h, Source/UI/Buttons/UISlotBmpButton.h, Source/UI/Buttons/UISpriteButton.h, Source/UI/Buttons/UITVTextButton.h, Source/UI/Buttons/UITextureButton.h, Source/UI/CashEmotion/UICashEmotionListWnd.h, Source/UI/CashEmotion/UICashEmotionPack.h, Source/UI/CashShop/UICashShopWnd.h, Source/UI/Chat/UIChatRoomMakeWnd.h, Source/UI/Chat/UIChatRoomTitle.h, Source/UI/Chat/UINewChatWnd.h, Source/UI/Chat/UISubChatHisWnd.h, Source/UI/Chat/UISubChatMiniWnd.h, Source/UI/Chat/UIWhisperWnd.h, Source/UI/Clan/UIClanWnd.h, Source/UI/Dialogs/UIBookWnd.h, Source/UI/Dialogs/UIChooseWarpWnd.h, Source/UI/Dialogs/UIMenuWnd.h, Source/UI/Dialogs/UIMiniMapWnd.h, Source/UI/Dialogs/UIMinimapZoomWnd.h, Source/UI/Dialogs/UINpcEditDialogWnd.h, Source/UI/Dialogs/UIPasswordWnd.h, Source/UI/Dialogs/UISayDialogWnd.h, Source/UI/Dialogs/UISelectCartWnd.h, Source/UI/Dialogs/UITipboxWnd.h, Source/UI/Edit/UIEditBoxEx.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Edit/UIEditCtrl_Currency.h, Source/UI/Edit/UIItemTagCtrl.h, Source/UI/Enchant/EnchantUI.h, Source/UI/Exchange/UIExchangeUI.h, Source/UI/FrameSkin.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/Gauges/UIPcGage.h, Source/UI/Guild/UIGuildHelperWnd.h, Source/UI/Guild/UIGuildWnd.h, Source/UI/Guild/UIGuild_Storage_Log.h, Source/UI/Item/UIEquipmentPropertiesWnd.h, Source/UI/Item/UIItemBaseWnd.h, Source/UI/Item/UIItemPurchaseWnd.h, Source/UI/Item/UIItemSellWnd2.h, Source/UI/Item/UIItemShopWnd.h, Source/UI/Item/UIItemShopWnd2.h, Source/UI/Item/UIItemStoreFindWnd.h, Source/UI/Item/UIItemStoreSubWnd.h, Source/UI/Item/UIItemStoreWnd.h, Source/UI/Item/UIItemWnd.h, Source/UI/Item/UIMerchantItemLogWnd.h, Source/UI/Item/UIParaItemShopWnd.h, Source/UI/Items/UICardItemIllustWnd.h, Source/UI/Items/UIEquipWnd.h, Source/UI/Items/UIExchangeWnd.h, Source/UI/Items/UIGameItem.h, Source/UI/Items/UIItemCollectionWnd.h, Source/UI/Items/UIItemIdentifyWnd.h, Source/UI/Items/UIItemParamChangeDisplayWnd.h, Source/UI/Items/UISwapEquipmentWnd.h, Source/UI/Layout/WindowGeometry.h, Source/UI/Lists/UIChatHisBox.h, Source/UI/Lists/UIComboBoxV2Wnd.h, Source/UI/Lists/UIImgMenu.h, Source/UI/Lists/UIListBoxID.h, Source/UI/Lists/UIListBoxTemplate.h, Source/UI/Lists/UIMemberListBox.h, Source/UI/Lists/UITabControl.h, Source/UI/Lists/UITagListBox.h, Source/UI/Lists/UITreeView.h, Source/UI/Menu/UIMenuIconWnd.h, Source/UI/Navigation/UINavigationV4Wnd.h, Source/UI/ProbabilityTable/UIProbabilityTable.h, Source/UI/Quest/UIQuestDisplay.h, Source/UI/Quest/UIRenewQuestUI.h, Source/UI/Quest/UIRenewQuestWnd.h, Source/UI/Rodex/UIRodexComposeWnd.h, Source/UI/Rodex/UIRodexInboxWnd.h, Source/UI/RuneSystem/UIRuneSystemWindows.h, Source/UI/RuneSystem/UIRuneSystemWnd.h, Source/UI/Shop/UIMerchantItemMyShopWnd.h, Source/UI/Shop/UIMerchantItemPurchaseMSGWnd.h, Source/UI/Shop/UIMerchantItemPurchaseWnd.h, Source/UI/Shop/UIMerchantItemShopWnd.h, Source/UI/Shop/UIMerchantMirrorItemWnd.h, Source/UI/Shop/UIMerchantShopMakeWnd.h, Source/UI/Shop/UIMerchantShopTitle.h, Source/UI/Skill/UISkillDescribeWnd.h, Source/UI/Skill/UISkillListWnd.h, Source/UI/SkillDelayInfo/SkillDelayInfo.h, Source/UI/StylingShop/UIStylingShopWnd.h, Source/UI/Text/CreateLineInfo.h, Source/UI/Text/UIAchWnd.h, Source/UI/Text/UIBalloonText.h, Source/UI/Text/UINameBalloonText.h, Source/UI/Text/UIStaticTextControl.h, Source/UI/Text/UIString.h, Source/UI/Text/UITextViewerControl.h, Source/UI/UIBarGraph.h, Source/UI/UIBartermarketWnd.h, Source/UI/UIChangeMaterialWnd.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/UILapineScrollBar.h, Source/UI/UIMacroBlackListCheckWnd.h, Source/UI/UIMacroDetectorWnd.h, Source/UI/UIMacroReport.h, Source/UI/UIMacroUserInfoWnd.h, Source/UI/UIPreviewEquipWnd.h, Source/UI/UIRefiningWnd.h, Source/UI/UIScrollWnd.h, Source/UI/UISlotBitmap.h, Source/UI/Window/FuncDrawWNDChar.h, Source/UI/Window/UIBattleMsgOptionWnd.h, Source/UI/Window/UIChatRoomWnd.h, Source/UI/Window/UICollectionSystemWnd.h, Source/UI/Window/UIControl.h, Source/UI/Window/UIHomunInfoWnd.h, Source/UI/Window/UIHotKeyWnd.h, Source/UI/Window/UIJobListWnd.h, Source/UI/Window/UILoginOTPWnd.h, Source/UI/Window/UILoginWnd.h, Source/UI/Window/UIMakeCharWnd.h, Source/UI/Window/UIMonsterDisplayWnd.h, Source/UI/Window/UIMonsterInfoWnd.h, Source/UI/Window/UINavigationHelpWnd.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UINewMakeCharWnd.h, Source/UI/Window/UINewSelectCharWnd.h, Source/UI/Window/UINoticeWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIRegisterMgr.h, Source/UI/Window/UIRoMapWnd.h, Source/UI/Window/UIRodexContentsWnd.h, Source/UI/Window/UISecondCostumeWnd.h, Source/UI/Window/UISeekPartyMBWnd.h, Source/UI/Window/UISeekPartyWnd.h, Source/UI/Window/UISelCharForUServerWnd.h, Source/UI/Window/UISerachStoreInfoWnd.h, Source/UI/Window/UITransMenuWnd.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/UIWindowMgr.inl, Source/Utility/Lexicon/LexiconSerializer.h.
2026-11-08 16:44:36 +00:00

294 lines
13 KiB
C++

#ifndef RAGNAROK_SOURCE_RESOURCE_MODELS_GRANNYMODELRESOURCE_H
#define RAGNAROK_SOURCE_RESOURCE_MODELS_GRANNYMODELRESOURCE_H
#include "Resource/Models/ModelResource.h"
#include "Utility/Math/AffineMatrix.h"
#include <cstddef>
#include <cstdint>
#include <windows.h>
class CTexture;
struct granny_animation;
struct granny_control;
struct granny_file;
struct granny_local_pose;
struct granny_material;
struct granny_mesh_binding;
struct granny_mesh_deformer;
struct granny_model_instance;
struct granny_world_pose;
struct granny_data_type_definition {
/* 0000 */ std::int32_t type;
/* 0004 */ const char* name;
/* 0008 */ granny_data_type_definition* referenceType;
/* 000C */ std::int32_t arrayWidth;
/* 0010 */ std::int32_t extra[3];
/* 001C */ std::uint32_t ignored;
};
struct granny_pixel_layout {
/* 0000 */ std::int32_t bytesPerPixel;
/* 0004 */ std::int32_t shiftForComponent[4];
/* 0014 */ std::int32_t bitsForComponent[4];
};
struct granny_texture {
/* 0000 */ const char* fromFileName;
/* 0004 */ std::int32_t textureType;
/* 0008 */ std::int32_t width;
/* 000C */ std::int32_t height;
/* 0010 */ std::int32_t encoding;
/* 0014 */ std::int32_t subFormat;
/* 0018 */ granny_pixel_layout layout;
/* 003C */ std::int32_t imageCount;
};
struct granny_skeleton {
/* 0000 */ const char* name;
/* 0004 */ std::int32_t boneCount;
};
struct granny_material_binding {
/* 0000 */ granny_material* material;
};
struct granny_mesh {
/* 0000 */ const char* name;
/* 0004 */ unsigned char unknown_0004[0x10];
/* 0014 */ std::int32_t materialBindingCount;
/* 0018 */ granny_material_binding* materialBindings;
};
struct granny_model_mesh_binding {
/* 0000 */ granny_mesh* mesh;
};
struct granny_model {
/* 0000 */ const char* name;
/* 0004 */ granny_skeleton* skeleton;
/* 0008 */ unsigned char unknown_0008[0x44];
/* 004C */ std::int32_t meshBindingCount;
/* 0050 */ granny_model_mesh_binding* meshBindings;
};
struct granny_file_info {
/* 0000 */ unsigned char unknown_0000[0x10];
/* 0010 */ std::int32_t textureCount;
/* 0014 */ granny_texture** textures;
/* 0018 */ unsigned char unknown_0018[8];
/* 0020 */ std::int32_t skeletonCount;
/* 0024 */ granny_skeleton** skeletons;
/* 0028 */ unsigned char unknown_0028[0x18];
/* 0040 */ std::int32_t modelCount;
/* 0044 */ granny_model** models;
/* 0048 */ unsigned char unknown_0048[8];
/* 0050 */ std::int32_t animationCount;
/* 0054 */ granny_animation** animations;
};
struct granny_tri_material_group {
/* 0000 */ std::int32_t materialIndex;
/* 0004 */ std::int32_t triFirst;
/* 0008 */ std::int32_t triCount;
};
struct GrannyPNT332Vertex {
/* 0000 */ float position[3];
/* 000C */ float normal[3];
/* 0018 */ float uv[2];
};
struct granny_system_clock {
/* 0000 */ std::uint32_t data[4];
};
extern "C" {
__declspec(dllimport) extern const granny_pixel_layout* GrannyRGBA8888PixelFormat;
__declspec(dllimport) extern granny_data_type_definition* GrannyPNT332VertexType;
__declspec(dllimport) void WINAPI GrannySetControlActive(granny_control* control, bool active);
__declspec(dllimport) void WINAPI GrannyFreeControl(granny_control* control);
__declspec(dllimport) bool WINAPI GrannyTextureHasAlpha(const granny_texture* texture);
__declspec(dllimport) void WINAPI GrannyCopyTextureImage(
const granny_texture* texture, std::int32_t imageIndex, std::int32_t mipIndex, const granny_pixel_layout* layout, std::int32_t destWidth,
std::int32_t destHeight, std::int32_t destStride, void* pixels
);
__declspec(dllimport) granny_model_instance* WINAPI GrannyInstantiateModel(const granny_model* model);
__declspec(dllimport) granny_world_pose* WINAPI GrannyNewWorldPose(std::int32_t boneCount);
__declspec(dllimport) granny_skeleton* WINAPI GrannyGetSourceSkeleton(const granny_model_instance* instance);
__declspec(dllimport) granny_mesh_binding* WINAPI GrannyNewMeshBinding(const granny_mesh* mesh, const granny_skeleton* from, const granny_skeleton* to);
__declspec(dllimport) void WINAPI GrannyFreeMeshBinding(granny_mesh_binding* binding);
__declspec(dllimport) std::int32_t WINAPI GrannyGetMeshIndexCount(const granny_mesh* mesh);
__declspec(dllimport) void WINAPI GrannyCopyMeshIndices(const granny_mesh* mesh, std::int32_t bytesPerIndex, void* indices);
__declspec(dllimport) std::int32_t WINAPI GrannyGetMeshVertexCount(const granny_mesh* mesh);
__declspec(dllimport) bool WINAPI GrannyMeshIsRigid(const granny_mesh* mesh);
__declspec(dllimport) granny_data_type_definition* WINAPI GrannyGetMeshVertexType(const granny_mesh* mesh);
__declspec(dllimport) granny_mesh_deformer* WINAPI GrannyNewMeshDeformer(
const granny_data_type_definition* inputLayout, const granny_data_type_definition* outputLayout, std::int32_t deformationType
);
__declspec(dllimport) void WINAPI GrannyCopyMeshVertices(const granny_mesh* mesh, const granny_data_type_definition* vertexType, void* vertices);
__declspec(dllimport) granny_texture* WINAPI GrannyGetMaterialTextureByType(const granny_material* material, std::int32_t type);
__declspec(dllimport) bool WINAPI GrannyVersionsMatch_(std::int32_t major, std::int32_t minor, std::int32_t customization, std::int32_t build);
__declspec(dllimport) granny_file* WINAPI GrannyReadEntireFileFromMemory(std::int32_t size, void* memory);
__declspec(dllimport) granny_file_info* WINAPI GrannyGetFileInfo(granny_file* file);
__declspec(dllimport) void WINAPI GrannyFreeFileSection(granny_file* file, std::int32_t section);
__declspec(dllimport) granny_local_pose* WINAPI GrannyNewLocalPose(std::int32_t boneCount);
__declspec(dllimport) void WINAPI GrannyFreeMeshDeformer(granny_mesh_deformer* deformer);
__declspec(dllimport) void WINAPI GrannyFreeModelInstance(granny_model_instance* instance);
__declspec(dllimport) granny_system_clock WINAPI GrannyGetSystemSeconds();
__declspec(dllimport) float WINAPI GrannyGetSecondsElapsed(const granny_system_clock* start, const granny_system_clock* end);
__declspec(dllimport) float WINAPI GrannyGetControlDurationLeft(granny_control* control);
__declspec(dllimport) void WINAPI GrannyFreeWorldPose(granny_world_pose* pose);
__declspec(dllimport) const float* WINAPI GrannyControlModelsNext(const granny_world_pose* pose);
__declspec(dllimport) const std::int32_t* WINAPI GrannyGetMeshBindingToBoneIndices(const granny_mesh_binding* binding);
__declspec(dllimport) const granny_tri_material_group* WINAPI GrannyGetMeshTriangleGroups(const granny_mesh* mesh);
__declspec(dllimport) const float* WINAPI GrannyGetWorldPoseComposite4x4(const granny_world_pose* pose, std::int32_t bone);
__declspec(dllimport) const void* WINAPI GrannyGetMeshVertices(const granny_mesh* mesh);
__declspec(dllimport) void WINAPI GrannyDeformVertices(
const granny_mesh_deformer* deformer, const std::int32_t* boneIndices, const float* matrices, std::int32_t vertexCount, const void* source,
void* destination
);
__declspec(dllimport) std::int32_t WINAPI GrannyGetMeshBytesPerIndex(const granny_mesh* mesh);
__declspec(dllimport) const void* WINAPI GrannyGetMeshIndices(const granny_mesh* mesh);
__declspec(dllimport) void WINAPI GrannySetModelClock(granny_model_instance* instance, float seconds);
__declspec(dllimport) void WINAPI GrannySampleModelAnimations(granny_model_instance* instance, std::int32_t firstBone, std::int32_t boneCount, granny_local_pose* pose);
__declspec(dllimport) void WINAPI GrannyBuildWorldPose(
const granny_skeleton* skeleton, std::int32_t firstBone, std::int32_t boneCount, const granny_local_pose* localPose, const float* offset,
granny_world_pose* worldPose
);
__declspec(dllimport) void WINAPI GrannyFreeCompletedModelControls(granny_model_instance* instance);
__declspec(dllimport) granny_control* WINAPI GrannyPlayControlledAnimation(float startTime, const granny_animation* animation, granny_model_instance* instance);
__declspec(dllimport) void WINAPI GrannySetControlLoopCount(granny_control* control, std::int32_t loopCount);
__declspec(dllimport) void WINAPI GrannyFreeLocalPose(granny_local_pose* pose);
__declspec(dllimport) void WINAPI GrannyFreeFile(granny_file* file);
}
struct GrannyTextureEntry {
/* 0000 */ const char* name;
/* 0004 */ CTexture* texture;
};
struct GrannyMeshEntry {
/* 0000 */ granny_mesh* mesh;
/* 0004 */ granny_mesh_binding* binding;
/* 0008 */ granny_mesh_deformer* deformer;
/* 000C */ std::uint16_t* indices;
/* 0010 */ unsigned char* vertices;
/* 0014 */ int materialCount;
/* 0018 */ GrannyTextureEntry** textures;
};
struct GrannyModelInstance {
/* 0000 */ granny_model_instance* instance;
/* 0004 */ granny_world_pose* worldPose;
/* 0008 */ int meshCount;
/* 000C */ GrannyMeshEntry* meshes;
};
class GrannyAnimationLibrary {
public:
~GrannyAnimationLibrary();
bool Load(const char* name, int job, int action);
void Initialize();
void FreeInstance();
granny_file* ReadAnimationFile(const char* name, const char* suffix);
/* 0000 */ float animationDuration;
/* 0004 */ unsigned char unknown_0004[0x14C];
/* 0150 */ granny_file* file;
/* 0154 */ int textureCount;
/* 0158 */ GrannyTextureEntry* textures;
/* 015C */ int modelCount;
/* 0160 */ GrannyModelInstance* instance;
/* 0164 */ int maxBoneCount;
/* 0168 */ granny_local_pose* localPose;
/* 016C */ int deformBufferSize;
/* 0170 */ int animationMode;
/* 0174 */ unsigned char unknown_0174[8];
/* 017C */ char fileName[MAX_PATH];
/* 0280 */ granny_animation* animations[100][20];
};
struct GrannyHairPivot {
/* 0000 */ int unknown_0000;
/* 0004 */ int mesh;
/* 0008 */ matrix transform;
};
class C3dGrannyModelRes : public CRes {
public:
C3dGrannyModelRes();
C3dGrannyModelRes(const char* extension, const char* prefix);
C3dGrannyModelRes* Create() override;
void Unload() override;
bool Load(const char* name) override;
void RebindMeshes(const C3dGrannyModelRes& target);
void InstantiateModel(GrannyModelInstance* target, const granny_model* model);
CTexture* CreateTexture(const granny_texture* texture, int option);
void FreeControl(granny_control* control);
granny_control* PlayAnimation(unsigned action, granny_model_instance* instance, granny_control* control, int loopCount);
bool ProjectBounds(float* rect, const matrix& view, const matrix& world, const float* eye) const;
int GetTriangleCount(int mesh) const;
unsigned char* GetRigidVertices(int mesh) const;
const void* GetMeshRenderData(
int mesh, CTexture** texture, std::uint16_t** indices, int* triangleCount, matrix* transform, granny_world_pose* pose
);
const void* GetMeshRenderData(
GrannyModelInstance* model, int mesh, CTexture** texture, std::uint16_t** indices, int* triangleCount, matrix* transform,
granny_world_pose* pose
);
bool FindHairPivot();
void Release();
granny_world_pose* Animate(float seconds, granny_model_instance* instance);
/* 0110 */ float animationDuration;
/* 0114 */ unsigned char unknown_0114[0x14C];
/* 0260 */ granny_file* file;
/* 0264 */ int textureCount;
/* 0268 */ GrannyTextureEntry* textures;
/* 026C */ int modelCount;
/* 0270 */ GrannyModelInstance* instance;
/* 0274 */ int maxBoneCount;
/* 0278 */ void* localPose;
/* 027C */ int deformBufferSize;
/* 0280 */ int animationMode;
/* 0284 */ int unknown_0284;
/* 0288 */ void* deformBuffer;
/* 028C */ char fileName[MAX_PATH];
/* 0390 */ const granny_model* model;
/* 0394 */ float position[3];
/* 03A0 */ float baseHeight;
/* 03A4 */ float topHeight;
/* 03A8 */ GrannyAnimationLibrary* animations;
/* 03AC */ unsigned job;
/* 03B0 */ GrannyHairPivot* hairPivot;
/* 03B4 */ granny_skeleton* skeleton;
};
extern GrannyAnimationLibrary g_grannyAnimationLibrary;
#if defined(_WIN32) && !defined(_WIN64)
static_assert(offsetof(granny_texture, imageCount) == 0x3C);
static_assert(offsetof(granny_file_info, skeletons) == 0x24);
static_assert(offsetof(granny_texture, width) == 0x08);
static_assert(offsetof(granny_mesh, materialBindings) == 0x18);
static_assert(offsetof(granny_model, meshBindingCount) == 0x4C);
static_assert(sizeof(GrannyMeshEntry) == 0x1C);
static_assert(sizeof(GrannyModelInstance) == 0x10);
static_assert(offsetof(C3dGrannyModelRes, file) == 0x260);
static_assert(offsetof(C3dGrannyModelRes, fileName) == 0x28C);
static_assert(offsetof(C3dGrannyModelRes, model) == 0x390);
static_assert(offsetof(C3dGrannyModelRes, skeleton) == 0x3B4);
static_assert(offsetof(C3dGrannyModelRes, deformBuffer) == 0x288);
static_assert(offsetof(C3dGrannyModelRes, hairPivot) == 0x3B0);
static_assert(offsetof(granny_file_info, models) == 0x44);
static_assert(offsetof(granny_file_info, animations) == 0x54);
static_assert(offsetof(GrannyAnimationLibrary, file) == 0x150);
static_assert(offsetof(GrannyAnimationLibrary, fileName) == 0x17C);
static_assert(offsetof(GrannyAnimationLibrary, animations) == 0x280);
#endif
#endif