opengl - Does NBOpenGL really worth the effort? -
ok tried learn opengl es 2 (and opengl 4) during eastern vacation because realised dont need athens or vector graphics gui, since dealing 3d graphics anyway. (my project "ephestos" effort of creating 3d app pharo, see "blender")
so when tried run demos error with
nbmacglcontextdriver>>supportscurrentplatform "obviously, mac intel-32 :)" ^ nativeboost platformid = nativeboostconstants mac32plaformid my mac "obviously" not 32-bit 64 bit, dont know if matters since pharo 32 bit anyway. bug obvious, should mac32platformid , not mac32plaformid.
i correct , proceed , gives me new error time in
nbmacglapi>>glapicall: fnspec index: fnindex attributes: attributes context: contexttoretry ^[ (nbcallfailurehandler for: contexttoretry) retrywith: [ :targetclass :targetmethod | (nbfficallout targetclass: targetclass targetmethod: targetmethod fnspec: fnspec) stdcall; generate: [ :gen | self emitcall: fnindex generator: gen ] ] ] on: nbnativecodeerror do: [:err :handler | err errorcode = errorfnnotavailable iftrue: [ "native code installed, function pointer not loaded yet. try load function , retry call" (self trygetfunctionpointer: (self class glfunctions at: fnindex)) iffalse: [ ^ err pass ]. ^ handler retrysend ]. err pass ] the problem here nbcallfailurehandler found. @ first thought nb lagging behind in version download latest configuration smalltalk hub , did
configurationofnativeboost loadstable.
it updated without errors still class found.
so question this, worth struggle nbopengl or better learn how nativeboost works , use opengl myself ?
i yes. nbopengl pre-made wrapper opengl using nativeboost, saves time providing need manually otherwise. better spend time fixing configuration spend lot of time re-doing binding.
Comments
Post a Comment