From 5da5c24816f6cd024cb347345ec1bee20f0089ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?gjy=5F=E7=AE=A1?= Date: Mon, 15 Jun 2015 19:26:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81=E9=AB=98?= =?UTF-8?q?=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 01 Getting started/01 OpenGL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/01 Getting started/01 OpenGL.md b/01 Getting started/01 OpenGL.md index 47166b7..d109acc 100644 --- a/01 Getting started/01 OpenGL.md +++ b/01 Getting started/01 OpenGL.md @@ -43,7 +43,7 @@ OpenGL的一大特性就是对扩展的支持,当一个显卡公司提出一 使用扩展的代码大多看上去如下: - ```c++ +```c++ if(GL_ARB_extension_name) { // Do cool new and modern stuff supported by hardware @@ -52,7 +52,7 @@ OpenGL的一大特性就是对扩展的支持,当一个显卡公司提出一 { // Extension not supported: do it the old way } - ``` +``` 使用OpenGL3.3时,我们很少需要使用扩展来完成大多数功能,但是掌握这种方式是必须的。