MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / upload

Method upload

examples/viewer.h:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101
102 void upload()
103 {
104 bindToUnit(GL_TEXTURE0);
105 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
106 glTexSubImage2D(GL_TEXTURE_RECTANGLE, /*level*/0, /*xoffset*/0, /*yoffset*/0, width, height, FormatT::Format, FormatT::Type, data);
107 }
108
109 void download()
110 {

Callers 1

renderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected