Skip to main content
GameDev.net gamedev.net
🔒 Locked

glDrawPixels and memory

Started by KennithTheMenith Nov 29, 2004 at 5:36 AM 0 replies 350+ views
Original Post
KennithTheMenith
KennithTheMenith
Hi there, can anyone tell me if it is possible to call glDrawPixels to draw an image to video memory where the pixels along a row are not contiguous in processor memory (as discrete but regular rows can be drawn calling glPixelStorei with GL_UNPACK_ROW_LENGTH, for example)? To clarify, from image in memory: p0 b b b b b p1 b b b b b p2 b b b b b p3 b b b b b p4 b b b b b p5 b b b b b p6 b b b b b p7 b b b b b to: p0 p1 p2 p3 p4 p5 p6 p7 where b = buffer pixel, range 0->inf and pN = desired image pixel. I am not sure if this is actually possible or there if there is some setting that I have missed. Thanks. [Edited by - KennithTheMenith on November 29, 2004 9:35:10 AM]

Topic Locked

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

Sign in to reply to this topic.