Revision 4bb749b...

Go back to digest for 8th May 2011

Features in Educational

Aleksey Khudyakov committed changes in [kstars] /:

It required rewrite of TextureManager. Now its API became much simpler
there are just 3(+1) static functions. One to obtain image and two
to bind texture.

Most important changes:

* Texture IDs are cached by Qt so there no point cache them twice
* Texture manager do not own GL context any more. Instead it is
passed as parameter of QGLWidget* type.
* Texture class is not used anywhere but is still here.
* All Q_ASSERTS on QGLContext are gone
* Planet and deep-skyes store their images as QImage not as
textures. Also they are loaded at construction time.

Unfortunately this is rather large changeset but there is no
obvious way to implement these changes incrementally.

File Changes

Modified 13 files
  •   kstars/skyglpainter.cpp
  •   kstars/skyglpainter.h
  •   kstars/skymap.cpp
  •   kstars/skymapgldraw.cpp
  •   kstars/skyqpainter.cpp
  •   kstars/texture.cpp
  •   kstars/texturemanager.cpp
  •   kstars/texturemanager.h
  •   kstars/skyobjects/deepskyobject.cpp
  •   kstars/skyobjects/deepskyobject.h
  •   kstars/skyobjects/ksmoon.cpp
  •   kstars/skyobjects/ksplanetbase.cpp
  •   kstars/skyobjects/ksplanetbase.h
13 files changed in total