TGE and Mac OS X Cocoa
by Larry · in Torque Game Engine · 01/17/2006 (10:03 pm) · 1 replies
Can the Torque engine be used in conjunction with the Cocoa windowing layer on OS X? In other words, can one use TGE as a backend to render into a .nib-based Cocoa view? Has anyone done this successfully? If so, are there any significant drawbacks or problems to doing this?
Torque Owner Paul Scott
Default Studio Name
You'll need to alter the mac platform's windowing, opengl setup & event handling code to fit your app.
Basically, Torque doesn't much care where it's rendering to, just be sure you've got an OpenGL context properly attached to the place you want Torque to draw.
Likewise, it doesn't much care where the events are coming from, you just need to be able to translate from platform-specific events to the proper Torque events.
Cheers!
/Paul