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 no
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,
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 l
nTextureID, "vgui/ammobg",
true, false);
vgui::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
Bee
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
*
Hi again,
Maybe you can supply me with a _working_ example using DrawSetTextureRGBA?
Because my code _works_ when I use DrawSetTextureFile. And the buffer data
is correct, I tested it by writing the buffer to a file. So I guess the
problem is with DrawSetTextureRGBA, either I dont call it the right
EMAIL 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
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
Hey Erik,
The system seems to be broken. Just letting you know ;)
Jethro 'deathz0rz' Beekman
___
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
9 matches
Mail list logo