SpiralEdge
05-05-2006, 03:36 AM
fntOut.DrawText(Nothing, IIf(bRenderWireframe, "F1 - Solid", "F1 - Wireframe"), _
New Drawing.Rectangle(5, 5 + (5 * (iFontSize + 6)), 0, 0), _
DrawTextFormat.Left Or DrawTextFormat.Top, _
Drawing.Color.FromArgb(255, 200, 128, 64))
Recently I've been having problems with the sprite part of the DrawText function. I want the Sprite to be 'Null' because the SDK says that if you leave it null it will just create its own sprite. For some reason when I use nothing or null, I get errors. Anyone have any ideas?
fntOut.DrawText(Nothing, <-- this is the part of the code that is giving me an error.
I don't remember having to even deal with sprites in the past. Whats the deal?
New Drawing.Rectangle(5, 5 + (5 * (iFontSize + 6)), 0, 0), _
DrawTextFormat.Left Or DrawTextFormat.Top, _
Drawing.Color.FromArgb(255, 200, 128, 64))
Recently I've been having problems with the sprite part of the DrawText function. I want the Sprite to be 'Null' because the SDK says that if you leave it null it will just create its own sprite. For some reason when I use nothing or null, I get errors. Anyone have any ideas?
fntOut.DrawText(Nothing, <-- this is the part of the code that is giving me an error.
I don't remember having to even deal with sprites in the past. Whats the deal?