Sprites

How do games like Q3, Half-Life make sprites?
What functions do they call?

Is there any possibility to find out what sprite is used when I catch the function parameters?

They draw a quad with a texture that has transparent sections.

j