GCSetMode 3 ?
BlitzMax Forums/BlitzMax Programming/GCSetMode 3 ?
| ||
OK.. so this has probably been answered before but I cant seem to find it. I was just looking into GNet and I got the source for the gnetdemo. It all seemed simple enough but then when I looked at the code again I noticed this GcSetMode 3 I knew of manual and automatic.. but what does this third one do ? Anyone know ? |
| ||
It does not do anything. GCSetMode 3 = Mode 1 + 2 (automatic + manual) The only further mode is 4 which will output debug data to console. |
| ||
Ahh OK... So calling that will nothing. I do wish the demo's didnt do that sort of thing... or at least had comments to explain the purpose/reason for the code being there. Anyway... Thanx for the reply. |
| ||
GCSetMode 5 = SELFDESTRUCTION? ;) |
| ||
In fact GCSetMode 5 might be just the thing for you. It's automatic but also gives out the debug messages... GCSetMode 5 Graphics 640,480 image:TImage=LoadImage("max.png") While Not KeyHit(key_escape) Cls DrawImage image,0,0 DrawText GCMemAlloced(),0,0 Flip Wend |
| ||
The only selfdestruction flag is GCMode 7. Although it should combine all, it directly killed BM 1.18 (haven't tried with BM 1.20 so far) |