The function that frees allocated memory when a C++ ruby object is no longer referenced now works. The function is called freeme and is sent to Ruby via Data_Wrap_Struct. The freeme function takes as a parameter a pointer to the actual C++ object. Ruby passes that object when ruby objects no longer reference the Ruby object that encapsulates the C++ object.
Unfortunately I could not make the character control work. The md2 models didn't get imported well into Irrlicht either.
Also, the physics callback allows the C++ app class to inform Ruby when a collision occurred and who collided. I will try to work more on that feature to make it more powerful.
The following Powershell script will convert a batch of JPEG files to TIFF format: #This Code is released under MIT license [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") $files_folder = 'C:\path-where-your-jpg-files-are\' $pdfs = get-childitem $files_folder -recurse | where {$_.Extension -match "jpg"} foreach($pdf in $pdfs) { $picture = [System.Drawing.Bitmap]::FromFile( $pdf.FullName ) $tiff = $pdf.FullName.replace('.PDF','').replace('.pdf','').replace('.jpg','').replace('.JPG','') + '.tiff' $picture.Save($tiff) }
Comments