Original Post
Note that the title doesnt display < and >
I want to convert a vector to a const char** without resorting to legacy C memory or file reading.
background info:
An OpenGL function requires me to give it the source code of a shader in the following format:
void glShaderSource(
GLuint shader,
GLsizei count,
const GLchar ** string,
const GLint * length );
const GLchar ** //string
Specifies an array of pointers to strings
containing the source code to be loaded into the
shader.
I use C++ I/O
Thanks in advance!
I want to convert a vector
background info:
An OpenGL function requires me to give it the source code of a shader in the following format:
void glShaderSource(
GLuint shader,
GLsizei count,
const GLchar ** string,
const GLint * length );
const GLchar ** //string
Specifies an array of pointers to strings
containing the source code to be loaded into the
shader.
I use C++ I/O
Thanks in advance!
