Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stephanschulz opened this issue Nov 1, 2018 · 1 comment
Open

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

stephanschulz opened this issue Nov 1, 2018 · 1 comment

Comments

@stephanschulz
Copy link

stephanschulz commented Nov 1, 2018

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 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
Copy link
Author

stephanschulz commented Nov 1, 2018

ok here some more test results.

I am using successfully
'
vector vid;
vector<shared_ptr> 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant