Once created it can be further manipulated before being uploaded to an OpenGL Texture (code) for rendering or saved for some future use. Pixmaps can be created from a byte array containing image data encoded as JPEG, PNG or BMP, aįileHandle (code), or a specification of dimensions and a format. PixmapIO supports uncompressed PNG as well as CIM, a compression format peculiar to libGDX which is useful for quick storage access such as during state saving/loading between application focus changes.Īs a Pixmap resides in native heap memory it must be disposed of by calling dispose() when no longer needed to prevent memory leaks. There are also methods for image saving/loading through the This is the fastest way Ive found to use LibGDX TexturePacker.Thanks for watching and fol. The most typical use is preparation of an image for upload to the GPU by wrapping in a It takes a little bit of setting up, but once its done its done. It supports simple file loading and draw operations for basic image manipulation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |