摘要: 实现步骤 第一步:设置所需要的OpenGL环境 设置上下文环境 删除已经存在的渲染的缓存 设置颜色缓存 设置帧缓存 清除缓存 设置窗口大小 开启功能 编译shander 使用program 获取shader中的属性和uniform索引 第二步:绘制图片 获取图片数据并且的到对应的纹理id 指定纹理, 阅读全文
posted @ 2017-01-17 11:32 banananana 阅读(8459) 评论(1) 推荐(0) 编辑
摘要: 题意 Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, ret 阅读全文
posted @ 2017-01-17 06:59 banananana 阅读(243) 评论(0) 推荐(0) 编辑