Advertisement
Guest User

Untitled

a guest
Dec 18th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.22 KB | None | 0 0
  1. char[] shaderSource = to!(char[])(/* shader source */);
  2. char* shaderSourcePointer = shaderSource.ptr;
  3.  
  4. GLuint shaderObject = glCreateShader(/* gl shader type */);
  5. glShaderSource(shaderObject, 1, &shaderSourcePointer, null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement