[hlcoders] DrawSetTextureRGBA

2005-05-31 Thread Jethro Beekman
Hi, I can't get DrawSetTextureRGBA to work. At first it draws some weapons from the weapons ttf, and later it paints all kinds of crosshairs. The 'solutions' in the mailing list (see March 2005) don't work. I use the following code: http://deathz0rz.homeunix.net/svgimage/vgui_svgpanel.cpp (see

[hlcoders] Re: DrawSetTextureRGBA

2005-03-23 Thread Jethro Beekman
PROTECTED] On Behalf Of Jethro Beekman Sent: Tuesday, March 22, 2005 7:40 AM To: hlcoders@list.valvesoftware.com Subject: [hlcoders] Re: DrawSetTextureRGBA Hi again, Maybe you can supply me with a _working_ example using DrawSetTextureRGBA? Because my code _works_ when I use DrawSetTextureFile

[hlcoders] Re: DrawSetTextureRGBA

2005-03-13 Thread Jethro Beekman
You obviously didn't recheck my code, it now is: void SVGPanel::Paint() { if (!m_pImage-SVGLoaded()) return; int wide,tall; BaseClass::GetSize(wide,tall); if (m_iTexture!=-1) surface()-DrawSetTextureRGBA(m_iTexture, (unsigned char

[hlcoders] Re: DrawSetTextureRGBA

2005-03-12 Thread Jethro Beekman
::surface()-DrawSetColor(_color[0], _color[1], _color[2], _color[3]); vgui::surface()-DrawTexturedRect( 0, 0, 100, 100 ); - Alfred -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jethro Beekman Sent: Friday, March 11, 2005 3:38 PM To: hlcoders

[hlcoders] Re: DrawSetTextureRGBA

2005-03-11 Thread Jethro Beekman
Hi again, Because most question are answered in 1 or 2 days, Im asking myself if you have recieved this question? If so, I take it you don't know the answer? And to people from VALVe: is this a bug? Is it going to be fixed in the next engine update? Regards, deathz0rz [EMAIL PROTECTED] writes: Hi,

[hlcoders] Re: DrawSetTextureRGBA

2005-03-11 Thread Jethro Beekman
Still doesn't work. I uploaded the change vgui_svgimage.cpp (http://deathz0rz.homeunix.net/svgimage/vgui_svgpanel.cpp). When I call DrawSetTexture() before drawing, it appears to use DrawFilledRect(), and when I just call DrawSetTextureRGBA() before drawing, it draws the crosshairs sprite (memory

[hlcoders] DrawSetTextureRGBA

2005-03-03 Thread Jethro Beekman
Hi, I can't get DrawSetTextureRGBA to work. I use the following code: http://deathz0rz.homeunix.net/svgimage/vgui_svgpanel.cpp (see the directory for other headers and libs) DrawSetTextureFile works fine, and my renderer also works fine, because I tried writing the buffer to a file. Also, I have