Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::ArticulatedModel::ScaleAndOffsetTexCoordCallback Class Reference

Inherits G3D::ArticulatedModel::MeshCallback.

Public Member Functions

virtual void operator() (shared_ptr< ArticulatedModel > model, ArticulatedModel::Mesh *mesh) override
 Override to implement processing of mesh. More...
 

Public Attributes

Table< Geometry *, Set< int > > alreadyProcessed
 A texture coordinate index is in the set when it has already been scaled by this callback. More...
 
int coord = 0
 
Vector2 offset
 
float scale = 1.0f
 

Member Function Documentation

◆ operator()()

virtual void G3D::ArticulatedModel::ScaleAndOffsetTexCoordCallback::operator() ( shared_ptr< ArticulatedModel model,
ArticulatedModel::Mesh mesh 
)
overridevirtual

Override to implement processing of mesh.

The callback may not remove parts. It may remove the mesh that it is operating on, but not other meshes. The callback may add new parts or meshes, but the callback will not be invoked on those parts or meshes.

Implements G3D::ArticulatedModel::MeshCallback.

Member Data Documentation

◆ alreadyProcessed

Table<Geometry*, Set<int> > G3D::ArticulatedModel::ScaleAndOffsetTexCoordCallback::alreadyProcessed

A texture coordinate index is in the set when it has already been scaled by this callback.

◆ coord

int G3D::ArticulatedModel::ScaleAndOffsetTexCoordCallback::coord = 0

◆ offset

Vector2 G3D::ArticulatedModel::ScaleAndOffsetTexCoordCallback::offset

◆ scale

float G3D::ArticulatedModel::ScaleAndOffsetTexCoordCallback::scale = 1.0f

documentation generated on Wed Nov 24 2021 08:01:53 using doxygen 1.8.15