Re: GLFW3 Wrapper Issue

new topic     » goto parent     » topic index » view thread      » older message » newer message

Also, just a tip: add ", 1" to your calls to allocate_string() to allow automatic clean-up. Otherwise you've got a (very tiny) memory leak in those functions. Depending on how many times you call such functions, your program could eventually crash because it's out of memory.

public function glfwCreateWindow(integer w,integer h,sequence title,atom mon,atom win) 
 
 atom str 
 str = allocate_string(title, 1) -- cleanup = 1 
  
 return c_func(xglfwCreateWindow,{w,h,str,mon,win}) 
	 
end function				 

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu