Ad
Compiling GLUT Using Emscripten
I am trying to compile the following code: http://pastebin.com/024Ew4fK
And I am using the following directives: -s LEGACY_GL_EMULATION=1 -lglut -lGLU -lGL
I got the following warnings:
warning: unresolved symbol: glPointSize
warning: unresolved symbol: glutSolidSphere
warning: unresolved symbol: glutWireSphere
And these are the errors:
WARNING: using emscripten GL immediate mode emulation. This is very limited in what it supports
missing function: glPointSize
uncaught exception: abort(-1) at [email protected]:///C:/Users/Tyrion/Documents/Proyectos/GLUT_SolarSystem/out.js:1173:13
[email protected]:///C:/Users/Tyrion/Documents/Proyectos/GLUT_SolarSystem/out.js:1190:22
[email protected]:///C:/Users/Tyrion/Documents/Proyectos/GLUT_SolarSystem/out.js:15901:44
[email protected]:///C:/Users/Tyrion/Documents/Proyectos/GLUT_SolarSystem/out.js:2135:56
[email protected]:///C:/Users/Tyrion/Documents/Proyectos/GLUT_SolarSystem/out.js:11483:2
[email protected]:///C:/Users/Tyrion/Documents/Proyectos/GLUT_SolarSystem/out.js:15672:8
[email protected]:///C:/Users/Tyrion/Documents/Proyectos/GLUT_SolarSystem/out.js:15766:15
[email protected]:///C:/Users/Tyrion/Documents/Proyectos/GLUT_SolarSystem/out.js:15824:42
run/<@file:///C:/Users/Tyrion/Documents/Proyectos/GLUT_SolarSystem/out.js:15835:7
setTimeout handler*[email protected]:///C:/Users/Tyrion/Documents/Proyectos/GLUT_SolarSystem/out.js:15831:5
@file:///C:/Users/Tyrion/Documents/Proyectos/GLUT_SolarSystem/out.js:15927:1
Why does it say that glPointSize is missing?
Ad
Answer
These are the features of Glut supported by Emscripten: https://github.com/kripken/emscripten/blob/master/src/library_glut.js
In order to draw something, for example a sphere, Kripken suggested somewhere to look for a function written in C that does it by itself and then, to port that function to my program.
Ad
source: stackoverflow.com
Related Questions
- → How to update data attribute on Ajax complete
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → Octobercms Component Unique id (Twig & Javascript)
- → Passing a JS var from AJAX response to Twig
- → Laravel {!! Form::open() !!} doesn't work within AngularJS
- → DropzoneJS & Laravel - Output form validation errors
- → Import statement and Babel
- → Uncaught TypeError: Cannot read property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined
- → React-router: Passing props to children
- → ListView.DataSource looping data for React Native
- → Can't test submit handler in React component
- → React + Flux - How to avoid global variable
- → Webpack, React & Babel, not rendering DOM
Ad