Skip to content

Instantly share code, notes, and snippets.

@arturoc
Created March 4, 2013 16:13
Show Gist options
  • Save arturoc/5083363 to your computer and use it in GitHub Desktop.
Save arturoc/5083363 to your computer and use it in GitHub Desktop.
/*
* 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;
};
@IanByun
Copy link

IanByun commented Aug 27, 2016

https://gist.github.com/IanByun/670dcffbdf9af488ec60ac31cf261bb3

updated to match deletion and renaming of ofTextureData members

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment