Android: Alter texture from c++

Hi,
I would like to alter a Texture2D from C++ on Android. How do I pass the texture to C++ side? Can I just alter it with OpenGL afterwards and my changes will be displayed or will I have to call some Unity function after my work is done to apply the changes?

You should check out this method: Unity - Scripting API: Texture.GetNativeTexturePtr

This gives you a pointer to the native texture (e.g: OpenGL) so you can work with this pointer in your native C++ code.

*Note that on other platforms this may be a different API (Metal on iOS and OSX).