Giter Club home page Giter Club logo

linc_opengl's People

Contributors

le-doux avatar matttuttle avatar ruby0x1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

linc_opengl's Issues

Cpp compilation issue

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

Can't generate textures

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.

'haxe/io/Bytes.h': No such file or directory

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.