Sigma icon indicating copy to clipboard operation
Sigma copied to clipboard

Globalstorage and Anisotropic filtering

Open Zardoz89 opened this issue 11 years ago • 1 comments
trafficstars

Adds a Global Storage of configuration values and global s if the GPU support it.

Usage :

  • Call to InitGStore() at the begin of the program. Only one time necesary!
  • Use Set(key, value) to remplace or create new values in the store
  • Use Get(key, &value) to read values from the store. Return True if is found. If is not found, return false and not change the value

Example :

float val = 1.0f;  // Default value if it not found
Sigma::GStore::Get("foo", &val);
Bar(val); ...

Zardoz89 avatar Dec 29 '13 15:12 Zardoz89

Can you update this PR and I will get it pulled over?

adam4813 avatar Jan 07 '14 06:01 adam4813