Skip to content

Cleanup ofShadow and ofCubemap#8422

Merged
ofTheo merged 3 commits into
openframeworks:masterfrom
NickHardeman:cleanup-shadow-cubemap
Apr 7, 2025
Merged

Cleanup ofShadow and ofCubemap#8422
ofTheo merged 3 commits into
openframeworks:masterfrom
NickHardeman:cleanup-shadow-cubemap

Conversation

@NickHardeman
Copy link
Copy Markdown
Contributor

ofShadow
Rename isGlCullingEnabled() & setGlCullingEnabled() to isCullingEnabled() && setCullingEnabled(): #8411

ofCubeMap and ofShadow, make private by wrapping in of::priv.
Added more comments and made a few more functions private to reduce confusion.
#8409

Comment thread libs/openFrameworks/gl/ofCubeMap.cpp Outdated
std::shared_ptr<ofCubeMap::Data> cubeMap = ofCubeMapsData()[i].lock();
for(size_t i=0; i<of::priv::ofCubeMapsData().size(); i++) {
if(!of::priv::ofCubeMapsData()[i].expired()) {
std::shared_ptr<of::priv::ofCubeMapData> cubeMap = of::priv::ofCubeMapsData()[i].lock();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry - should have chimed in sooner, not sure about of::priv::ofCubeMapData
Will take a proper look but prefer: ofCubeMap::Data in general.

@ofTheo ofTheo merged commit 168a647 into openframeworks:master Apr 7, 2025
18 checks passed
};

std::vector<std::weak_ptr<ofShadow::Data> > & ofShadowsData();
//namespace of{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can probably remove this now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, submitted another PR since this was already merged #8441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants