tpl - ReadTexturePackage Demo

Description

This texture package file sample is for basic formats such as RGBA8888.

This demo displays texture images in each format on the upper and lower screens.
The original image in the upper screen is RGBA (including alpha), while the original image shown in the lower screen is RGB (no alpha).

Required Environment

None.

How to Use

None.

Notes

None.

Execution Procedure

When this demo is run, it displays the following log.

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 349184
  New Texture0Id = 2

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 349184
  New Texture1Id = 3

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 174592
  New Texture0Id = 4

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 174592
  New Texture1Id = 5

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 174080
  New Texture0Id = 6

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 174080
  New Texture1Id = 7

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 245760
  New Texture0Id = 8

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 245760
  New Texture1Id = 9

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 163840
  New Texture0Id = 10

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 163840
  New Texture1Id = 11

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 163840
  New Texture0Id = 12

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 163840
  New Texture1Id = 13

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 81920
  New Texture0Id = 14

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 81920
  New Texture1Id = 15

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 40960
  New Texture0Id = 16

Reading data from ROMFS...
  fileSize = 3527552 (Byte)
  readSize = 3527552 (Byte)
TextureInfo width = 256, height = 256, size = 40960
  New Texture1Id = 17

After the above log output completes, the texture image for the following eight types of formats are displayed in order on the upper and lower screens.
RGBA8888, RGBA5551, RGBA4444, RGB888, RGB565, LA88, L8, and L4

There is no shutdown procedure.
Texture images are switched and displayed. Stop execution in a timely manner.

Revision History

2011/06/23
Revised the log output
2011/02/02
Initial version.

CONFIDENTIAL