- XNA 4.0 Game Development by Example Beginner's Guide(Visual Basic Edition)
- Kurt Jaegers
- 206字
- 2021-08-20 15:50:36
Introducing the Content Pipeline
The Flood
Control
Content
(Content)
project inside Solution Explorer is a special kind of project called a Content Project. Items in your game's content project are converted into .XNB resource files by Content Importers and Content Processors.
If you right-click on one of the image files you just added to the Flood Control project and select Properties, you will see that for both the Importer and Processor, the Content Pipeline will use Texture – XNA Framework. This means that the Importer will take the file in its native format (.PNG in this case) and convert it to a format that the processor recognizes as an image. The processor then converts the image into a .XNB file, which is a compressed binary format that XNA's content manager can read directly into a Texture2D
object.
There are Content Importer/Content Processor pairs for several different types of content—images, audio, video, fonts, 3D models, and shader language effects files. All of these content types get converted to .XNB files, which can be used at runtime.

In order to see how to use the Content Pipeline at runtime, let's go ahead and write the code to read these textures into memory when the game starts:
- 數據存儲架構與技術
- 算法競賽入門經典:習題與解答
- 劍破冰山:Oracle開發藝術
- App+軟件+游戲+網站界面設計教程
- 算法與數據中臺:基于Google、Facebook與微博實踐
- Learn Unity ML-Agents:Fundamentals of Unity Machine Learning
- 網站數據庫技術
- Hands-On Deep Learning for Games
- AndEngine for Android Game Development Cookbook
- PostgreSQL高可用實戰
- Cognitive Computing with IBM Watson
- MySQL性能調優與架構設計
- 代碼的未來
- Managing Software Requirements the Agile Way
- MySQL 8.0從入門到實戰