Skip to main content

A commandline tool to convert assets into source code

Project description

AssetPacker

A commandline tool to automatically package assets into your source code.


Commandline

Installation

Install the python package via pip: pip install Resource-Packer

Arguments

Argument Description
-output Path to source files to generate. This include the filename.
-include List of directories containing assets to include in the package.

Example

Packaging all assets from /Source/Assets into ../GameAssets.hpp and ../GameAssets.cpp
assetpack -output ../GameAssets -include /Source/Assets

CMake

Installation

Include this repository in your source. Include AssetPacker.cmake in your cmake structure.

Example

Packaging all assets from /Assets and use them in our MyGame target

include(AssetPacker/AssetPacker.cmake)
add_executable(MyGame main.cpp)

pack_assets(MyGame "/Assets" "/Source")

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resource_packer-1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Resource_Packer-1.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file resource_packer-1.0.tar.gz.

File metadata

  • Download URL: resource_packer-1.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.6

File hashes

Hashes for resource_packer-1.0.tar.gz
Algorithm Hash digest
SHA256 f760de25c1061d8edd419d6ab56551e7f01338faa4f8baa52228e6d09e5d9bb5
MD5 d1cd2060e08ed28b5e8d30b75cff39bd
BLAKE2b-256 3cd8145cc509e5b5e7ba2e02b14baea02cbffa5e51476e9ef6ecda6e62623268

See more details on using hashes here.

File details

Details for the file Resource_Packer-1.0-py3-none-any.whl.

File metadata

  • Download URL: Resource_Packer-1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.6

File hashes

Hashes for Resource_Packer-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fcd8fc13391980af7fe96b57b6acd4472cbc6e35c15d18782456cce149f1bfe
MD5 82e68e7312d876284244b82f4b1783ed
BLAKE2b-256 c25909c84e8452072783dc8ada376a44c1ff0238771ae98cf3b7752ec6bec30f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page