Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int sys_glWidth = 480;
- int sys_glHeight = 320;
- unsigned char *buffer;
- buffer = (unsigned char *)malloc(sys_glWidth*sys_glHeight*3);
- glReadPixels (0, 0, sys_glWidth, sys_glHeight, GL_RGB, GL_UNSIGNED_BYTE, buffer);
- glBindTexture(GL_TEXTURE_2D, transitionTexture);
- glTexImage2D(GL_TEXTURE_2D, 0, 3, sys_glWidth, sys_glHeight, 0, GL_RGB, GL_UNSIGNED_BYTE, buffer);
- free(buffer);
Add Comment
Please, Sign In to add comment