ofxHAPAVPlayer icon indicating copy to clipboard operation
ofxHAPAVPlayer copied to clipboard

settings.setGLVersion(3, 2) not working with addon

Open stephanschulz opened this issue 6 years ago • 1 comments

Hey

I am trying to combine some code that requires me to set the GL version as in the code below. But this prevents the HAP addon to display images.

Any idea why?

The problem is mainly with shared_ptr<ofxHAPAVPlayer> vidPtr;

`#include "ofMain.h" #include "ofApp.h" #include "ofAppGLFWWindow.h"

//set file type to Objective-C++ Source

//======================================================================== int main( ){

ofGLFWWindowSettings settings;
settings.setGLVersion(3, 2);    // <--- ofxShadertoy NEEDS the GL Programmable Renderer
settings.windowMode = OF_FULLSCREEN;
settings.decorated = false;
settings.width = 1200;
settings.height = 900;
settings.setPosition(ofVec2f(0,0));
settings.resizable = false;

settings.multiMonitorFullScreen = false; //true;
ofCreateWindow(settings);
ofRunApp(new ofApp);

} `

stephanschulz avatar Nov 01 '18 22:11 stephanschulz

ok here some more test results.

I am using successfully
' vector<ofxHAPAVPlayer> vid; vector<shared_ptr<ofxHAPAVPlayer>> vidPtr; ' without settings.setGLVersion(3, 2);

but with it the vector only shows the first item in the array.

my video videos seem to use HapTextureFormat_RGB_DXT1

stephanschulz avatar Nov 01 '18 22:11 stephanschulz