You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use glGenTextures(n:Int, textures:Array), but it gives me the following error:
Error: ./src/com/pixd/Texture.cpp: In static member function ‘static com::pixd::Texture com::pixd::Texture_obj::load(String)’:
./src/com/pixd/Texture.cpp:83:25: error: ‘GLuint’ was not declared in this scope
glGenTextures((int)1, (GLuint*)&(Array_obj< int >::__new().Add(tex->m_gpuTex)[0]));
^
./src/com/pixd/Texture.cpp:83:32: error: expected primary-expression before ‘)’ token
glGenTextures((int)1, (GLuint*)&(Array_obj< int >::__new().Add(tex->m_gpuTex)[0]));
^
./src/com/pixd/Texture.cpp:83:83: error: ‘glGenTextures’ was not declared in this scope
glGenTextures((int)1, (GLuint*)&(Array_obj< int >::__new().Add(tex->m_gpuTex)[0]));
^
Error: Build failed
I'm trying to use glGenTextures(n:Int, textures:Array), but it gives me the following error:
Code:
Also why an Array? The function can be re-written to simply return an Array or a single Int since Haxe doesn't do pointers like C++ does.
The text was updated successfully, but these errors were encountered: