Path: utzoo!utgpu!watmath!att!dptg!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!suntc!jh34607 From: jh34607@suntc.UUCP (john howell) Newsgroups: comp.lang.c Subject: malloc a framebuffer x,y,z Keywords: malloc C array framebuffer Message-ID: <114@suntc.UUCP> Date: 15 Aug 89 15:42:48 GMT Organization: Deere & Co. Technical Center, Moline,IL Lines: 23 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 ========================================================================