Skip to content

Commit c044754

Browse files
committed
Create HowTo_PackageTextures_On_Android.md
1 parent 9426220 commit c044754

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# How to package Textures on Android
2+
3+
The Android ecosystem is unique in that the hardware it runs on can be from many different manufactures.
4+
Unlike iOS or PC you cannot always guarentee what graphics card a user will be using. For this reason
5+
Android needs to have some special attention when shipping your game.
6+
7+
## Texture Compression
8+
9+
As stated in [Texture Compress.md] you need to be aware of the performance limitations on mobile devices.
10+
The graphics cards on mobile phones do not have the same kind of capabilities as those on the PC or Consoles.
11+
They regularly have less memory and less power. So you need to make use of what you have in a more efficient way.
12+
One of these ways is to use Texture Compression. As stated in [Texture Compress.md] this allows you to fit more
13+
textures on the graphics card than you could if you just used raw RGBA textures.
14+
15+
```bash
16+
#----------------------------- Global Properties ----------------------------#
17+
18+
/outputDir:bin/$(Platform)
19+
/intermediateDir:obj/$(Platform)
20+
/platform:Android
21+
/config:
22+
/profile:Reach
23+
/compress:False
24+
25+
#-------------------------------- References --------------------------------#
26+
27+
28+
#---------------------------------- Content ---------------------------------#
29+
30+
#begin ContentFont.spritefont
31+
/importer:FontDescriptionImporter
32+
/processor:FontDescriptionProcessor
33+
/processorParam:PremultiplyAlpha=True
34+
/processorParam:TextureFormat=Compressed
35+
/build:ContentFont.spritefont
36+
37+
#begin Textures/LogoOnly_64px.png
38+
/importer:TextureImporter
39+
/processor:TextureProcessor
40+
/processorParam:ColorKeyColor=255,0,255,255
41+
/processorParam:ColorKeyEnabled=True
42+
/processorParam:GenerateMipmaps=False
43+
/processorParam:PremultiplyAlpha=True
44+
/processorParam:ResizeToPowerOfTwo=True
45+
/processorParam:MakeSquare=False
46+
/processorParam:TextureFormat=PvrCompressed
47+
/build:Textures/LogoOnly_64px.png
48+
49+
#begin Textures/LogoOnly_64px.png
50+
/importer:TextureImporter
51+
/processor:TextureProcessor
52+
/processorParam:ColorKeyColor=255,0,255,255
53+
/processorParam:ColorKeyEnabled=True
54+
/processorParam:GenerateMipmaps=False
55+
/processorParam:PremultiplyAlpha=True
56+
/processorParam:ResizeToPowerOfTwo=True
57+
/processorParam:MakeSquare=False
58+
/processorParam:TextureFormat=PvrCompressed
59+
/build:Textures/LogoOnly_64px.png;Textures#tcf_pvrtc/LogoOnly_64px
60+
61+
#begin Textures/LogoOnly_64px.png
62+
/importer:TextureImporter
63+
/processor:TextureProcessor
64+
/processorParam:ColorKeyColor=255,0,255,255
65+
/processorParam:ColorKeyEnabled=True
66+
/processorParam:GenerateMipmaps=False
67+
/processorParam:PremultiplyAlpha=True
68+
/processorParam:ResizeToPowerOfTwo=True
69+
/processorParam:MakeSquare=False
70+
/processorParam:TextureFormat=DxtCompressed
71+
/build:Textures/LogoOnly_64px.png;Textures#tcf_s3tc/LogoOnly_64px
72+
73+
#begin Textures/LogoOnly_64px.png
74+
/importer:TextureImporter
75+
/processor:TextureProcessor
76+
/processorParam:ColorKeyColor=255,0,255,255
77+
/processorParam:ColorKeyEnabled=True
78+
/processorParam:GenerateMipmaps=False
79+
/processorParam:PremultiplyAlpha=True
80+
/processorParam:ResizeToPowerOfTwo=True
81+
/processorParam:MakeSquare=False
82+
/processorParam:TextureFormat=AtscCompressed
83+
/build:Textures/LogoOnly_64px.png;Textures#tcf_atsc/LogoOnly_64px
84+
```

0 commit comments

Comments
 (0)