LeviLamina
Loading...
Searching...
No Matches
ModelPart Class Reference

Classes

struct  TextureMesh

Public Member Functions

ModelPartoperator= (ModelPart const &)
 ModelPart (ModelPart const &)
MCAPI ModelPart (::ModelPart &&rhs)
MCAPI ModelPart (int xTexOffs, int yTexOffs, int texWidth, int texHeight)
MCAPI void _adjustUVsInward (::std::vector<::Vec2 > &uvs, ::std::vector<::std::array<::Geometry::NodeVertex, 3 > > const &tris, ::std::vector<::std::array<::Geometry::NodeVertex, 4 > > const &quads, ::Vec2 const &textureSize)
MCAPI void _copyBoneMatricesToSkinnedMeshes (::RenderParams &renderParams, ::gsl::span<::BoneOrientation const > boneOrientations, ::RenderController const *renderControllerId, ::DataDrivenGeometry &geo, bool deferred)
MCAPI void addBox (::Vec3 const &point0, ::Vec3 const &extents, bool mirror, float g, ::mce::Color const &color)
MCAPI::ModelPart & addBoxMapTex (::Vec3 const &point0, ::Vec3 const &extents, ::TextureOffset const &inTexOffset, bool mirror, float g)
MCAPI void assignPartToGroup (::Model &model, bool forceToUniqueGroup)
MCAPI void assignPartToGroup (::Model &model, bool forceToUniqueGroup, ::DataDrivenGeometry *owningGeometry)
MCAPI void compileCubes (::Tessellator &tessellator)
MCAPI void compileQuads (::MinecraftGameplayGraphicsResources &gameplayResources, ::Tessellator &tessellator)
MCAPI void compileTris (::Tessellator &tessellator)
MCAPI void copyBoneMatricesToActor (::RenderParams &renderParams, ::gsl::span<::BoneOrientation const > boneOrientations, ::RenderController const *renderControllerId, ::DataDrivenGeometry &geo)
MCAPI void expandAABB (::AABB &bb) const
MCAPI void generateBoneTransformMatrices (::RenderParams &renderParams, ::gsl::span<::BoneOrientation > boneOrientations, ::RenderController const *renderControllerId, ::Matrix boneToEntitySpaceMatrix)
MCAPI void getPolyCounts (int &triVertexCount, int &quadVertexCount)
MCAPI bool isVisible (::RenderParams &renderParams, ::RenderController const *renderControllerId) const
MCAPI bool load (::GeometryPtr source, ::std::string_view nodeName, ::ModelPart *parentPart)
MCAPI bool load (::std::shared_ptr<::ActorResourceDefinition > resourceDefinition, ::GeometryPtr source, ::std::string_view nodeName, ::ModelPart *parentPart)
MCAPI void loadBoxes (::Vec3 const &newPivot, ::Vec3 const &offset, ::std::vector<::Geometry::Box > const &boxes, ::Vec3 const &bindPoseRotation)
MCAPI void loadPolyMesh (::Vec3 const &newPivot, ::Vec3 const &bindPoseRotation, ::Geometry::NodePolyMesh const &sourceMesh)
MCAPI void loadTextureMeshes (::std::shared_ptr<::ActorResourceDefinition > resourceDefinition, ::Vec3 const &newPivot, ::Vec3 const &, ::std::vector<::Geometry::NodeTextureMesh > const &sourceTextureMeshes)
MCAPI bool loadWithOrientation (::std::shared_ptr<::ActorResourceDefinition > resourceDefinition, ::GeometryPtr source, ::std::string_view nodeName, ::Vec3 const &basePos, ::Vec3 const &pivot, ::ModelPart *parentPart)
MCAPI bool loadWithOrientation_ (::GeometryPtr source, ::std::string_view nodeName, ::Vec3 const &basePos, ::Vec3 const &pivot, ::ModelPart *parentPart)
MCAPI uint64 numCubes () const
MCAPI::ModelPart & operator= (::ModelPart &&rhs)
MCAPI void render (::ScreenContext &screenContext, ::Model &model, float scale, bool hideParentBodyPart, uint count, ::Matrix boneToEntitySpaceMatrix)
MCAPI void renderAtPosition (::ScreenContext &screenContext, ::Model &model, ::Vec3 const &position, float scale, bool hideParentBodyPart, uint count, ::Matrix boneToEntitySpaceMatrix)
MCAPI void setModelPartMaterial (::mce::MaterialPtr const &mat, ::RenderController const *renderControllerId)
MCAPI void translateTo (::Matrix &mv, float scale)
MCAPI void * $ctor (::ModelPart &&rhs)
MCAPI void * $ctor (int xTexOffs, int yTexOffs, int texWidth, int texHeight)
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 8, 48, ::HashedStringmName
::ll::TypedStorage< 4, 12, ::Vec3mPos
::ll::TypedStorage< 4, 12, ::Vec3mOffset
::ll::TypedStorage< 4, 12, ::Vec3mRot
::ll::TypedStorage< 4, 12, ::Vec3mScale
::ll::TypedStorage< 4, 12, ::Vec3mWorldPos
::ll::TypedStorage< 4, 24, ::AABBmAABB
::ll::TypedStorage< 4, 4, int > mGroupIndex
::ll::TypedStorage< 4, 4, int > mPartIndex
::ll::TypedStorage< 4, 4, int > mMeshIndex
::ll::TypedStorage< 4, 4, int > mBoneOrientationIndex
::ll::TypedStorage< 8, 24, ::std::vector<::ModelPartLocator > > mLocators
::ll::TypedStorage< 8, 16, ::ExpressionNodemBinding
::ll::TypedStorage< 1, 1, ::BoneAnimationRelativeMode > mRotationRelativeMode
::ll::TypedStorage< 1, 1, bool > mDebug
::ll::TypedStorage< 4, 4, int const > IndexNotSet
::ll::TypedStorage< 1, 1, bool > mMirror
::ll::TypedStorage< 1, 1, bool > mVisible
::ll::TypedStorage< 4, 4, int > mSkinnedMeshGroupIdentifier
::ll::TypedStorage< 8, 24, ::std::vector<::Cube > > mCubes
::ll::TypedStorage< 8, 24, ::std::vector<::ModelPart::TextureMesh > > mTextureMeshes
::ll::TypedStorage< 8, 128, ::Geometry::NodePolyMeshmPolyMesh
::ll::TypedStorage< 8, 8, ::ModelPart * > mParent
::ll::TypedStorage< 8, 24, ::std::vector<::ModelPart * > > mChildren
::ll::TypedStorage< 4, 8, ::Vec2mTexSize
::ll::TypedStorage< 8, 16, ::TextureOffsetmTexOffs
::ll::TypedStorage< 1, 1, bool > mNeverRender
::ll::TypedStorage< 4, 12, ::Vec3mOriginPos
::ll::TypedStorage< 1, 1, bool > mHasColor
::ll::TypedStorage< 1, 1, bool > mMaterialExpressionsNeedColorVertexFormatField
::ll::TypedStorage< 8, 48, ::brstd::flat_map< ::RenderController const *, ::ExpressionNode, ::std::less<::RenderController const * >, ::std::vector<::RenderController const * >, ::std::vector<::ExpressionNode > > > mIsVisibleMap
::ll::TypedStorage< 8, 64, ::std::unordered_map<::RenderController const *, ::ExpressionNode > > mMaterialExpressionMap

The documentation for this class was generated from the following files: