[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-games-devel
Subject:    [Kde-games-devel] KGameCanvas --> QGraphicsView adapter
From:       "Paolo Capriotti" <p.capriotti () gmail ! com>
Date:       2007-06-01 8:28:24
Message-ID: 87b37d60706010128u10a06b7bwffa618495dc286a0 () mail ! gmail ! com
[Download RAW message or body]

Hi all,
for those of you who use KGC, it may be interesting to know that I've
written a very simplistic (but working) KGC --> QGV adapter.
Basically, it is a class you can use just like a KGameCanvasGroup, but
paints itself as a QGraphicsItem.
Possible uses are:
- Integrating a KGC-based component in a QGV design. For example,
KWelcomeScreen by me and Riccardo Iaconelli will probably be KGC-based
(at least, the current code surely is), so you are going to need the
adapter to use it in QGV-based games.
- Plasmoidizing a KGC-based game. I did it for Kollision
(http://www.youtube.com/watch?v=rK5rhHnDE0M).

It degrades performance a bit, so I suggest that it be used only for
integration and code-reuse.

The code is quite unpolished, and depends on some changes in KGC. If
you people are interested, I'm going to fix it and check it in.

Any comments are welcome,

Paolo
_______________________________________________
kde-games-devel mailing list
kde-games-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-games-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic