-
- Downloads
added scene background gradient and image; exported bitmap stuff to py
The scene background can now be a gradient or a bitmap image in addition to a static color; use scene.SetBackground(gfx.Gradient) or scene.SetBackground(gfx.Bitmap) for this purpose. The gfx.Bitmap class and its import/export functions have been exported to Python. Some cleanup in the OpenGL code to (i) avoid premature rendering before full initialization and (ii) streamline error checking a bit.
Showing
- modules/gfx/pymod/CMakeLists.txt 2 additions, 1 deletionmodules/gfx/pymod/CMakeLists.txt
- modules/gfx/pymod/export_bitmap.cc 46 additions, 0 deletionsmodules/gfx/pymod/export_bitmap.cc
- modules/gfx/pymod/export_scene.cc 8 additions, 2 deletionsmodules/gfx/pymod/export_scene.cc
- modules/gfx/pymod/wrap_gfx.cc 2 additions, 0 deletionsmodules/gfx/pymod/wrap_gfx.cc
- modules/gfx/src/bitmap_io.cc 31 additions, 4 deletionsmodules/gfx/src/bitmap_io.cc
- modules/gfx/src/bitmap_io.hh 3 additions, 2 deletionsmodules/gfx/src/bitmap_io.hh
- modules/gfx/src/gfx_test_object.cc 1 addition, 1 deletionmodules/gfx/src/gfx_test_object.cc
- modules/gfx/src/gl_helper.hh 6 additions, 2 deletionsmodules/gfx/src/gl_helper.hh
- modules/gfx/src/scene.cc 163 additions, 12 deletionsmodules/gfx/src/scene.cc
- modules/gfx/src/scene.hh 18 additions, 1 deletionmodules/gfx/src/scene.hh
Loading
Please register or sign in to comment