Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ofGet/SetBackgroundColor, replaces #1401 #3315

Merged

Conversation

arturoc
Copy link
Member

@arturoc arturoc commented Oct 17, 2014

ofSetBackgroundColor has never worked properly, this fixes it
ofGetBackground is deprecated for ofGetBackgroundColor
ofBgColor removed completely, this will break old code but was really wrong
ofbBgClear removed for ofGetBackgroundAuto

also renderers now have to implement:

startRender
endRender

and windows need to call it in display.

windows don't need to set anymore the vieport, clear the bg...
now the renderers do that instead, before the window had to ask
the renderer if it had to clear the background and with which
color which was mixing the responsabilities of both classes and where
that info was stored

i've tested everything except EGL and iOS but the change in the windows is simple so they should work without problem

ofSetBackgroundColor has never worked properly, this fixes it
ofGetBackground is deprecated for ofGetBackgroundColor
ofBgColor removed completely, this will break old code but was really wrong
ofbBgClear removed for ofGetBackgroundAuto

also renderers now have to implement:

	startRender
	endRender

and windows need to call it in display.

windows don't need to set anymore the vieport, clear the bg...
now the renderers do that instead, before the window had to ask
the renderer if it had to clear the background and with which
color which was mixing the responsabilities of both classes and where
that info was stored
@arturoc arturoc added this to the 0.9.0 milestone Oct 17, 2014
Conflicts:
	libs/openFrameworks/gl/ofShader.cpp
arturoc added a commit that referenced this pull request Oct 18, 2014
@arturoc arturoc merged commit 3fbe812 into openframeworks:master Oct 18, 2014
@arturoc arturoc deleted the bugfix-ofGet/SetBackgroundColor branch October 18, 2014 16:13
@kylemcdonald kylemcdonald mentioned this pull request Nov 1, 2015
6 tasks
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.

1 participant