摘要: LTexture.h bool lock(); bool unlock(); GLuint* getPixelData32();//获取像素 GLuint getPixel32( GLuint x, GLuint y );//获取x,y位置对应的像素点 void setPixel32( GLuint 阅读全文
posted @ 2017-11-24 18:20 yongfengnice 阅读(868) 评论(0) 推荐(0)
摘要: 纹理渲染的图片的宽度和高度需要是二次幂的,如果不是二次幂的,需要通过填充的方式(就是添加边距),填充到二次幂。 LTexture.h bool loadTextureFromPixels32( GLuint* pixels, GLuint imgWidth, GLuint imgHeight, GL 阅读全文
posted @ 2017-11-24 17:23 yongfengnice 阅读(763) 评论(0) 推荐(0)