Not a flash game

what programming languages do game programmers use to make games like Unreal? c++? and what is the “basic structure” of a game like this? I mean, they surely use directx, but how can they draw all the models etc?

thanks