Created
March 4, 2013 16:13
-
-
Save arturoc/5083363 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ofPBO.h | |
* | |
* Created on: 08/04/2012 | |
* Author: arturo | |
*/ | |
#pragma once | |
#include "ofConstants.h" | |
#include "ofTexture.h" | |
class ofPBO { | |
public: | |
ofPBO(); | |
virtual ~ofPBO(); | |
void allocate(ofTexture & tex, int numPBOs); | |
void loadData(const ofPixels & pixels); | |
void updateTexture(); | |
private: | |
ofTexture texture; | |
vector<GLuint> pboIds; | |
size_t index; | |
unsigned int dataSize; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/IanByun/670dcffbdf9af488ec60ac31cf261bb3
updated to match deletion and renaming of ofTextureData members