Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void cVisuals::DrawTexture(int x, int y, int w, int h, const char *name, DWORD dwColor)
- {
- if(!name)
- return;
- int id = Base.gMatSurface->CreateNewTextureID( );
- Base.gMatSurface->DrawSetTextureFile(id, name, true, false);
- Base.gMatSurface->DrawSetColor(RGBA(dwColor));
- Base.gMatSurface->DrawTexturedRect(x, y, x + w, y + h);
- }
Add Comment
Please, Sign In to add comment