I am trying to get the EnvironmentMap using the function
bool SILVERLINING_API GetEnvironmentMap(void *&texture, int facesToRender = 6);
I am working with OpenSceneGraph which is a API over OpenGL. The function description says:
\param texture A pointer to the platform-specific texture handle containing the cube map. On OpenGL this is a GLuint; on DirectX9 it is a LPDIRECT3DCUBETEXTURE9; on DirectX10 it is a ID3D10ShaderResourceView *; on DirectX11 it is a ID3D11ShaderResourceView *.
So I am trying code like this:
GLuint id;
silverLining->atmosphere()->GetEnvironmentMap(id);
And I am getting the error: "cannot convert parameter 1 from 'GLuint' to 'void *&'" The same is with
GLuint *id;
silverLining->atmosphere()->GetEnvironmentMap(id);
So I suppose as I am doing it along with the description and it doesn't work, maybe there is some special way to handle parameters like "void*&"?
Any word of advice on which direction I should be looking?