I tried to make it integrate more with regular render but couldn't do it well, it still needs a 3D view to take the settings from, and can't run in a separate thread due to OpenGL. However, it is now rendering to an offscreen buffer which then gets displayed in the image window. This requires FBO's to be available, so a fallback creating a new window is still needed. Currently available from the Render menu in the top header.
26 lines
789 B
Python
26 lines
789 B
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
sources = env.Glob('*.c')
|
|
|
|
incs = '../include ../../blenlib ../../blenkernel ../../blenfont ../../makesdna ../../imbuf'
|
|
incs += ' ../../blenloader ../../windowmanager ../../python ../../makesrna ../../gpu'
|
|
incs += ' ../../render/extern/include'
|
|
incs += ' #/intern/guardedalloc #/extern/glew/include'
|
|
|
|
defs = ''
|
|
|
|
if not env['WITH_BF_PYTHON']:
|
|
defs += 'DISABLE_PYTHON'
|
|
if env['WITH_BF_OPENEXR']:
|
|
defs += ' WITH_OPENEXR'
|
|
|
|
if env['OURPLATFORM'] == 'linux2':
|
|
cflags='-pthread'
|
|
incs += ' ../../../extern/binreloc/include'
|
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
|
|
|
env.BlenderLib ( 'bf_editors_screen', sources, Split(incs), Split(defs), libtype=['core'], priority=[105] )
|