Mtasa-blue: dxCreateTexture, gif support

Created on 23 Nov 2018  路  4Comments  路  Source: multitheftauto/mtasa-blue

Is your feature request related to a problem? Please describe.
You can't use gif 馃槩

Describe the solution you'd like
make dxCreateTexture support gif, thats generate wide image with each frame thats can be displayed using dxDrawImageSection

Describe alternatives you've considered

Additional context
Botder i know that gifs are big 馃槧

enhancement wontfix

Most helpful comment

An animated texture format will never be supported. Rendering an animation from a spritesheet is the way to go.

I'm not against natively supporting _video players_ but for the time being, you can use CEF.

All 4 comments

Isnt there a program that generates a spritesheet from gif?

If file size is a concern, it might be interesting to implement support for the APNG (animated PNG) format instead. Although it's not as widespread as GIF, it is much more recent, offering the improved compression algorithms and color depth we all know and love from PNG. This animated image format is currently supported by the major web browsers Chromium, Opera, Firefox and Safari.

An animated texture format will never be supported. Rendering an animation from a spritesheet is the way to go.

I'm not against natively supporting _video players_ but for the time being, you can use CEF.

Was this page helpful?
0 / 5 - 0 ratings