PDA

View Full Version : fillrgba



sp0rky
02-07-2005, 11:30 PM
void FillRGBA(int x, int y, int w, int h, int r, int g, int b, int a)
{
MaterialSystemSurface->DrawSetColor(r,g,b,a);
MaterialSystemSurface->DrawFilledRect(x,y,x+w,y+h);
}


Credits: osGb` wrote it originally, then panzer fixed the width/height. Credit them, for this.

This may not appear elsewhere without permission, but may be linked to.

Milan
02-08-2005, 03:00 AM
nice, thanks. Now I don't need to use d3d anymore :)

siodine
02-08-2005, 11:03 PM
wtf i cant hook IMatSystemSurface interface

arkan
02-09-2005, 12:10 AM
Look at the valvets base, he did it in there

siodine
02-09-2005, 12:20 AM
i think you're thinking about IVDebugOverlay

arkan
02-09-2005, 05:40 AM
Yeah I think I was, It was 1 am, but I swear it had it when i opened it last night, Lol, I must have been seeing things