[Module] ResourcesModule.pbi

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

[Module] ResourcesModule.pbi

Post by Thorsten1867 »

Resources - Module (all OS / 64Bit)

Pack all resources of a program (e.g. images) into a single file and load them later directly from this file (into memory).

Code: Select all

; ----- PackResource - Commands -----

  ; PackResource::Open()   - Open and define resource file and resource name
  ; PackResource::Close()  - Close resource creation
  ; PackResource::Add()    - Add resource (Image/XML/JSON/Sound)
  ; PackResource::Create() - Create resource file

; ----- Resources - Commands -----

  ; Resource::Open()          - Open resource file
  ; Resource::GetImage()      - Load image from resource file
  ; Resource::GetXML()        - Load XML from resource file
  ; Resource::GetJSON()       - Load JSON from resource file
  ; Resource::GetSound()      - Load Sound from resource file
  ; Resource::GetFileSize()   - Get size of resource    (Image/XML/JSON/Sound)
  ; Resource::GetFileMemory() - Copy resource to memory (Image/XML/JSON/Sound)
  ; Resource::Close()         - Close resource file
  
Download: ResourcesModule.pbi
Last edited by Thorsten1867 on Mon Apr 29, 2019 1:06 pm, edited 1 time in total.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: [Module] ResourcesModule.pbi

Post by RSBasic »

Image
Image
Image
Post Reply