SDL + Kdevelop, using SDL template

Is it possible to create a SDL application template in Kdevelop ?

Francois

ps: find enclosed below the faq on this issue, which is starting to be
outdated.

A Better SDL & KDevelop Setup
KDevelop has an Application Wizard which is template based (this is the same
Wizard that causes the whole KDevelop and SDL conflict). Technically
speaking you can write new templates for this wizard which will produce a
build process better tuned for SDL.

The problem is that the latest stable version of KDevelop at the time of
this writing is version 1.4. The 1.X series of KDevelop has this template
information hardcoded into KDevelop’s source. Forgetting any gripes,
complaints and chastizement to the KDevelop team for doing such a thing,
this policy essentially means that without hacking up your existing template
files, you will not be able to add new templates to the mix.

However, all is not lost. KDevelop 2.0 (which is presently under very active
development) will apparently have the ability to import new templates (it
supposedly will have a “plugin” feature as well, which may assist in further
solving this problem).

So technically you will be able to write your own templates for the KDevelop
Application Wizard. Thus it is very conceivable that someone, someday will
write an SDL application template for this wizard which will make this
document obsolete.

I do not know how these templates work, nor do I fully understand the
auto{make|conf} process, so I will likely not be the person writing it.
However, I look forward to the day that this template will be written :wink:

Hi,
According to the SDL tutorials, whenever you get a window-resize event,
you must call the SDL_SetVideoMode()

Using this with OpenGL under linux seems to work fine, but under windows
all the textures are lost and must be reloaded.

I’ve noticed that if you dont use the SDL_setVideoMode the textures are
not destroyed but there are times that the window gets screwed.

Can someone explain what is the proper use of SDL during resizing window
events with OpenGL??

Could this be an SDL bug under windows?

Regards,
Nick

Hi,
According to the SDL tutorials, whenever you get a window-resize event,
you must call the SDL_SetVideoMode()

I do not think so if you have a non-fullscreen window

Using this with OpenGL under linux seems to work fine, but under windows
all the textures are lost and must be reloaded.

Yes! It is Microsoft… Changing resolution kills GL Context and must reload
all textures, display lists, all GL objects in MS Windows.
It has not relation with SDL. It is only Microsoft Windows…

Kalo programmatismo Sympatriwth
Gessos Paulos
Chameleon
http://tassadar.physics.auth.gr/~chameleon
cham_gss at hotmail.NOSPAM.com