[comp.lang.c] malloc a framebuffer x,y,z

jh34607@suntc.UUCP (john howell) (08/15/89)

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
========================================================================