secondstory / ofxDSHapVideoPlayer

ofxDSHapVideoPlayer is a Hap video player addon for openFrameworks (Windows-only)
Other
37 stars 21 forks source link

Cinder port - Glew required? #12

Closed visiblegroup closed 6 years ago

visiblegroup commented 6 years ago

Hi,

First, thanks for sharing your addon.

I am trying to create a cinder port, but am bumping into a few issues. For example, in ofxDSHapVideoPlayer.cpp line 1412 (glGetTexLevelParameteriv) and line 1414 (glCompressedTexSubImage2D) keep throwing GL_INVALID_OPERATION error. I checked the value of all the parameters in these functions and they are exactly the same in your addon and my cinder port.

The only difference is that I don't include glew and you do and glew.h includes some redefitions of these functions. Do you have any knowledge if this might be the reason for the invalid operation error I am getting?

Thanks!

visiblegroup commented 6 years ago

Also, why do you use Glew anyway? Are you using any OpenGL extensions?

Thanks!

mantissa commented 6 years ago

Hi. I'm glad that you're porting this to Cinder. I can't remember why I used Glew off the top of my head but will look at the code again (it's been a few years!).

mantissa commented 6 years ago

looks like that's part of the OF project source code

visiblegroup commented 6 years ago

Hi,

Yes, I figured that out. Thanks anyway. I managed to make the port working and you can get it here.

Thanks for creating this addon!

mantissa commented 6 years ago

Super!! Sure thing.