18 Set(
nullptr, [](std::shared_ptr<Buffer>
const&) {});
33 std::shared_ptr<ConstantBuffer>
const& cbuffer,
36 if (cbuffer && cbuffer->HasMember(pvwMatrixName))
41 std::make_pair(cbuffer, pvwMatrixName)));
67 #if defined(GTE_USE_MAT_VEC) 74 element.second.first->SetMember(element.second.second, pvwMatrix);
void Set(std::shared_ptr< Camera > const &camera, BufferUpdater const &updater)
std::function< void(std::shared_ptr< Buffer > const &)> BufferUpdater
std::shared_ptr< Camera > mCamera
std::map< PVWKey, PVWValue > mSubscribers
bool Subscribe(Matrix4x4< float > const &worldMatrix, std::shared_ptr< ConstantBuffer > const &cbuffer, std::string const &pvwMatrixName="pvwMatrix")
GLsizei const GLchar *const * string
bool Unsubscribe(Matrix4x4< float > const &worldMatrix)