Guest User

Untitled

a guest
Jun 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. void cVisuals::DrawTexture(int x, int y, int w, int h, const char *name, DWORD dwColor)
  2. {
  3. if(!name)
  4. return;
  5.  
  6. int id = Base.gMatSurface->CreateNewTextureID( );
  7.  
  8. Base.gMatSurface->DrawSetTextureFile(id, name, true, false);
  9.  
  10. Base.gMatSurface->DrawSetColor(RGBA(dwColor));
  11.  
  12. Base.gMatSurface->DrawTexturedRect(x, y, x + w, y + h);
  13. }
Add Comment
Please, Sign In to add comment