Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

What programming topic would you want the next challenge to be about?  (It might be a good opportunity to focus on a subject you're not familiar with or to reinforce knowledge on one that you already know)

Control Flow
- 2 (2.2%)
Arrays, Strings, Pointers, and References
- 8 (9%)
Functions
- 4 (4.5%)
Basic object-oriented programming
- 30 (33.7%)
A bit more advanced OOP (Composition, Operator overloading, Inheritance, Virtual Functions)
- 18 (20.2%)
Templates
- 8 (9%)
Other (Explain)
- 4 (4.5%)
Working with files?  (Streams)
- 15 (16.9%)

Total Members Voted: 89


Pages: 1 ... 58 59 [60] 61 62 ... 78

Author Topic: Programming Challenges & Resources (#bay12prog) Initiative  (Read 95797 times)

TolyK

  • Bay Watcher
  • Nowan Ilfideme
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #885 on: February 09, 2011, 03:51:52 pm »

sfml - ?
Logged
My Mafia Stats
just do whatevery tolyK and blame it as a bastard mod
Shakerag: Who are you personally suspicious of?
At this point?  TolyK.

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #886 on: February 09, 2011, 03:58:07 pm »

SFML

But it's a matter of taste and purpose, mostly. SDL has more options, better sprite engine, etc, but SFML is more lightweight and more OO than SDL.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

TolyK

  • Bay Watcher
  • Nowan Ilfideme
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #887 on: February 09, 2011, 04:07:30 pm »

SFML

But it's a matter of taste and purpose, mostly. SDL has more options, better sprite engine, etc, but SFML is more lightweight and more OO than SDL.
hmm... thanks for giving me more to learn XD
I'll try it out...
Logged
My Mafia Stats
just do whatevery tolyK and blame it as a bastard mod
Shakerag: Who are you personally suspicious of?
At this point?  TolyK.

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #888 on: February 09, 2011, 04:08:35 pm »

Oh, and a definite plus for the real learner: SDL has numerous tutorials, SFML does not even have complete documentation :D
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

TolyK

  • Bay Watcher
  • Nowan Ilfideme
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #889 on: February 09, 2011, 04:09:50 pm »

yeah I know, sdl first.
though I've gotten the basic API, I still can't make anything useful  :P
also: can either of them be implemented as part of another GUI?
Logged
My Mafia Stats
just do whatevery tolyK and blame it as a bastard mod
Shakerag: Who are you personally suspicious of?
At this point?  TolyK.

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #890 on: February 09, 2011, 04:22:07 pm »

Not sure, have no experience with GUI's in OpenGL yet, but I believe I read somewhere that OpenGL does not like sharing space. So any GUI stuff should be done using OpenGL...

So I looked for a library or something, then found a blogpost on the OpenGL forums of some guy who wanted one as well, and got the advice to write his own. I'm not too sure about that, yet.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

TolyK

  • Bay Watcher
  • Nowan Ilfideme
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #891 on: February 09, 2011, 04:25:37 pm »

how about visual basic .net?
well sfml says it works with it, sdl will probably too...

also will OpenGL be "embeddable" into a windows form in VB?
Logged
My Mafia Stats
just do whatevery tolyK and blame it as a bastard mod
Shakerag: Who are you personally suspicious of?
At this point?  TolyK.

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #892 on: February 09, 2011, 04:26:41 pm »

Hmm. I'm eventually going to have to deal with openGL as well once I get to the point where I actually start thinking about turning my simulations into games. Java supposedly has some decent OpenGL libraries, but I don't know anyone that uses them.
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.

Mondark

  • Bay Watcher
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #893 on: February 09, 2011, 09:53:18 pm »

Java supposedly has some decent OpenGL libraries, but I don't know anyone that uses them.

Now you do.

JOGL is a pretty straightforward set of bindings, if you already know OpenGL you can probably jump right in.  If you just want to make 3D games/simulations in Java, you might be better off looking at LWJGL, a slightly nicer wrapper for JOGL, or JME3, a really very nice toolkit geared towards making games, and it comes complete with easy Bullet physics integration and some nice GUI tools as well.
Logged
Fefeshnelmargalip

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #894 on: February 09, 2011, 10:10:02 pm »

Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

Blank Expression

  • Bay Watcher
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #895 on: February 10, 2011, 03:06:31 pm »

Java supposedly has some decent OpenGL libraries, but I don't know anyone that uses them.

Now you do.

JOGL is a pretty straightforward set of bindings, if you already know OpenGL you can probably jump right in.  If you just want to make 3D games/simulations in Java, you might be better off looking at LWJGL, a slightly nicer wrapper for JOGL, or JME3, a really very nice toolkit geared towards making games, and it comes complete with easy Bullet physics integration and some nice GUI tools as well.
JME3 is probably the best way to go in Java. It's not perfect, but the problems are more with Java (the language, not the runtime) rather than the library itself.
Logged

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #896 on: February 11, 2011, 03:47:02 pm »

What's wrong with my tree nodes?
Code: [Select]
typedef struct _node {
  int weight;
  node* left;
  node* right;
} node;
Compiling gives me this:
Code: [Select]
huff.c:8:3: error: expected specifier-qualifier-list before ‘node’it refers to the "node* left" part. What's a specifier-qualifier-list, and why can't a struct contain more of itself?

e, Wait, it should be "struct _node* left", never mind.
« Last Edit: February 11, 2011, 03:49:21 pm by ILikePie »
Logged

TolyK

  • Bay Watcher
  • Nowan Ilfideme
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #897 on: February 11, 2011, 03:48:58 pm »

C++?
shit, can someone explain C++ tree building in a spoiler? i'm kinda lazy to look through the thread of 60 pages :P
Logged
My Mafia Stats
just do whatevery tolyK and blame it as a bastard mod
Shakerag: Who are you personally suspicious of?
At this point?  TolyK.

ILikePie

  • Bay Watcher
  • Call me Ron
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #898 on: February 11, 2011, 04:08:30 pm »

That's C actually. I'm still trying to work it, but in order to build a tree you need a node struct, like the one I've got on top:
Code: [Select]
typedef struct _node {
  int value;
  struct _node* left;
  struct _node* right;
} node;
Create, say, three nodes, and link them together:
Code: [Select]
node a,b,c;
a.value = 5; b.value = 1; c.value = 2;

a.left = &b;
a.right = &c;
Now b and c's left and right nodes can be accessed with, if I remember correctly, a->left->left. Correct me if I'm wrong, it's been a while, and I've never done trees before.
Logged

Nadaka

  • Bay Watcher
    • View Profile
    • http://www.nadaka.us
Re: Programming Challenges & Resources (#bay12prog) Initiative
« Reply #899 on: February 11, 2011, 04:23:33 pm »

Its been forever since I did c/c++, so take what I say wit a grain of salt...
(*foo).bar is the same as foo -> bar

so (*(*a).left).left is the same as a -> left -> left
Logged
Take me out to the black, tell them I ain't comin' back...
I don't care cause I'm still free, you can't take the sky from me...

I turned myself into a monster, to fight against the monsters of the world.
Pages: 1 ... 58 59 [60] 61 62 ... 78