Answer the question
In order to leave comments, you need to log in
Rendering text into the game?
Hi all.
There is a game: GTA SA (DirectX 9). I want to show the player text, my menu, a picture, etc. on top of it. in C++ of course. I couldn't find any tutorial on the internet how to do it. Only about the fact that you need to intercept the rendering and add your own there. And how to actually do it? In general, there is no normal tutorial on the Internet on how to work with DirectX, if anyone knows, please send a link.
Answer the question
In order to leave comments, you need to log in
I can say the general version: text, menus and other hud are rendered into a separate buffer. Then the data from this buffer (with transparency if necessary) is superimposed on the buffer already rendered by the engine. Laid down at the very last moment. This is how they do it in simple games.
PS Here is a project that will help to do it using DX11: https://github.com/petrgeorgievsky/gtaRenderHook
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question