From: Christian Stock (cstock++at++unimelb.edu.au)
Date: 07/23/2002 21:57:17
I've programmed a HUD on top of perfly which displays a a text string giving
the heading and a few icons. To draw the icons I have used glRasterPos and
glBitmap. The icons are 64x64 1bit bitmaps. In InitGfx() I'm loading the
bitmaps into 3 GLubyte[512] arrays. All 3 arrays are in ViewState so they are
in the shared arena memory (otherwise they are overwritten with garbage).
I ran into the problem that perfly will just crash with a segmentation fault
when I use 3 icons. 2 icons work fine and if I get rid of the welcome text, 3
icons work. This led me to believe that my 3 icons are causing a memory
problem. Can I somehow increase the arena size so my 3 icons will fit (and
possibly more), or is there a different, better way in making HUD icons, or
allocating memory for the icons?
As a side question, shouldn't fontDLHandle (which is used to render the text)
really go into ViewState as well?
Cheers, Christian
This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 21:51:41 PDT