Support Forum G3D Web Page |
Public Member Functions | |
CPUGeom (const Array< int > *index, const MeshAlg::Geometry *geometry, const Array< Vector2 > *texCoord0, const Array< Vector2unorm16 > *texCoord1=nullptr, const Array< Color4 > *vertexColors=nullptr, const Array< Vector4 > *packedTangent=nullptr) | |
CPUGeom (const Array< int > *index, const CPUVertexArray *vertexArray) | |
CPUGeom () | |
void | copyVertexDataToGPU (AttributeArray &vertex, AttributeArray &normal, AttributeArray &packedTangents, AttributeArray &texCoord0, AttributeArray &texCoord1, AttributeArray &vertexColors, VertexBuffer::UsageHint hint) |
Updates the interleaved vertex arrays. More... | |
Public Attributes | |
const MeshAlg::Geometry * | geometry |
const Array< int > * | index |
const Array< Vector4 > * | packedTangent |
Packs two tangents, T1 and T2 that form a reference frame with the normal such that. More... | |
const Array< Vector2 > * | texCoord0 |
const Array< Vector2unorm16 > * | texCoord1 |
May be nullptr. More... | |
const CPUVertexArray * | vertexArray |
If non-nullptr, this superceeds geometry, packedTangent, and texCoord0. More... | |
const Array< Color4 > * | vertexColors |
|
inline |
|
inline |
|
inline |
void G3D::UniversalSurface::CPUGeom::copyVertexDataToGPU | ( | AttributeArray & | vertex, |
AttributeArray & | normal, | ||
AttributeArray & | packedTangents, | ||
AttributeArray & | texCoord0, | ||
AttributeArray & | texCoord1, | ||
AttributeArray & | vertexColors, | ||
VertexBuffer::UsageHint | hint | ||
) |
const MeshAlg::Geometry* G3D::UniversalSurface::CPUGeom::geometry |
const Array<int>* G3D::UniversalSurface::CPUGeom::index |
Packs two tangents, T1 and T2 that form a reference frame with the normal such that.
const Array<Vector2unorm16>* G3D::UniversalSurface::CPUGeom::texCoord1 |
May be nullptr.
const CPUVertexArray* G3D::UniversalSurface::CPUGeom::vertexArray |
If non-nullptr, this superceeds geometry, packedTangent, and texCoord0.