- C++ Game Development By Example
- Siddharth Shekar
- 186字
- 2021-06-24 14:26:09
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Here, the printing of Hello, World is tasked to the main function."
A block of code is set as follows:
#include <iostream>
// Program prints out "Hello, World" to screen
int main()
{
std::cout<< "Hello, World."<<std::endl;
return 0;
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
int main() {
//init game objects
while (window.isOpen()) {
// Handle Keyboard events
// Update Game Objects in the scene
window.clear(sf::Color::Red);
// Render Game Objects
window.display();
}
return 0;
}
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "In Input and under Linker, type the following .lib files."
Warnings or important notes appear like this.
Tips and tricks appear like this.
推薦閱讀
- 計算機組裝與系統(tǒng)配置
- INSTANT Wijmo Widgets How-to
- 計算機應(yīng)用與維護基礎(chǔ)教程
- Getting Started with Qt 5
- Learning Game Physics with Bullet Physics and OpenGL
- 嵌入式系統(tǒng)中的模擬電路設(shè)計
- The Deep Learning with Keras Workshop
- 筆記本電腦使用、維護與故障排除從入門到精通(第5版)
- 計算機組裝維修與外設(shè)配置(高等職業(yè)院校教改示范教材·計算機系列)
- Intel Edison智能硬件開發(fā)指南:基于Yocto Project
- Neural Network Programming with Java(Second Edition)
- 單片微機原理及應(yīng)用
- 計算機電路基礎(chǔ)(第2版)
- 計算機應(yīng)用基礎(chǔ)案例教程(Windows 7+Office 2010)
- 主板維修實踐技術(shù)