4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-14 02:27:36 -04:00

Implement cubemap generate operator

This operator takes a file as an argument and builds a cubemap from it.
Valid options are to supply the output from Plasma's
Graphics.Renderer.GrabCubeMap console command. The operator will find
the other five files and generate a cubemap with the faces saved by
Plasma. Otherwise, any arbitrary image can be supplied. If the filenames
do not fit the expected format, any missing faces will be replaced by
the face specified in the file selector. This will generally result in a
cubemap with six identical faces.
This commit is contained in:
2018-12-13 18:33:57 -05:00
parent 4a48f0da8d
commit 151c31f2e9
8 changed files with 300 additions and 40 deletions

View File

@ -29,6 +29,7 @@ class PyObjectRef {
PyObject* m_object;
public:
PyObjectRef() : m_object() { }
PyObjectRef(PyObject* o) : m_object(o) { }
~PyObjectRef() { Py_XDECREF(m_object); }