mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-22 22:00:26 +01:00
Document readVec3DF and getScale
This commit is contained in:
parent
fd41ee02df
commit
22f6012d2e
@ -208,7 +208,7 @@ core::vector2df CGLTFMeshFileLoader::ModelParser::readVec2DF(
|
|||||||
|
|
||||||
core::vector3df CGLTFMeshFileLoader::ModelParser::readVec3DF(
|
core::vector3df CGLTFMeshFileLoader::ModelParser::readVec3DF(
|
||||||
const BufferOffset& readFrom,
|
const BufferOffset& readFrom,
|
||||||
const float scale = 1.0f)
|
const float scale)
|
||||||
{
|
{
|
||||||
return core::vector3df(
|
return core::vector3df(
|
||||||
scale * readPrimitive<float>(readFrom),
|
scale * readPrimitive<float>(readFrom),
|
||||||
|
@ -83,9 +83,13 @@ private:
|
|||||||
static core::vector2df readVec2DF(
|
static core::vector2df readVec2DF(
|
||||||
const BufferOffset& readFrom);
|
const BufferOffset& readFrom);
|
||||||
|
|
||||||
|
/* Read a vec3df from a buffer with transformations applied.
|
||||||
|
*
|
||||||
|
* Values are returned in Irrlicht coordinates.
|
||||||
|
*/
|
||||||
static core::vector3df readVec3DF(
|
static core::vector3df readVec3DF(
|
||||||
const BufferOffset& readFrom,
|
const BufferOffset& readFrom,
|
||||||
const float scale);
|
const float scale = 1.0f);
|
||||||
|
|
||||||
void copyPositions(const Span<video::S3DVertex> vertices,
|
void copyPositions(const Span<video::S3DVertex> vertices,
|
||||||
const std::size_t accessorId) const;
|
const std::size_t accessorId) const;
|
||||||
@ -96,6 +100,10 @@ private:
|
|||||||
void copyTCoords(const Span<video::S3DVertex> vertices,
|
void copyTCoords(const Span<video::S3DVertex> vertices,
|
||||||
const std::size_t accessorId) const;
|
const std::size_t accessorId) const;
|
||||||
|
|
||||||
|
/* Get the scale factor from the glTF mesh information.
|
||||||
|
*
|
||||||
|
* Returns 1.0f if no scale factor is present.
|
||||||
|
*/
|
||||||
float getScale() const;
|
float getScale() const;
|
||||||
|
|
||||||
std::size_t getElemCount(const std::size_t accessorIdx) const;
|
std::size_t getElemCount(const std::size_t accessorIdx) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user