← Back to team overview

rpg-mediaproject team mailing list archive

OpenGL-Problems

 

(13:32:45) JumpLink: I'm working on a 2D RPG with OpenGL, GLU and GLUT but
I've some problems with the vapi's for that. I could not use textures, so
I've modified the gl.vapi by hand and it works now, but now I can't use the
texts (fonts) from glut and my OpenGL-displaylist doesn't work. I use the
vapis from http://hg.youterm.com/vala-vapis/ Are there better vapis or
someone has a suggestion what I could use instead?
13:35
(13:35:06) JumpLink: For those interested, here is my code:
http://bazaar.launchpad.net/ ~ rpg-mediaproject/hmproject/0.1/files It is
buildable and runable, you can see the map and you can move the hero
(13:37:56) *kushal [~kdas@xxxxxxxxxxxxxxxxxxxxxxxxx] hat den Raum betreten.*
13:40
(13:43:20) Lethalman: JumpLink, first of all I suggest you to not use
display lists, they aren't optimized in any way... second just get the
vapis and modify them
(13:44:14) Lethalman: JumpLink, third, you can try using cogl to update
your code to do things the opengl4 way
(13:44:27) Lethalman: or clutter since it's a 2d rpg
13:45
(13:46:50) JumpLink: Lethalman: Do you think its is possible (later) to
port the game with cogl or clutter to windows, Mac OS X, and Android
without very big problems?
(13:48:30) Lethalman: JumpLink, android is wip
(13:48:48) JumpLink: wip?
(13:49:00) Lethalman: work in progress
(13:49:09) Lethalman: cogl abstracts gl and gles
(13:49:18) Lethalman: and egl
(13:49:37) Lethalman: so it's not that using straight opengl will make your
app portable to android
13:50
(13:50:24) JumpLink: work in progress sounds good
(13:51:08) JumpLink: what is egl?
(13:51:08) Lethalman: JumpLink, #clutter is a better place for asking about
android progress
(13:51:29) Lethalman: JumpLink,
http://damien.lespiau.name/blog/2011/05/31/clutter-on-android-first-results/
(13:52:26) *morphis [~morphis@xxxxxxxxxxxxxxxxxxxxxxxxxx] hat den Raum
betreten.*
(13:52:46) Lethalman: JumpLink, egl is like glx
(13:52:54) Lethalman: it's a winsys or such
(13:53:00) Lethalman: JumpLink, anyway I see some code in cogl for egl on
android
(13:53:55) JumpLink: I think I will try cogl
(13:53:55) Lethalman: JumpLink,
http://git.gnome.org/browse/cogl/tree/cogl/winsys/cogl-winsys-egl-android.c
(13:54:36) Lethalman: plus if you're going to use straight opengl, in gles
you won't find methods such as glPushMatrix anymore
13:55
(13:55:00) Lethalman: so you better use a library that abstracts the
underlying gl instead of doing it on your own imo
(13:56:19) JumpLink: I'll remember
(13:56:24) *wander hat den Raum verlassen (quit: Ping timeout: 600 seconds).
*
(13:57:53) JumpLink: thanks