diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-10-02 23:48:34 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-10-02 23:48:34 +0800 |
commit | b9d4b60486e224261990c0732852513e86dd94ff (patch) | |
tree | 9f9dd20a888875833af11dc7a67b849a74825b5b /src/master/resources.cpp | |
parent | abffe5f72dfb39da8d480ce3c4b546404684a060 (diff) | |
download | bullet-lab-remix-b9d4b60486e224261990c0732852513e86dd94ff.tar.xz |
Add BLR3 files. Modify Readme.
Currently BLR3 is VERY primitive!!
Diffstat (limited to 'src/master/resources.cpp')
-rw-r--r-- | src/master/resources.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/master/resources.cpp b/src/master/resources.cpp new file mode 100644 index 0000000..1ae35cf --- /dev/null +++ b/src/master/resources.cpp @@ -0,0 +1,18 @@ +#include "smdatapack.hpp" +#include "smbmfont.hpp" +smDtpFileR blrdtp; +smBMFont lcdfont; +smAnmFile ssanm; +void resourcesLoad() +{ + blrdtp.openDtp("blr3.dtp"); + lcdfont.loadAnmFromMemory(blrdtp.getFilePtr("lcdfont.anm"),blrdtp.getFileSize("lcdfont.anm")); + lcdfont.setScale(0.6); + ssanm.loadAnmFromMemory(blrdtp.getFilePtr("ss.anm"),blrdtp.getFileSize("ss.anm")); +} +void resourcesUnload() +{ + blrdtp.closeDtp(); + lcdfont.close(); + ssanm.close(); +} |