乱记的
chgzhang
这个作者很懒,什么都没留下…
展开
-
C++ ifstream
rdbuf()函数 从一个文件中读取内容时,希望读取所有的内容,包括换行符。 可以使用ifstream::rdbuf()进行文件流重定向#include <ifstream>using namespace std;int main(){ ifstream readFile; string fileContent; readFile.open("filename")原创 2017-03-06 13:59:28 · 588 阅读 · 0 评论 -
opengl 遇到的一些问题
1.在使用glTexImage2D()函数时,发现可以加载512*512大小的图片,但是却不能加载2018*1794的图片。//加上像素存储的格式就行了glPixelStorei(GL_UNPACK_ALIGNMENT, 1);glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, im原创 2017-03-07 19:32:46 · 476 阅读 · 0 评论