malloc a framebuffer x,y,z
john howell
jh34607 at suntc.UUCP
Wed Aug 16 01:42:48 AEST 1989
I would like to malloc a three dimensional array that I could use to
represent a framebuffer. In particular I would like to be able to
address individual pixel values, row values and column values.
malloc f_buffer[xres][yres][3];
red_pixel[x][y] = ?
green_row[y] = ?
blue_column[x] = ?
Does this appear to be something reasonable? If so could someone give
me some direction on a good way to make ot work? Thanks.
I have read some of the posts on mallocing arrays and it just doesn't
sink in. Forgive me if I am being dense.
========================================================================
John Howell uucp: uunet!suntc!jrh
Deere & Company MCImail: 360-4047
Technical Center CompuServe: [76666,2505]
3300 River Drive FAX: (309)765-3807
Moline, IL 61265 Voice: (309)765-3784
========================================================================
More information about the Comp.lang.c
mailing list