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

Reload/refresh Live WallPaper #17

Open
MOST2K2 opened this issue Sep 30, 2013 · 0 comments
Open

Reload/refresh Live WallPaper #17

MOST2K2 opened this issue Sep 30, 2013 · 0 comments

Comments

@MOST2K2
Copy link

MOST2K2 commented Sep 30, 2013

Hello, i want to have a custom background in my live wallpaper (i use a plane for that and it works already).
In preference screen i have added a preference to choose the color.
how can i reload/refresh the engine/renderer to apply the new color?

The new color will be used when i remove the wallpaper and set it again.
I have tried the following:

public void reset()
{
// stopRendering();
mTextureManager.reset();
mMaterialManager.reset();
// clearScenes();

mSceneInitialized = false;

}

(this method is called when SettingsPreferenceActivity.onCreate is called)

Edit: I read the preferences in initScene of the Renderer.

Thanks for help!

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

No branches or pull requests

1 participant