opengl - Where does glCopyTexImage2D save its pixels to? -
name glcopyteximage2d — copy pixels 2d texture image c specification void glcopyteximage2d(glenum target, glint level, glenum internalformat, glint x, glint y, glsizei width, glsizei height, glint border); apparently, pixels must stored somewhere, where? function returns void , not use pointer parameter.
so, glcopyteximage2d save pixels to?
into texture specify target (e.g. gl_texture_2d, mean bound 2d texture). after using can use glgetteximage fetch pixels texture own buffer.
Comments
Post a Comment