My code 

gl shaderSource_shader: shader count: 1  string: shaderString  length: 0.

must not be correct. I try to translate this

glShaderSource(shader, 1, &strFileData, NULL);

using the tutorial in here -> 
http://www.arcsynthesis.org/gltut/Basics/Tut01%20Making%20Shaders.html
<http://www.arcsynthesis.org/gltut/Basics/Tut01%20Making%20Shaders.html>  

I made these assumptions here 

a) Nativeboost would take my string shaderString and pass its address to
glShaderSource()
b) that NB would automagically convert 0 to NULL

are these assumptions correct and if yes why I am getting an "error during
FFI call: NIL"

if no, how I can pass the address of the string and how may I pass NULL as
well ? 

as always you can get my code manually from the NBOpengl repo in smalltalk
hub to take a look at the whole code. I have not added my code to
ConfigurationOfNBOpenGL cause it does not work yet and its a WIP. 



--
View this message in context: 
http://forum.world.st/Understanding-NBOpenGL-tp4686514p4695217.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Reply via email to