Jump to content

How to put dxDrawText to an object


Recommended Posts

Hello,

I created this thread because I'd love to know how to put a text to an object. It can be for example clock or something like that https://forum.multitheftauto.com/viewtopic.php?f=108&t=68962.

I know that I have to use a shader for that. I'm not sure but I think I should use this very simple one:

  
texture gTexture; 
  
technique TexReplace 
{ 
    pass P0 
    { 
        Texture[0] = gTexture; 
    } 
} 
  

I've read some about functions I probably need: dxSetRenderTarget, dxSetShaderValue, engineApplyShaderToWorldTexture etc and I've even made a texture with a text but I have no idea how to make it changing (onClientRender I guess).

Any help is appreciated

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...