patch [#24178] bge.render.makeScreeshot - with help from Campbell(ideasman42)
authorDalai Felinto <dfelinto@gmail.com>
Sat, 9 Oct 2010 13:46:34 +0000 (13:46 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Sat, 9 Oct 2010 13:46:34 +0000 (13:46 +0000)
commit6b8ca3ccdf7643002237fc59ef42ee1046ce2a70
treede02c7e4085cbc52b3c3d846a4dcca328455c6c5
parentbd00aa972727197daa4b891e7aee8146a706e68c
patch [#24178] bge.render.makeScreeshot - with help from Campbell(ideasman42)
This patch brings back the old functionality from Blender 2.49.
However we are forcing the format to be PNG only (as we had previously on blenderplayer).

Note: If letterboxing is on, we are recording only the camera area of the canvas (cool hein?).
Note2: I have a feeling that this is faster than what we had in 2.49 (which was really slow imo). Maybe it could be even faster if we disable PNG compression. Maybe an option for the future.

* patch finalized and committed as part of the BlenderPRO 2010 - BGE development workshop :) *
source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
source/gameengine/BlenderRoutines/KX_BlenderCanvas.cpp
source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
source/gameengine/BlenderRoutines/KX_BlenderGL.h