esp::assets::PTexMeshData class

Base classes

class BaseMesh
Base class for storing mesh asset data including geometry and topology.

Public types

struct MeshData
struct RenderingBuffer

Public static functions

static void parsePLY(const std::string& filename, MeshData& meshData)
static void calculateAdjacency(const MeshData& mesh, std::vector<uint32_t>& adjFaces)

Constructors, destructors, conversion operators

PTexMeshData()
~PTexMeshData() virtual

Public functions

void load(const std::string& meshFile, const std::string& atlasFolder)
auto tileSize() const -> uint32_t
auto meshes() const -> const std::vector<MeshData>&
auto atlasFolder() const -> std::string
void resize(size_t n)
auto getSize() -> int
auto getRenderingBuffer(int submeshID) -> RenderingBuffer*
void uploadBuffersToGPU(bool forceReload = false) override
auto getMagnumGLMesh(int submeshID) -> Magnum::GL::Mesh* override
auto exposure() const -> float
void setExposure(float val)
auto gamma() const -> float
void setGamma(float val)
auto saturation() const -> float
void setSaturation(float val)

Protected functions

void loadMeshData(const std::string& meshFile)

Protected variables

float splitSize_
uint32_t tileSize_
float exposure_
exposure, the amount of light per unit area reaching the image
float gamma_
gamma, the exponent applied in the gamma correction
float saturation_
saturation, the intensity of a color
std::string atlasFolder_
std::vector<MeshData> submeshes_
std::vector<std::unique_ptr<RenderingBuffer>> renderingBuffers_