Or you could cheat:
// cheater's outline
// set up the screan
SetVirtualResolution(1280,720)
SetWindowSize(1280,720,0)
SetClearColor(150,150,200)
// create the object
CreateObjectBox(1,10,10,10)
SetObjectColor(1,0,255,255,255)
// create an outline object
CreateObjectBox(2,10.5,10.5,10.5)
SetObjectColor(2,0,0,0,255)
SetObjectCullMode(2,2)
// set the camera position
SetCameraPosition(1,0,30,-50)
SetCameraLookAt(1,0,0,0,0)
do
// rotate the object and the outline object
RotateObjectLocalY(1,0.5)
RotateObjectLocalY(2,0.5)
sync()
loop
This use two objects but if you could always add the outline model to the main model.
I also recommend learning something about shaders. I'm no expert but I know a few basic things. I found this
website useful, along with studying some of the AppGameKit specific shaders some have posted.
One slightly annoying thing when looking at older shaders people have posted is that the way the objects colour is loaded into the shader has changed (can't remember when) but if you see "uniform vec4 agk_ObjColor" you need to change it to "uniform vec4 agk_MeshDiffuse"