- 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:
- 漫話(huà)大數(shù)據(jù)
- LibGDX Game Development Essentials
- 數(shù)據(jù)挖掘原理與實(shí)踐
- Python數(shù)據(jù)挖掘:入門(mén)、進(jìn)階與實(shí)用案例分析
- 企業(yè)大數(shù)據(jù)系統(tǒng)構(gòu)建實(shí)戰(zhàn):技術(shù)、架構(gòu)、實(shí)施與應(yīng)用
- 卷積神經(jīng)網(wǎng)絡(luò)的Python實(shí)現(xiàn)
- 數(shù)據(jù)化網(wǎng)站運(yùn)營(yíng)深度剖析
- 大數(shù)據(jù):規(guī)劃、實(shí)施、運(yùn)維
- Scratch 3.0 藝術(shù)進(jìn)階
- 金融商業(yè)算法建模:基于Python和SAS
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)教程上機(jī)指導(dǎo)與習(xí)題集(微課版)
- 計(jì)算機(jī)視覺(jué)
- Internet of Things with Python
- Microsoft Dynamics NAV 2015 Professional Reporting
- Managing Software Requirements the Agile Way