Skip to main content
gamedev.net
🔒 Locked

modifying pixels from glReadPixels data

Started by drefan 0 replies 250+ views
Original Post
drefan
drefan
I do: ********* glReadPixels(x,y,width,height,format,type,pixels); pixels[0] = 255; pixels[1] = 255; pixels[2] = 255; ********* I get compiler error: ********* : error C2036: 'void *' : unknown size : error C2120: 'void' illegal with all types ********* Im trying to modify a pixel to a certain color. What am I doing wrong here? Edited by - Drefan on August 18, 2001 1:03:30 AM
drefan
drefan
I am trying to put a type of "Signiture" on the screenshots taken, and I want them modified before writing to TGA.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.