cogles2fixedpipelineshaders embed shader file
Posted: Sun Jan 29, 2012 11:59 pm
in file COGLES2FixedpipelineShaders.cpp there is :
i dont want to put the shader file in the sdcard
and since android JNI cant get access to asset folder easily, so i want to put the shaders inside the .cpp file.
is there any tutorial ? or some link ? or your help ?
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Code: Select all
const c8 VertexShaderFile[] = "/mnt/.../COGLES2FixedPipeline.vsh";
const c8 FragmentShaderFile[] = "/mnt/.../COGLES2FixedPipeline.fsh";
and since android JNI cant get access to asset folder easily, so i want to put the shaders inside the .cpp file.
is there any tutorial ? or some link ? or your help ?
![Very Happy :D](./images/smilies/icon_biggrin.gif)
![Very Happy :D](./images/smilies/icon_biggrin.gif)
![Very Happy :D](./images/smilies/icon_biggrin.gif)