snowkit / linc_opengl Goto Github PK
View Code? Open in Web Editor NEWhttp://snowkit.github.io/linc/ Haxe/hxcpp @:native bindings for OpenGL
License: Other
http://snowkit.github.io/linc/ Haxe/hxcpp @:native bindings for OpenGL
License: Other
Seems like linc_opengl.cpp:294
line:
Array< ::Int > result = Array_obj< ::Int >::__new();
should be fixed to:
::Array<int> result = ::Array_obj<int>::__new();
Thanks
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
Code:
var tex = new Texture();
var rawdata = sys.io.File.getBytes(fileName);
var sdata = Image.load_from_memory(rawdata.getData(), rawdata.length, 4);
var sinfo = Image.info_from_memory(rawdata.getData(), rawdata.length);
glGenTextures(1, [tex.m_gpuTex]);
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.
I am unable to compile without adding snow library.
Hi!
I have the next error when i try to use the library:
linc_opengl.h(5): fatal error C1083: Cannot open include file: 'haxe/io/Bytes.h': No such file or directory
I see that it is useless for now. So you can remove it safely.
Cheers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.