Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- byte cutoff[2] = {0, 255};
- m_iClipperTexture = current_ext_texture_id; current_ext_texture_id++;
- glBindTexture(GL_TEXTURE_2D, m_iClipperTexture);
- glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
- glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );
- glTexImage2D(GL_TEXTURE_2D, 0, 3, 1, 1, 0, GL_RGB, GL_UNSIGNED_BYTE, cutoff);
Add Comment
Please, Sign In to add comment