Jump to content

encode image or model


Fist

Recommended Posts

  • Moderators

You can use dxCreateTexture (the 2nd signature of it) to get a texture out of your variable containing your image data that you can then use with dxDraw functions like a classic image.

Make sure you don't loop the texture creation (I mean don't do that in an onClientRender for exemple) or you the client will eventually run out of memory.

Edited by Citizen
  • Like 1
Link to comment
2 hours ago, Citizen said:

You can use dxCreateTexture (the 2nd signature of it) to get a texture out of your variable containing your image data that you can then use with dxDraw functions like a classic image.

Make sure you don't loop the texture creation (I mean don't do that in an onClientRender for exemple) or you the client will eventually run out of memory.

Thank you! That's what i needed. :)

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...