Support Forum G3D Web Page |
A single Model stores multiple PointArrays so that they can become different Surfaces and culled (or possibly in the future, rigid-body animated) More...
Inherits G3D::ReferenceCountedObject.
Public Member Functions | |
void | addPoint (const Point3 &position, const Color4unorm8 radiance) |
Only call during loading. More... | |
void | centerPoints () |
Called after loading by several of the loaders on m_pointArrayArray[0]. More... | |
void | computeBounds () |
void | copyToGPU () |
void | randomize () |
Randomizes the order of elements of cpuPosition and cpuRadiance. More... | |
int64 | size () const |
Public Attributes | |
AABox | boxBounds |
Array< Point3 > | cpuPosition |
Array< Color4unorm8 > | cpuRadiance |
sRGBA8 More... | |
AttributeArray | gpuPosition |
AttributeArray | gpuRadiance |
sRGBA8 More... | |
Sphere | sphereBounds |
Static Protected Member Functions | |
template<class T , class ... ArgTypes> | |
static shared_ptr< T > | createShared (ArgTypes &&... args) |
Like std::make_shared, but works for protected constructors. More... | |
A single Model stores multiple PointArrays so that they can become different Surfaces and culled (or possibly in the future, rigid-body animated)
void G3D::PointModel::PointArray::addPoint | ( | const Point3 & | position, |
const Color4unorm8 | radiance | ||
) |
Only call during loading.
void G3D::PointModel::PointArray::centerPoints | ( | ) |
Called after loading by several of the loaders on m_pointArrayArray[0].
void G3D::PointModel::PointArray::computeBounds | ( | ) |
void G3D::PointModel::PointArray::copyToGPU | ( | ) |
|
inlinestaticprotectedinherited |
Like std::make_shared, but works for protected constructors.
Call as createShared<myclass>.
void G3D::PointModel::PointArray::randomize | ( | ) |
Randomizes the order of elements of cpuPosition and cpuRadiance.
|
inline |
AABox G3D::PointModel::PointArray::boxBounds |
Array<Color4unorm8> G3D::PointModel::PointArray::cpuRadiance |
sRGBA8
AttributeArray G3D::PointModel::PointArray::gpuPosition |
AttributeArray G3D::PointModel::PointArray::gpuRadiance |
sRGBA8
Sphere G3D::PointModel::PointArray::sphereBounds |