[Kde-games-devel] simple QGLWidget program

Albert Astals Cid tsdgeos at terra.es
Tue Jan 27 18:43:37 CET 2004


Here you have an example that draws a red triangle.

Note that you'll have to link also with -lGLU as it is needed by gluLookAt

A Dimarts 27 Gener 2004 13:25, Jan Bernatik va escriure:
> Thank's you all for helping me.
>
> I did the changes as mentioned above.
> The initializeGL() works for sure ( color of background is changed as I
> want) but no triangle shows. The interesting is, that when I add
> updateGL() at the end od paintGL(), the program consumes whole CPU time
> and crashes after 3-5 seconds with SIGSEGV. seems strange to me.
> I studied the examples, and they use Lists in OpenGL, so it's a bit
> different from that what I am trying to do.
>
> John
> --------
> icq:78209478
> homepage: linuxdesktop.kn.vutbr.cz
>
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 335 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-games-devel/attachments/20040127/3ffd16a5/main.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: window.h
Type: text/x-chdr
Size: 218 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-games-devel/attachments/20040127/3ffd16a5/window.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: window.cpp
Type: text/x-c++src
Size: 669 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-games-devel/attachments/20040127/3ffd16a5/window-0001.bin


More information about the kde-games-devel mailing list