New To SDL & Linux programming

Hello!!
I’m new to Linux programming and I’m searching a little
C++ (Object Oriented Programming) example with the makefile
and/or a procedure to make it. Why ? I have tested SDL with a little
C program, and the compilation work fine. Now, I’m thinking about
a game and I want to make OBJECTS (like ball.cpp ball.h with a main.c)
that is working properly and compile. So I just want a little example or
a site that is talking about it (an example with a ball and a main and a
Makefile).

I want to be able to Ball::Draw !! He :slight_smile: but I’ve tryed and I never find
the compilation problem… so HELP ME!!!

ThX GaNg!=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mathieu Girard – Programmeur S?nior en R&D
@Mathieu_Girard
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

  • In the open-source community, we have a favorite quote
    from Mohandas Gandhi: “First they ignore you. Then they
    laugh at you. Then they fight you. Then you win.”
    -Evidently, we’re getting close to winning. LiNuX rUlEz!
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

I usually separate out all my objects, compile them, and link them. I would
suggest making a base class then using virtual methods to control the
rendering of your objects (which are presumably derived form the base
class). I am dong an OpenGL/SDL game in C++ and having a great experience so
far.

  • joel> ----- Original Message -----

From: Mathieu Girard [mailto:mgirard@microtecsecurite.com]
Sent: Thursday, August 16, 2001 9:56 AM
To: sdl at libsdl.org
Subject: [SDL] [SDL]New To SDL & Linux programming…

Hello!!
I’m new to Linux programming and I’m searching a little
C++ (Object Oriented Programming) example with the makefile
and/or a procedure to make it. Why ? I have tested SDL with a little
C program, and the compilation work fine. Now, I’m thinking about
a game and I want to make OBJECTS (like ball.cpp ball.h with a main.c)
that is working properly and compile. So I just want a little example or
a site that is talking about it (an example with a ball and a main and a
Makefile).

I want to be able to Ball::Draw !! He :slight_smile: but I’ve tryed and I never find
the compilation problem… so HELP ME!!!

ThX GaNg!

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mathieu Girard – Programmeur S?nior en R&D
mgirard at microtecsecurite.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

  • In the open-source community, we have a favorite quote
    from Mohandas Gandhi: “First they ignore you. Then they
    laugh at you. Then they fight you. Then you win.”
    -Evidently, we’re getting close to winning. LiNuX rUlEz!
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Salut Mathieu,
je te recommande Objective-C pour la programmation
Object, c’est un peu ?trange au d?but mais une fois
que tu as la main tu sais toujours ou tu es et il n’y a pas
moyen de se perdre.

Pourquoi je te recommande Objective-C, tout simplement parce que tu
peux cr?er tes objets et tout ?crire en C normal, avec appel des fonctions
C traditionnelles dans les m?thodes de tes objets.

Il y a plusieurs distribution, dont l’officielle pour Linux
:http://www.gnustep.org
sinon j’en ai cr?? une ? part qui est un peu sp?ciale
car adapt?e ? mes besoins.

Pour avoir une id?e de la relation entre SDL et Objective-C utilisant
la distribution officielle, je te recommande http://www.3dkit.org

A +

    Jocelyn

“Mathieu Girard” a ?crit dans le message
news: mailman.997980664.27422.sdl at libsdl.org…> Hello!!

    I'm new to Linux programming and I'm searching a little

C++ (Object Oriented Programming) example with the makefile
and/or a procedure to make it. Why ? I have tested SDL with a little
C program, and the compilation work fine. Now, I’m thinking about
a game and I want to make OBJECTS (like ball.cpp ball.h with a main.c)
that is working properly and compile. So I just want a little example or
a site that is talking about it (an example with a ball and a main and a
Makefile).

I want to be able to Ball::Draw !! He :slight_smile: but I’ve tryed and I never find
the compilation problem… so HELP ME!!!

ThX GaNg!

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mathieu Girard – Programmeur S?nior en R&D
mgirard at microtecsecurite.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

  • In the open-source community, we have a favorite quote
    from Mohandas Gandhi: “First they ignore you. Then they
    laugh at you. Then they fight you. Then you win.”
    -Evidently, we’re getting close to winning. LiNuX rUlEz!
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=