• Charles 3.11.1 破解文件,亲测mac win都可以

    Charles 3.11.1 破解文件,只是一个jar文件替换就可以了,在这就不在详细说明了, 为中国开发者做点贡献,不要分,多学习,以后会支持正版的。

    5
    115
    4.96MB
    2015-11-06
    10
  • Pro Core Data for iOS.pdf

    iOS CoreData 一本好书,smartrookie ■ Chapter 1: Getting Started .................................................................................................................... 1 ■ Chapter 2: Understanding Core Data .................................................................................................. 27 ■ Chapter 3: Storing Data: SQLite and Other Options ............................................................................ 57 ■ Chapter 4: Creating a Data Model..................................................................................................... 107 ■ Chapter 5: Working with Data Objects ............................................................................................. 129 ■ Chapter 6: Refining Result Sets........................................................................................................181 ■ Chapter 7: Tuning Performance and Memory Usage........................................................................203 ■ Chapter 8: Versioning and Migrating Data ....................................................................................... 251 ■ Chapter 9: Using Core Data in Advanced Applications.....................................................................283 ■ Index:................................................................................................................................................359 Contents ■ About the Authors............................................................................................................................... xii ■ About the Technical Reviewer ........................................................................................................... xiii ■ Acknowledgments ............................................................................................................................. xiv ■ Introduction ....................................................................................................................................... xvi ■ Chapter 1: Getting Started .................................................................................................................... 1 What Is Core Data? ............................................................................................................................ 1 History of Persistence in iOS ............................................................................................................. 2 Creating a Basic Core Data Application............................................................................................. 3 Understanding the Core Data Components ................................................................................... 3 Creating a New Project ................................................................................................................. 5 Running Your New Project............................................................................................................6 Understanding the Application’s Components..............................................................................7 Fetching Results ...........................................................................................................................9 Inserting New Objects.................................................................................................................11 Initializing the Managed Context ................................................................................................ 13 Adding Core Data to an Existing Project.......................................................................................... 15 Adding the Core Data Framework...............................................................................................15 Creating the Data Model .............................................................................................................16 Initializing the Managed Object Context.....................................................................................21 Summary.......................................................................................................................................... 25 ■CONTENTS v ■CONTENTS ■ Chapter 2: Understanding Core Data .................................................................................................. 27 Core Data Framework Classes......................................................................................................... 27 The Model Definition Classes......................................................................................................30 The Data Access Classes.............................................................................................................38 Key-Value Observing...................................................................................................................42 The Query Classes.......................................................................................................................43 How the Classes Interact.................................................................................................................46 SQLite Primer .............................................................................................................................. 51 Reading the Data Using Core Data .............................................................................................. 53 Summary.......................................................................................................................................... 55 ■ Chapter 3: Storing Data: SQLite and Other Options ............................................................................ 57 Using SQLite as the Persistent Store ............................................................................................... 57 Configuring the One-to-Many Relationship.................................................................................61 Building the User Interface ......................................................................................................... 63 Configuring the Table..................................................................................................................66 Creating a Team..........................................................................................................................66 The Player User Interface............................................................................................................76 Adding, Editing, and Deleting Players.........................................................................................79 Seeing the Data in the Persistent Store......................................................................................85 Using an In-Memory Persistent Store ............................................................................................. 88 Creating Your Own Custom Persistent Store...................................................................................90 Initializing the Custom Store ......................................................................................................92 Mapping Between NSManagedObject and NSAtomicStoreCacheNode.......................................95 Serializing the Data.....................................................................................................................97 Using the Custom Store.............................................................................................................101 What About XML Persistent Stores?.........................................................................................103 Summary ................................................................................................................................... 106 ■ Chapter 4: Creating a Data Model..................................................................................................... 107 Designing Your Database...............................................................................................................107 Relational Database Normalization...........................................................................................108 Using the Xcode Data Modeler....................................................................................................... 109 Viewing and Editing Attribute Details.......................................................................................114 Viewing and Editing Relationship Details ................................................................................. 115 Using Fetched Properties..........................................................................................................116 Creating Entities ............................................................................................................................ 118 Creating Attributes ........................................................................................................................ 120 Creating Relationships................................................................................................................... 122 Name ......................................................................................................................................... 123 Optional ..................................................................................................................................... 124 Transient ................................................................................................................................... 124 Destination and Inverse ............................................................................................................ 124 To-Many Relationship ............................................................................................................... 125 Min Count and Max Count.........................................................................................................125 Delete Rule ................................................................................................................................ 125 Summary........................................................................................................................................ 126 ■ Chapter 5: Working with Data Objects ............................................................................................. 129 Understanding CRUD......................................................................................................................129 Creating the Shape Application Data Model ............................................................................. 132 Building the Shape Application User Interface.........................................................................138 Enabling User Interactions with the Shapes Application..........................................................149 Generating Classes ........................................................................................................................ 151 Modifying Generated Classes ........................................................................................................ 160 Using the Transformable Type.......................................................................................................165 Validating Data .............................................................................................................................. 168 Custom Validation.....................................................................................................................170 Invoking Validation ................................................................................................................... 174 Default Values ........................................................................................................................... 174 Undoing and Redoing.....................................................................................................................175 Undo Groups..............................................................................................................................176 Limiting the Undo Stack............................................................................................................176 ■CONTENTS vii ■CONTENTS viii Disabling Undo Tracking...........................................................................................................176 Adding Undo to Shapes.............................................................................................................177 Summary........................................................................................................................................ 180 ■ Chapter 6: Refining Result Sets........................................................................................................181 Building the Test Application......................................................................................................... 181 Creating the Org Chart Data......................................................................................................183 Reading and Outputting the Data..............................................................................................186 Filtering.......................................................................................................................................... 187 Expressions for a Single Value .................................................................................................188 Expressions for a Collection .....................................................................................................189 Comparison Predicates.............................................................................................................189 Compound Predicates...............................................................................................................192 Subqueries ................................................................................................................................ 194 Aggregating ................................................................................................................................... 197 Sorting ........................................................................................................................................... 199 Returning Unsorted Data...........................................................................................................199 Sorting Data on One Criterion ................................................................................................... 200 Sorting on Multiple Criteria ......................................................................................................201 Summary........................................................................................................................................ 202 ■ Chapter 7: Tuning Performance and Memory Usage........................................................................203 Building the Application for Testing .............................................................................................. 203 Creating the Core Data Project .................................................................................................204 Creating the Data Model and Data ............................................................................................ 206 Creating the Testing View.........................................................................................................208 Building the Testing Framework...............................................................................................211 Adding the Testing Framework to the Application ................................................................... 213 Running Your First Test ............................................................................................................215 Faulting .......................................................................................................................................... 218 Firing Faults..............................................................................................................................218 Faulting and Caching ................................................................................................................ 219 Refaulting .................................................................................................................................. 219 Building the Faulting Test ......................................................................................................... 220 Taking Control: Firing Faults on Purpose .................................................................................224 Prefetching................................................................................................................................ 225 Caching .......................................................................................................................................... 228 Expiring.......................................................................................................................................... 231 Memory Consumption...............................................................................................................232 Brute-Force Cache Expiration...................................................................................................232 Expiring the Cache Through Faulting........................................................................................232 Uniquing ......................................................................................................................................... 233 Improve Performance with Better Predicates...............................................................................237 Using Faster Comparators ........................................................................................................238 Using Subqueries ...................................................................................................................... 239 Analyzing Performance ................................................................................................................. 242 Launching Instruments ............................................................................................................. 243 Understanding the Results........................................................................................................246 Summary........................................................................................................................................ 248 ■ Chapter 8: Versioning and Migrating Data ....................................................................................... 251 Versioning ...................................................................................................................................... 252 Switching from Unversioned to Versioned ...............................................................................255 Lightweight Migrations.................................................................................................................. 255 Migrating a Simple Change.......................................................................................................256 Migrating More Complex Changes............................................................................................258 Renaming Entities and Properties ............................................................................................258 Creating a Mapping Model............................................................................................................. 261 Understanding Entity Mappings................................................................................................261 Understanding Property Mappings...........................................................................................263 Creating a New Model Version That Requires a Mapping Model..............................................264 Creating a Mapping Model........................................................................................................268 Migrating Data ............................................................................................................................... 275 ■CONTENTS ix ■CONTENTS Running Your Migration............................................................................................................276 Custom Migrations.........................................................................................................................279 Making Sure Migration Is Needed.............................................................................................279 Setting Up the Migration Manager............................................................................................280 Running the Migration .............................................................................................................. 280 Summary........................................................................................................................................ 281 ■ Chapter 9: Using Core Data in Advanced Applications.....................................................................283 Creating an Application for Note and Password Storage and Encryption.....................................283 Setting Up the Data Model ........................................................................................................284 Setting Up the Tab Bar Controller ............................................................................................. 287 Adding the Tab .......................................................................................................................... 291 Managing Table Views Using NSFetchedResultsController...........................................................297 Understanding NSFetchedResultsController.............................................................................298 The Fetch Request.....................................................................................................................298 The Managed Object Context .................................................................................................... 298 The Section Name Key Path ...................................................................................................... 299 The Cache Name........................................................................................................................ 299 Understanding NSFetchedResultsController Delegates............................................................299 Using NSFetchedResultsController ...........................................................................................300 Incorporating NSFetchedResultsController into MyStash ........................................................300 Creating the Fetched Results Controller ................................................................................... 302 Implementing the NSFetchedResultsControllerDelegate Protocol ........................................... 303 Incorporating the Fetched Results Controllers into the Tables ................................................ 305 Creating the Interface for Adding and Editing Notes and Passwords ...................................... 308 Splitting Data Across Multiple Persistent Stores .......................................................................... 323 Using Model Configurations......................................................................................................324 Adding Encryption ......................................................................................................................... 329 Persistent Store Encryption Using Data Protection .................................................................. 329 Data Encryption.........................................................................................................................332 Using Encryption.......................................................................................................................333 Automatically Encrypting Fields ............................................................................................... 334 Changing the User Interface to Use the text Attribute .............................................................. 335 Testing the Encryption .............................................................................................................. 338 Sending Notifications When Data Changes....................................................................................339 Registering an Observer ...........................................................................................................339 Receiving the Notifications.......................................................................................................340 Seeding Data..................................................................................................................................342 Adding Categories to Passwords..............................................................................................342 Creating a New Version of Seeded Data ...................................................................................345 Error Handling................................................................................................................................ 346 Handling Core Data Operational Errors.....................................................................................346 Handling Validation Errors........................................................................................................349 Handling Validation Errors in MyStash.....................................................................................352 Implementing the Validation Error Handling Routine ............................................................... 353 Summary ................................................................................................................................... 358 ■ Index.................................................................................................................................................359

    5
    192
    7.65MB
    2013-04-02
    11
  • 核心动画编程指南 原著:Apple Inc.

    核心动画编程指南 原著:Apple Inc. 翻译:謝業蘭 联系:xyl.layne@gmail.com 鸣谢:有米移动广告平台 CocoaChina 社区 目录 核心动画编程介绍........................................................................................................................................... 1 本文档结构............................................................................................................................ 1 第一章 核心动画概念 .............................................................................................................................. 2 1.1 核心动画类................................................................................................................ 2 1.1.1 图层类(Layer Classes)............................................................................... 3 1.1.2 动画和计时类 ................................................................................................. 5 1.1.3 布局管理器类 ................................................................................................. 6 1.1.4 事务管理类 ..................................................................................................... 6 第二章 核心动画渲染框架 ...................................................................................................................... 8 第三章 图层的几何和变换 ...................................................................................................................... 9 3.1 图层的坐标系............................................................................................................ 9 3.2 指定图层的几何........................................................................................................ 9 3.3 图层的几何变换...................................................................................................... 12 3.3.1 变换函数 ....................................................................................................... 13 3.3.2 修改变换的数据结构 ................................................................................... 14 3.3.3 通过键值路径修改变换 ............................................................................... 15 第四章 图层树的层次结构 .................................................................................................................... 17 4.1 什么是图层树的层次结构...................................................................................... 17 4.2 在视图里面显示图层.............................................................................................. 17 4.3 从图层结构里面添加和删除图层.......................................................................... 18 4.4 图层的位置调整和大小改变.................................................................................. 19 4.4.1 自动调整图层大小....................................................................................... 19 4.5 裁剪子图层.............................................................................................................. 20 第五章 提供图层内容 ............................................................................................................................ 22 5.1 给CALAYER提供内容 ............................................................................................. 22 5.1.1 设置contents属性.......................................................................................... 22 5.1.2 通过委托提供内容 ....................................................................................... 22 5.1.3 通过子类提供图层的内容 ........................................................................... 24 5.2 修改图层内容的位置.............................................................................................. 26 第六章 动画 ............................................................................................................................................ 29 6.1 动画类和时序.......................................................................................................... 29 2011-11-14|©2011YouMiMobileCo.Ltd.AllRightsReserved.[1] Core Animation Programming Guide 6.2 隐式动画.................................................................................................................. 29 6.3 显式动画.................................................................................................................. 30 6.4 开始和结束显式动画.............................................................................................. 32 第七章 图层的行为 ................................................................................................................................ 33 7.1 行为对象的角色...................................................................................................... 33 7.2 已定义搜索模式的行为键值.................................................................................. 33 7.3 采用CAACTION协议 ............................................................................................... 34 7.4 重载隐式动画.......................................................................................................... 34 7.5 暂时禁用行为.......................................................................................................... 36 第八章 事务 ............................................................................................................................................ 37 8.1 隐式事务.................................................................................................................. 37 8.2 显式事务.................................................................................................................. 37 8.2.1 暂时禁用图层的行为................................................................................... 37 8.2.2 重载隐式动画的时间................................................................................... 38 8.2.3 事务的嵌套................................................................................................... 38 第九章 布局核心动画的图层 ................................................................................................................ 40 9.1 约束布局管理器...................................................................................................... 40 第十章 核心动画的键-值编码扩展 ....................................................................................................... 44 10.1 键-值编码兼容的容器类 ........................................................................................ 44 10.2 支持默认值.............................................................................................................. 44 10.3 封装约定.................................................................................................................. 45 10.4 支持结构字段的关键路径...................................................................................... 45 第十一章 图层样式属性 ............................................................................................................................ 47 11.1 几何属性.................................................................................................................. 47 11.2 背景属性.................................................................................................................. 48 11.3 图层内容.................................................................................................................. 48 11.4 子图层内容.............................................................................................................. 49 11.5 边框属性.................................................................................................................. 50 11.6 滤镜属性.................................................................................................................. 50 11.7 阴影属性.................................................................................................................. 51 11.8 不透明属性.............................................................................................................. 52 11.9 混合属性.................................................................................................................. 52 11.10 遮罩属性..................................................................................................................53 第十二章 示例:核心动画的菜单样式报刊应用....................................................................................55 2011-11-14|©2011YouMiMobileCo.Ltd.AllRightsReserved.[2] Core Animation Programming Guide 12.1 用户界面.................................................................................................................. 55 12.1.1 检测Nib文件................................................................................................. 56 12.1.2 图层的层次结构........................................................................................... 56 12.2 检测应用程序的NIB文件........................................................................................ 57 12.3 检测程序的代码...................................................................................................... 58 12.3.1 QCCoreAnimationKioskStyleMenu.h 和 QCCoreAnimationKioskStyleMenu.m 文件 ................................................................ 58 12.3.2 检测SelectionView.h ..................................................................................... 58 12.3.3 检测SelectionView.h ..................................................................................... 60 12.4 性能注意事项.......................................................................................................... 67 第十三章 动画的属性 ................................................................................................................................ 69 13.1 CALAYER的动画属性 ............................................................................................. 69 13.2 CIFILTER动画的属性............................................................................................... 71 结束语............................................................................................................................................................. 72

    5
    109
    1.5MB
    2013-03-05
    10
  • git 使用说明

    目录 1 起步 1.1 1.2 1.3 1.4 1.5 2 Git 基础 11 2.1 取得项目的Git仓库 ................................ 11 2.1.1 从当前目录初始化 .............................. 11 2.1.2 从现有仓库克隆 ............................... 12 2.2 记录每次更新到仓库................................. 12 2.2.1 检查当前文件状态 .............................. 12 2.2.2跟踪新文件 ................................. 13 2.2.3 暂存已修改文件 ............................... 14 2.2.4 忽略某些文件 ................................ 15 2.2.5 查看已暂存和未暂存的更新 .......................... 16 2.2.6提交更新 .................................. 18 关于版本控制.................................... 1 1.1.1 本地版本控制系统 .............................. 1 1.1.2 集中化的版本控制系统 ............................ 1 1.1.3 分布式版本控制系统 ............................. 2 Git的历史..................................... 3 Git基础要点.................................... 3 1.3.1 直接快照,而非比较差异 ........................... 4 1.3.2 近乎所有操作都可本地执行 .......................... 4 1.3.3 时刻保持数据完整性 ............................. 5 1.3.4 多数操作仅添加数据 ............................. 5 1.3.5三种状态 .................................. 5 安装Git...................................... 6 1.4.1 从源代码安装 ................................ 6 1.4.2 在Linux上安装 ............................... 7 1.4.3在Mac上安装................................ 7 1.4.4 在Windows上安装 .............................. 7 初次运行Git前的配置 ............................... 8 1.5.1用户信息 .................................. 9 1.5.2文本编辑器 ................................. 9 1.5.3 差异分析工具 ................................ 9 1.5.4 查看配置信息 ................................ 9 获取帮助...................................... 10 1.6 1.7小结........................................ 10 iii 1 2.2.7 跳过使用暂存区域 .............................. 19 2.2.8移除文件 .................................. 19 2.2.9移动文件 .................................. 21 2.3 查看提交历史.................................... 21 2.3.1 限制输出长度 ................................ 25 2.3.2 使用图形化工具查阅提交历史 ......................... 26 2.4 撤消操作...................................... 26 2.4.1 修改最后一次提交 .............................. 26 2.4.2 取消已经暂存的文件 ............................. 27 2.4.3 取消对文件的修改 .............................. 28 2.5 远程仓库的使用................................... 29 2.5.1 查看当前的远程库 .............................. 29 2.5.2 添加远程仓库 ................................ 30 2.5.3 从远程仓库抓取数据 ............................. 30 2.5.4 推送数据到远程仓库 ............................. 31 2.5.5 查看远程仓库信息 .............................. 31 2.5.6 远程仓库的删除和重命名 ........................... 32 2.6 打标签....................................... 32 2.6.1 列显已有的标签 ............................... 33 2.6.2新建标签 .................................. 33 2.6.3 含附注的标签 ................................ 33 2.6.4签署标签 .................................. 34 2.6.5轻量级标签 ................................. 34 2.6.6验证标签 .................................. 35 2.6.7 后期加注标签 ................................ 35 2.6.8分享标签 .................................. 36 2.7 技巧和窍门..................................... 37 2.7.1自动完成 .................................. 37 2.7.2 Git命令别名 ................................ 38 2.8小结........................................ 39 3 Git 分支 41 3.1 何谓分支...................................... 41 3.2 基本的分支与合并.................................. 45 3.2.1基本分支 .................................. 46 3.2.2基本合并 .................................. 48 3.2.3冲突的合并 ................................. 50 3.3 分支管理...................................... 52 3.4 分支式工作流程................................... 53 3.4.1长期分支 .................................. 53 3.4.2特性分支 .................................. 53 3.5 远程分支...................................... 55 3.5.1推送 .................................... 56 3.5.2跟踪分支 .................................. 58 3.5.3 删除远程分支 ................................ 59 3.6衍合........................................ 59 iv 3.6.1衍合基础 .................................. 59 3.6.2 更多有趣的衍合 ............................... 61 3.6.3衍合的风险 ................................. 63 3.7小结........................................ 64 4 服务器上的 Git 67 4.1协议........................................ 67 4.1.1本地协议 .................................. 67 优点 .................................... 68 缺点 .................................... 68 4.1.2SSH协议 .................................. 68 优点 .................................... 69 缺点 .................................... 69 4.1.3Git协议 .................................. 69 优点 .................................... 69 缺点 .................................... 69 4.1.4 HTTP/S协议 ................................. 69 优点 .................................... 70 缺点 .................................... 70 4.2 在服务器部署Git.................................. 70 4.2.1 将纯目录转移到服务器 ............................ 71 4.2.2小型安装 .................................. 72 SSH连接 .................................. 72 4.3 生成SSH公钥 ................................... 72 4.4 架设服务器..................................... 73 4.5 公共访问...................................... 75 4.6 网页界面GitWeb .................................. 76 4.7 权限管理器Gitosis................................. 78 4.8 Git进程...................................... 81 4.9 Git托管服务.................................... 83 4.9.1 GitHub ................................... 83 4.9.2建立账户 .................................. 83 4.9.3建立新仓库 ................................. 85 4.9.4 从Subversion中导入项目 .......................... 87 4.9.5开始合作 .................................. 87 4.9.6项目页面 .................................. 88 4.9.7 派生(forking)项目 ............................. 90 4.9.8 GitHub小节 ................................. 90 4.10小节........................................ 90 5 分布式 Git 93 5.1 分布式工作流程................................... 93 5.1.1 集中式工作流 ................................ 93 5.1.2 集成管理员工作流 .............................. 94 5.1.3 司令官与副官工作流 ............................. 94 5.2 为项目作贡献.................................... 95 v 5.2.1提交指南 .................................. 96 5.2.2 私有的小型团队 ............................... 97 5.2.3 私有团队间协作 ............................... 102 5.2.4 公开的小型项目 ............................... 106 5.2.5 公开的大型项目 ............................... 110 5.2.6小结 ....................................112 5.3 项目的管理..................................... 112 5.3.1 使用特性分支进行工作 ............................ 112 5.3.2 采纳来自邮件的补丁 ............................. 112 使用apply命令应用补丁 ........................... 113 使用am命令应用补丁 ............................ 113 5.3.3 检出远程分支 ................................ 115 5.3.4 决断代码取舍 ................................ 116 5.3.5 代码集成 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 合并流程 ..................................117 大项目的合并流程 .............................. 119 衍合与挑拣(cherry-pick)的流程 ....................... 120 5.3.6 给发行版签名 ................................ 121 5.3.7 生成内部版本号 ............................... 122 5.3.8 准备发布 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 5.3.9 制作简报 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 5.4 小结 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 6 Git 工具 125 6.1 修订版本(Revision)选择.............................. 125 6.1.1 单个修订版本 ................................ 125 6.1.2 简短的SHA .................................. 125 6.1.3 关于SHA-1的简短说明 ............................ 126 6.1.4 分支引用 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 6.1.5 引用日志里的简称 .............................. 127 6.1.6 祖先引用 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 6.1.7 提交范围 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 双点 ....................................130 多点 ....................................130 三点 ....................................131 6.2 交互式暂存..................................... 131 6.2.1 暂存和撤回文件 ............................... 132 6.2.2 暂存补丁 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 6.3 储藏(Stashing).................................. 135 6.3.1 储藏你的工作 ................................ 135 6.3.2 从储藏中创建分支 .............................. 137 6.4 重写历史 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 6.4.1 改变最近一次提交 .............................. 138 6.4.2 修改多个提交说明 .............................. 138 6.4.3 重排提交 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 6.4.4 压制(Squashing)提交 ............................. 140 vi 6.4.5拆分提交 ..................................141 6.4.6 核弹级选项: filter-branch . . . . . . . . . . . . . . . . . . . . . . . . . . 142 从所有提交中删除一个文件 .......................... 142 将一个子目录设置为新的根目录 ........................ 142 全局性地更换电子邮件地址 .......................... 143 6.5 使用Git调试 ................................... 143 6.5.1文件标注 ..................................143 6.5.2二分查找 ..................................144 6.6 子模块 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 6.6.1 子模块初步 ................................. 146 6.6.2 克隆一个带子模块的项目 ........................... 148 6.6.3上层项目 ..................................150 6.6.4 子模块的问题 ................................ 150 6.7 子树合并 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 6.8 总结 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 7 自定义 Git 155 7.1 配置 Git . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 7.1.1 客户端基本配置 ............................... 155 core.editor ................................. 156 commit.template ............................... 156 core.pager ................................. 157 user.signingkey ............................... 157 core.excludesfile .............................. 157 help.autocorrect .............................. 157 7.1.2 Git中的着色 ................................. 157 color.ui .................................. 158 color.*.................................... 158 7.1.3 外部的合并与比较工具 ............................ 158 7.1.4 格式化与空白 ................................ 161 core.autocrlf ................................ 161 core.whitespace ............................... 161 7.1.5 服务器端配置 ................................ 162 receive.fsckObjects ............................. 162 receive.denyNonFastForwards ......................... 162 receive.denyDeletes ............................. 163 7.2 Git属性 ...................................... 163 7.2.1 二进制文件 ................................. 163 识别二进制文件 ............................... 163 比较二进制文件 ............................... 164 7.2.2 关键字扩展 ................................. 165 7.2.3导出仓库 ..................................167 export-ignore ................................ 168 export-subst ................................ 168 7.2.4合并策略 ..................................168 7.3 Git挂钩 ...................................... 169 vii 7.3.1 安装一个挂钩 ................................ 169 7.3.2 客户端挂钩 ................................. 169 提交工作流挂钩 ............................... 169 E-mail工作流挂钩 .............................. 169 其他客户端挂钩 ............................... 170 7.3.3 服务器端挂钩 ................................ 170 pre-receive和post-receive ......................... 170 update ................................... 170 7.4 AnExampleGit-EnforcedPolicy........................... 171 7.4.1 Server-SideHook .............................. 171 EnforcingaSpecificCommit-MessageFormat ................. 171 EnforcingaUser-BasedACLSystem ...................... 173 EnforcingFast-Forward-OnlyPushes ..................... 175 7.4.2 Client-SideHooks .............................. 176 7.5 Summary ...................................... 180 8 Git 与其他系统 181 8.1 Git与Subversion ................................. 181 8.1.1 git svn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 8.1.2 初始设定 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 8.1.3入门 ....................................182 8.1.4 提交到Subversion .............................. 184 8.1.5 拉取最新进展 ................................ 185 8.1.6 Git分支问题 ................................ 186 8.1.7 Subversion分支 ............................... 187 创建新的SVN分支 .............................. 187 8.1.8 切换当前分支 ................................ 187 8.1.9 对应Subversion的命令 ........................... 188 SVN风格的历史 ............................... 188 SVN 日志 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 SVN服务器信息 ............................... 189 略Subversion之所略 ............................ 189 8.1.10Git-Svn总结 ................................ 190 8.2 迁移到Git..................................... 190 8.2.1导入 ....................................190 8.2.2 Subversion ................................. 190 8.2.3 Perforce .................................. 192 8.2.4 自定导入脚本 ................................ 193 8.3 总结 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 9 Git 内部原理 199 9.1 底层命令(Plumbing)和高层命令(Porcelain)..................... 199 9.2 Git 对象 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 9.2.1 tree(树)对象 ............................... 202 9.2.2 commit(提交)对象 ............................. 204 9.2.3 对象存储 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 viii 9.3 GitReferences................................... 207 9.3.1 HEAD标记 .................................. 208 9.3.2Tags ....................................210 9.3.3 Remotes ................................... 211 9.4 Packfiles ..................................... 211 9.5 TheRefspec .................................... 214 9.5.1 推送Refspec ................................ 216 9.5.2删除引用 ..................................216 9.6 传输协议 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 9.6.1哑协议 ...................................216 9.6.2智能协议 ..................................219 上传数据 ..................................219 下载数据 ..................................219 9.7 维护及数据恢复................................... 220 9.7.1维护 ....................................221 9.7.2数据恢复 ..................................221 9.7.3移除对象 ..................................223 9.8 总结 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226

    5
    52
    4.45MB
    2013-02-01
    10
  • git使用说明(中文版)

    目录 1 起步 1.1 1.2 1.3 1.4 1.5 2 Git 基础 11 2.1 取得项目的Git仓库 ................................ 11 2.1.1 从当前目录初始化 .............................. 11 2.1.2 从现有仓库克隆 ............................... 12 2.2 记录每次更新到仓库................................. 12 2.2.1 检查当前文件状态 .............................. 12 2.2.2跟踪新文件 ................................. 13 2.2.3 暂存已修改文件 ............................... 14 2.2.4 忽略某些文件 ................................ 15 2.2.5 查看已暂存和未暂存的更新 .......................... 16 2.2.6提交更新 .................................. 18 关于版本控制.................................... 1 1.1.1 本地版本控制系统 .............................. 1 1.1.2 集中化的版本控制系统 ............................ 1 1.1.3 分布式版本控制系统 ............................. 2 Git的历史..................................... 3 Git基础要点.................................... 3 1.3.1 直接快照,而非比较差异 ........................... 4 1.3.2 近乎所有操作都可本地执行 .......................... 4 1.3.3 时刻保持数据完整性 ............................. 5 1.3.4 多数操作仅添加数据 ............................. 5 1.3.5三种状态 .................................. 5 安装Git...................................... 6 1.4.1 从源代码安装 ................................ 6 1.4.2 在Linux上安装 ............................... 7 1.4.3在Mac上安装................................ 7 1.4.4 在Windows上安装 .............................. 7 初次运行Git前的配置 ............................... 8 1.5.1用户信息 .................................. 9 1.5.2文本编辑器 ................................. 9 1.5.3 差异分析工具 ................................ 9 1.5.4 查看配置信息 ................................ 9 获取帮助...................................... 10 1.6 1.7小结........................................ 10 iii 1 2.2.7 跳过使用暂存区域 .............................. 19 2.2.8移除文件 .................................. 19 2.2.9移动文件 .................................. 21 2.3 查看提交历史.................................... 21 2.3.1 限制输出长度 ................................ 25 2.3.2 使用图形化工具查阅提交历史 ......................... 26 2.4 撤消操作...................................... 26 2.4.1 修改最后一次提交 .............................. 26 2.4.2 取消已经暂存的文件 ............................. 27 2.4.3 取消对文件的修改 .............................. 28 2.5 远程仓库的使用................................... 29 2.5.1 查看当前的远程库 .............................. 29 2.5.2 添加远程仓库 ................................ 30 2.5.3 从远程仓库抓取数据 ............................. 30 2.5.4 推送数据到远程仓库 ............................. 31 2.5.5 查看远程仓库信息 .............................. 31 2.5.6 远程仓库的删除和重命名 ........................... 32 2.6 打标签....................................... 32 2.6.1 列显已有的标签 ............................... 33 2.6.2新建标签 .................................. 33 2.6.3 含附注的标签 ................................ 33 2.6.4签署标签 .................................. 34 2.6.5轻量级标签 ................................. 34 2.6.6验证标签 .................................. 35 2.6.7 后期加注标签 ................................ 35 2.6.8分享标签 .................................. 36 2.7 技巧和窍门..................................... 37 2.7.1自动完成 .................................. 37 2.7.2 Git命令别名 ................................ 38 2.8小结........................................ 39 3 Git 分支 41 3.1 何谓分支...................................... 41 3.2 基本的分支与合并.................................. 45 3.2.1基本分支 .................................. 46 3.2.2基本合并 .................................. 48 3.2.3冲突的合并 ................................. 50 3.3 分支管理...................................... 52 3.4 分支式工作流程................................... 53 3.4.1长期分支 .................................. 53 3.4.2特性分支 .................................. 53 3.5 远程分支...................................... 55 3.5.1推送 .................................... 56 3.5.2跟踪分支 .................................. 58 3.5.3 删除远程分支 ................................ 59 3.6衍合........................................ 59 iv 3.6.1衍合基础 .................................. 59 3.6.2 更多有趣的衍合 ............................... 61 3.6.3衍合的风险 ................................. 63 3.7小结........................................ 64 4 服务器上的 Git 67 4.1协议........................................ 67 4.1.1本地协议 .................................. 67 优点 .................................... 68 缺点 .................................... 68 4.1.2SSH协议 .................................. 68 优点 .................................... 69 缺点 .................................... 69 4.1.3Git协议 .................................. 69 优点 .................................... 69 缺点 .................................... 69 4.1.4 HTTP/S协议 ................................. 69 优点 .................................... 70 缺点 .................................... 70 4.2 在服务器部署Git.................................. 70 4.2.1 将纯目录转移到服务器 ............................ 71 4.2.2小型安装 .................................. 72 SSH连接 .................................. 72 4.3 生成SSH公钥 ................................... 72 4.4 架设服务器..................................... 73 4.5 公共访问...................................... 75 4.6 网页界面GitWeb .................................. 76 4.7 权限管理器Gitosis................................. 78 4.8 Git进程...................................... 81 4.9 Git托管服务.................................... 83 4.9.1 GitHub ................................... 83 4.9.2建立账户 .................................. 83 4.9.3建立新仓库 ................................. 85 4.9.4 从Subversion中导入项目 .......................... 87 4.9.5开始合作 .................................. 87 4.9.6项目页面 .................................. 88 4.9.7 派生(forking)项目 ............................. 90 4.9.8 GitHub小节 ................................. 90 4.10小节........................................ 90 5 分布式 Git 93 5.1 分布式工作流程................................... 93 5.1.1 集中式工作流 ................................ 93 5.1.2 集成管理员工作流 .............................. 94 5.1.3 司令官与副官工作流 ............................. 94 5.2 为项目作贡献.................................... 95 v 5.2.1提交指南 .................................. 96 5.2.2 私有的小型团队 ............................... 97 5.2.3 私有团队间协作 ............................... 102 5.2.4 公开的小型项目 ............................... 106 5.2.5 公开的大型项目 ............................... 110 5.2.6小结 ....................................112 5.3 项目的管理..................................... 112 5.3.1 使用特性分支进行工作 ............................ 112 5.3.2 采纳来自邮件的补丁 ............................. 112 使用apply命令应用补丁 ........................... 113 使用am命令应用补丁 ............................ 113 5.3.3 检出远程分支 ................................ 115 5.3.4 决断代码取舍 ................................ 116 5.3.5 代码集成 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 合并流程 ..................................117 大项目的合并流程 .............................. 119 衍合与挑拣(cherry-pick)的流程 ....................... 120 5.3.6 给发行版签名 ................................ 121 5.3.7 生成内部版本号 ............................... 122 5.3.8 准备发布 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 5.3.9 制作简报 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 5.4 小结 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 6 Git 工具 125 6.1 修订版本(Revision)选择.............................. 125 6.1.1 单个修订版本 ................................ 125 6.1.2 简短的SHA .................................. 125 6.1.3 关于SHA-1的简短说明 ............................ 126 6.1.4 分支引用 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 6.1.5 引用日志里的简称 .............................. 127 6.1.6 祖先引用 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 6.1.7 提交范围 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 双点 ....................................130 多点 ....................................130 三点 ....................................131 6.2 交互式暂存..................................... 131 6.2.1 暂存和撤回文件 ............................... 132 6.2.2 暂存补丁 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 6.3 储藏(Stashing).................................. 135 6.3.1 储藏你的工作 ................................ 135 6.3.2 从储藏中创建分支 .............................. 137 6.4 重写历史 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 6.4.1 改变最近一次提交 .............................. 138 6.4.2 修改多个提交说明 .............................. 138 6.4.3 重排提交 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 6.4.4 压制(Squashing)提交 ............................. 140 vi 6.4.5拆分提交 ..................................141 6.4.6 核弹级选项: filter-branch . . . . . . . . . . . . . . . . . . . . . . . . . . 142 从所有提交中删除一个文件 .......................... 142 将一个子目录设置为新的根目录 ........................ 142 全局性地更换电子邮件地址 .......................... 143 6.5 使用Git调试 ................................... 143 6.5.1文件标注 ..................................143 6.5.2二分查找 ..................................144 6.6 子模块 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 6.6.1 子模块初步 ................................. 146 6.6.2 克隆一个带子模块的项目 ........................... 148 6.6.3上层项目 ..................................150 6.6.4 子模块的问题 ................................ 150 6.7 子树合并 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 6.8 总结 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 7 自定义 Git 155 7.1 配置 Git . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 7.1.1 客户端基本配置 ............................... 155 core.editor ................................. 156 commit.template ............................... 156 core.pager ................................. 157 user.signingkey ............................... 157 core.excludesfile .............................. 157 help.autocorrect .............................. 157 7.1.2 Git中的着色 ................................. 157 color.ui .................................. 158 color.*.................................... 158 7.1.3 外部的合并与比较工具 ............................ 158 7.1.4 格式化与空白 ................................ 161 core.autocrlf ................................ 161 core.whitespace ............................... 161 7.1.5 服务器端配置 ................................ 162 receive.fsckObjects ............................. 162 receive.denyNonFastForwards ......................... 162 receive.denyDeletes ............................. 163 7.2 Git属性 ...................................... 163 7.2.1 二进制文件 ................................. 163 识别二进制文件 ............................... 163 比较二进制文件 ............................... 164 7.2.2 关键字扩展 ................................. 165 7.2.3导出仓库 ..................................167 export-ignore ................................ 168 export-subst ................................ 168 7.2.4合并策略 ..................................168 7.3 Git挂钩 ...................................... 169 vii 7.3.1 安装一个挂钩 ................................ 169 7.3.2 客户端挂钩 ................................. 169 提交工作流挂钩 ............................... 169 E-mail工作流挂钩 .............................. 169 其他客户端挂钩 ............................... 170 7.3.3 服务器端挂钩 ................................ 170 pre-receive和post-receive ......................... 170 update ................................... 170 7.4 AnExampleGit-EnforcedPolicy........................... 171 7.4.1 Server-SideHook .............................. 171 EnforcingaSpecificCommit-MessageFormat ................. 171 EnforcingaUser-BasedACLSystem ...................... 173 EnforcingFast-Forward-OnlyPushes ..................... 175 7.4.2 Client-SideHooks .............................. 176 7.5 Summary ...................................... 180 8 Git 与其他系统 181 8.1 Git与Subversion ................................. 181 8.1.1 git svn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 8.1.2 初始设定 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 8.1.3入门 ....................................182 8.1.4 提交到Subversion .............................. 184 8.1.5 拉取最新进展 ................................ 185 8.1.6 Git分支问题 ................................ 186 8.1.7 Subversion分支 ............................... 187 创建新的SVN分支 .............................. 187 8.1.8 切换当前分支 ................................ 187 8.1.9 对应Subversion的命令 ........................... 188 SVN风格的历史 ............................... 188 SVN 日志 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 SVN服务器信息 ............................... 189 略Subversion之所略 ............................ 189 8.1.10Git-Svn总结 ................................ 190 8.2 迁移到Git..................................... 190 8.2.1导入 ....................................190 8.2.2 Subversion ................................. 190 8.2.3 Perforce .................................. 192 8.2.4 自定导入脚本 ................................ 193 8.3 总结 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 9 Git 内部原理 199 9.1 底层命令(Plumbing)和高层命令(Porcelain)..................... 199 9.2 Git 对象 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 9.2.1 tree(树)对象 ............................... 202 9.2.2 commit(提交)对象 ............................. 204 9.2.3 对象存储 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 viii 9.3 GitReferences................................... 207 9.3.1 HEAD标记 .................................. 208 9.3.2Tags ....................................210 9.3.3 Remotes ................................... 211 9.4 Packfiles ..................................... 211 9.5 TheRefspec .................................... 214 9.5.1 推送Refspec ................................ 216 9.5.2删除引用 ..................................216 9.6 传输协议 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 9.6.1哑协议 ...................................216 9.6.2智能协议 ..................................219 上传数据 ..................................219 下载数据 ..................................219 9.7 维护及数据恢复................................... 220 9.7.1维护 ....................................221 9.7.2数据恢复 ..................................221 9.7.3移除对象 ..................................223 9.8 总结 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226

    0
    28
    4.45MB
    2013-02-01
    0
  • openGL超级宝典(第四版).pdf

    中文名: openGL超级宝典(第四版)及代码 英文名: OpenGL SuperBible (4th Edition) 版本: [PDF] 发行日期: 2007年06月28日 地区: 美国 对白语言: 英语 简介: 原书名:OpenGL SuperBible (4th Edition) 作者:Richard S. Wright, Jr. 出版社:Addison Wesley 页码: 1262 版次:4 丛书名: OpenGL SuperBible 出版日期: 2007-6-28 官方网站:http://www.starstonesoftware.com/OpenGL/ 本书是OpenGL编程指南,涵盖了使用新版本的OpenGL进行编程所需要的主要知识。 全书分3个部分,共23章,另有3个附录。第一部介绍经典OpenGL绘图的所有基础知识,包括3D图形和OpenGL简介, OpenGL空间绘图,几何转换,颜色、材料和光照,纹理贴图,曲线和表面,管线,交互式图形等内容。第二部分是着重介绍OpenGL的一些高级功能。第三部分别介绍了不同操作系统平台上的OpenGL功能特性和编程细节。 本书适合于希望精通OpenGL以便对他们的图形编程和3D图形知识进行扩展的程序员,也可以帮助那些经验丰富的OpenGL程序员学习如何移植自己的应用程序。本书既可以作为学习OpenGL的教材,也可以作为随时查阅的参考手册。 第二个文件是书里面代码 Editorial Reviews Product Description OpenGL ® SuperBible, Fourth Edition, begins by illuminating the core techniques of “classic” OpenGL graphics programming, from drawing in space to geometric transformations, from lighting to texture mapping. The authors cover newer OpenGL capabilities, including OpenGL 2.1’s powerful programmable pipeline, vertex and fragment shaders, and advanced buffers. They also present thorough, up-to-date introductions to OpenGL implementations on multiple platforms, including Windows, Mac OS X, GNU/Linux, UNIX, and embedded systems. Coverage includes · An entirely new chapter on OpenGL ES programming for handhelds · Completely rewritten chapters on OpenGL for Mac OS X and GNU/Linux · Up-to-the-minute coverage of OpenGL on Windows Vista · New material on floating-point color buffers and off-screen rendering · In-depth introductions to 3D modeling and object composition · Expert techniques for utilizing OpenGL’s programmable shading language · Thorough coverage of curves, surfaces, interactive graphics, textures, shadows, and much more · A fully updated API reference, and an all-new section of full-color images You’ll rely on this book constantly–whether you’re learning OpenGL for the first time, deepening your graphics programming expertise, upgrading from older versions of OpenGL, or porting applications from other environments. Now part of the OpenGL Technical Library–The official knowledge resource for OpenGL developers The OpenGL Technical Library provides tutorial and reference books for OpenGL. The Library enables programmers to gain a practical understanding of OpenGL and shows them how to unlock its full potential. Originally developed by SGI, the Library continues to evolve under the auspices of the OpenGL Architecture Review Board (ARB) Steering Group (now part of the Khronos Group), an industry consortium responsible for guiding the evolution of OpenGL and related technologies. Contents Preface xxvii About the Authors xxxv Introduction 1 Part I: The Old Testament Chapter 1 Introduction to 3D Graphics and OpenGL 9 Chapter 2 Using OpenGL 33 Chapter 3 Drawing in Space: Geometric Primitives and Buffers 73 Chapter 4 Geometric Transformations: The Pipeline 127 Chapter 5 Color, Materials, and Lighting: The Basics 173 Chapter 6 More on Colors and Materials 229 Chapter 7 Imaging with OpenGL 251 Chapter 8 Texture Mapping: The Basics 303 Chapter 9 Texture Mapping: Beyond the Basics 341 Chapter 10 Curves and Surfaces 377 Chapter 11 It’s All About the Pipeline: Faster Geometry Throughput 421 Chapter 12 Interactive Graphics 457 Chapter 13 Occlusion Queries: Why Do More Work Than You Need To? 481 Chapter 14 Depth Textures and Shadows 495 Part II: The New Testament Chapter 15 Programmable Pipeline: This Isn’t Your Father’s OpenGL 515 Chapter 16 Vertex Shading: Do-It-Yourself Transform, Lighting, and Texgen 547 Chapter 17 Fragment Shading: Empower Your Pixel Processing 567 Chapter 18 Advanced Buffers 601 Part III: The Apocrypha Chapter 19 Wiggle: OpenGL on Windows 641 Chapter 20 OpenGL on Mac OS X 685 Chapter 21 OpenGL on Linux 713 Chapter 22 OpenGL ES — OpenGL on the Small 735 Appendix A Further Reading/References 773 Appendix B Glossary 777 Appendix C API Reference 783 Index 1141 About the Author Richard S. Wright, Jr.has been using OpenGL for more than 12 years, since it first became available on the Windows platform, and teaches OpenGL programming in the game design degree program at Full Sail in Orlando, Florida. Currently, Richard is the president of Starstone Software Systems, Inc., where he develops third-party multimedia simulation software for the PC and Macintosh platforms using OpenGL. Previously with Real 3D/Lockheed Martin, Richard was a regular OpenGL ARB attendee and contributed to the OpenGL 1.2 specification and conformance tests. Since then, Richard has worked in multidimensional database visualization, game development, medical diagnostic visualization, and astronomical space simulation. Richard first learned to program in the eighth grade in 1978 on a paper terminal. At age 16, his parents let him buy a computer with his grass-cutting money instead of a car, and he sold his first computer program less than a year later (and it was a graphics program!). When he graduated from high school, his first job was teaching programming and computer literacy for a local consumer education company. He studied electrical engineering and computer science at the University of Louisville’s Speed Scientific School and made it half way through his senior year before his career got the best of him and took him to Florida. A native of Louisville, Kentucky, he now lives with his wife and three children in Lake Mary, Florida. When not programming or dodging hurricanes, Richard is an avid amateur astronomer and an Adult Sunday School teacher. Benjamin Lipchak graduated from Worcester Polytechnic Institute with a double major in technical writing and computer science. “Why would anyone with a CS degree want to become a writer?” That was the question asked of him one fateful morning when Benj was interviewing for a tech writing job at Digital Equipment Corporation. Benj’s interview took longer than scheduled, and he left that day with job offer in hand to work on the software team responsible for DEC’s AlphaStation OpenGL drivers. Benj’s participation in the OpenGL Architecture Review Board began when he chaired the working group that generated the GL_ARB_fragment_program extension spec. While chairing the Khronos OpenGL Ecosystem Technical SubGroup, he established the OpenGL SDK and created the OpenGL Pipeline newsletter, of which he remains editor. Benj will now participate in the Khronos OpenGL ES Working Group. After 12 years of OpenGL driver development and driver team management at DEC, Compaq, and ATI, he is headed for smaller pastures. Benj recently became manager of AMD’s handheld software team. Although the API is familiar, the new challenges of size and power consumption make for a great change of scenery. In his fleeting spare time, Benj tries to get outdoors for some hiking or kayaking. He also operates an independent record label, Wachusett Records, specializing in solo piano music. Nicholas Haemel, developer at AMD in the Graphics Products Group, was technical reviewer for OpenGL SuperBible, Third Edition, and contributed the chapters on GLX and OpenGL ES

    5
    315
    15.11MB
    2013-01-14
    16
  • OpenGL编程指南(原书第7版)中文扫描版.pdf.rar

    内容简介: 《OpenGL编程指南(原书第7版)》对OpenGL以及OpenGL实用函数库进行了全面而又权威的介绍,素有“OpenGL红宝书”之誉。《OpenGL编程指南(原书第7版)》的上一个版本覆盖了到OpenGL 2.1版的内容。本版涵盖了OpenGL 3.0和3.1的最新特性。本书以清晰的语言描述了OpenGL的功能以及许多基本的计算机图形技巧,例如创建和渲染3d模型、从不同的透视角度观察物体、使用着色、光照和纹理贴图使场景更加逼真等。另外,本书还深入探讨了许多高级技巧,包括纹理贴图、抗锯齿、雾和大气效果、nurbs、图像处理子集等。此外,《OpenGL编程指南(原书第7版)》还对一些重要的主题进行了讨论,例如提高性能、OpenGL扩展以及跨平台技术等。本书内容详实,讲解生动,图文并茂,是OpenGL程序员的绝佳编程指南。 OpenGL是一种功能强大的软件接口,既可以用于生成高质量的计算机图像,也可以用于编写使用2d和3d物体、位图和彩色图像的交互式应用程序。 《OpenGL编程指南(原书第7版)》对OpenGL以及OpenGL实用函数库进行了全面而又权威的介绍,素有“OpenGL红宝书”之誉。《OpenGL编程指南(原书第7版)》的上一个版本覆盖了截止OpenGL 2.1版的内容。这一版涵盖了OpenGL 3.0和3.1的最新特性。《OpenGL编程指南(原书第7版)》清晰的语言描述了OpenGL的功能以及许多基本的计算机图形技巧,例如创建和渲染3d模型、从不同的透视角度观察物体、使用着色、光照和纹理贴图使场景更加逼真等。本书还深入探讨了许多高级技巧,包括纹理贴图、抗锯齿、雾和大气效果、nurbs、图像处理等。另外,《OpenGL编程指南(原书第7版)》还对一些重要的主题进行了讨论,例如提高性能、OpenGL扩展以及跨平台技术等。 《OpenGL编程指南(原书第7版)》进行了一些更新,涵盖了OpenGL 3.0和3.1的最新特性,包括: 使用帧缓冲区对象进行离屏渲染和纹理更新。 各种新的缓冲区对象类型的示例,包括uniform缓冲区对象、变换反馈缓冲区和顶点数组对象。 使用纹理数组提高使用众多纹理的性能。 使用图元重启和条件渲染来高效地进行渲染。 介绍OpenGL的废弃机制,以及如何针对OpenGL未来版本验证程序。 《OpenGL编程指南(原书第7版)》继续对OpenGL着色语言(glsl)展开讨论,并解释了使用这种语言创建复杂图形效果并提升OpenGL计算威力的机制。OpenGL技术资料库(OpenGL technical library)提供了大量的OpenGL教程和参考书籍,它可以帮助程序员深入理解OpenGL,完全释放OpenGL的潜力。这个资料库最初由sgi开发,目前由khronos OpenGL体系结构审核委员会(arb)工作组维护,这是负责指导OpenGL以及相关技术发展和演变的行业协会。 作者简介: Dave Shreiner是ARM公司的图形技术总监,长期担任SGI核心OpenGL组的成员。他首次开设了OpenGL的商业培训课程,拥有二十多年的计算机图形应用开发经验。Dava定期参加SIGGRAPH和其他全球性的图形工作会议。他是《OpenGL ES 2.0 Programming Guide》和《OpenGL Reference Manual》的作者,也是Addison-Wesley的OpenGL系列的编辑。

    5
    345
    22.65MB
    2013-01-14
    14
  • iPhone笔试面试题

    C语言面试题讲解.doc iPhone开发笔试题(新)-亮点时间110422.doc MW Engineer Test(游戏公司)110422.doc 班德尔测试题.doc 博彦科技测试题 海尔广科数字科技有限公司.docx 论坛-测试题.doc 面试题整理.doc 面试做的题-通卡.txt 文思创新题110422.doc 无线时代.wps 新建 Microsoft Word 文档.doc 行客记事笔试题.doc 中心互动.doc

    4
    108
    3.51MB
    2012-10-09
    9
  • 寺库iphone素材ios

    寺库资源iphone版素材完整版,这是基于iphone版寺库图片的完整素材,上传给大家使用,因为里面包含所有的API说明和部分功能代码,不方便任意下载,还是给那些真正学开发的人下载使用。如有侵权,希望通知下架。

    4
    146
    3.68MB
    2012-07-29
    10
  • UIImageView实现触摸绘图

    核心代码,使用UIImageView实现触摸绘图, 比起使用数组实现要强很多, 使用数组会很费内存,高手请过。minixx新手学习资料保存 //监听触摸事件 -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; currentPoint = [touch locationInView:self]; NSLog(@"currentPoint.x = %f",currentPoint.x); NSLog(@"currentPoint.y = %f",currentPoint.y); UIGraphicsBeginImageContext(self.frame.size); [drawImage.image drawInRect:CGRectMake(0, 0, drawImage.frame.size.width, drawImage.frame.size.height)]; CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapRound); CGContextSetLineWidth(UIGraphicsGetCurrentContext(), 5.0);//设置宽度 CGContextSetRGBStrokeColor(UIGraphicsGetCurrentContext(), 0.0, 0.0, 0.0, 1.0);//设置颜色 CGContextBeginPath(UIGraphicsGetCurrentContext());//开始路径 CGContextMoveToPoint(UIGraphicsGetCurrentContext(), lastPoint.x, lastPoint.y);//起始点坐标 CGContextAddLineToPoint(UIGraphicsGetCurrentContext(),currentPoint.x, currentPoint.y);//终点坐标 CGContextStrokePath(UIGraphicsGetCurrentContext());//开始绘制 //将画好得生成image保存在原图片////////// drawImage.image = UIGraphicsGetImageFromCurrentImageContext();//把图形上下文 UIGraphicsEndImageContext(); lastPoint = currentPoint; // [self setNeedsDisplay]; } -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ }

    5
    152
    41KB
    2012-07-19
    9
  • 分享宗师

    成功上传21个资源即可获取
关注 私信
上传资源赚积分or赚钱