Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char[] shaderSource = to!(char[])(/* shader source */);
- char* shaderSourcePointer = shaderSource.ptr;
- GLuint shaderObject = glCreateShader(/* gl shader type */);
- glShaderSource(shaderObject, 1, &shaderSourcePointer, null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement