Search found 94 matches

by adikid89
Sat Sep 01, 2012 3:58 pm
Forum: Programming Discussion
Topic: Callback Library
Replies: 0
Views: 4142

Callback Library

Hi, I just made a pretty nice callback library. It's easy to use in projects, just include a header file. It can make callbacks to normal functions, functors and member functions. Most of the credit goes to http://www.newty.de/jakubik/callback.pdf as that's what I based the library upon. I just adde...
by adikid89
Thu Apr 28, 2011 1:16 am
Forum: Programming Discussion
Topic: C++ 'delete' keyword HELP NEEDED!
Replies: 6
Views: 1327

Re: C++ 'delete' keyword HELP NEEDED!

Don't ever delete this. You're just asking for crashes...
by adikid89
Wed Apr 06, 2011 9:46 am
Forum: Programming Discussion
Topic: [solved]glScissor and resizing window in sfml.
Replies: 4
Views: 1466

glScissor and resizing window in sfml.

It didn't work...the positions were off..But I think I found the way this time :lol: . Because they resized based on the current view/window ratio... I'll uhm *calculate* the coords and size based on that. Still not quite sure how that'd go... but basically, in a window 800x600 with a view of 800x60...
by adikid89
Wed Apr 06, 2011 8:08 am
Forum: Programming Discussion
Topic: [solved]glScissor and resizing window in sfml.
Replies: 4
Views: 1466

Re: glScissor and resizing window in sfml.

Why would I.. I guess I didn't explain properly. I use glScissor to not draw child widgets outside the rect of their parent. And the shape and position of the parent's rect changed when resized, and I need to compensate for that. I think I found a solution though: calculating the positions and size ...
by adikid89
Mon Apr 04, 2011 9:35 am
Forum: Programming Discussion
Topic: [solved]glScissor and resizing window in sfml.
Replies: 4
Views: 1466

[solved]glScissor and resizing window in sfml.

When I resize the window, the clip rectangle for glScissor should change.. but I don't exactly know how to change it so that it fits the rect resized by view used by sfml about doing that... Any help please? :( helpful pictures? normal(not resized) http://img845.imageshack.us/i/normalf.png resized h...
by adikid89
Thu Mar 31, 2011 1:53 pm
Forum: Programming Discussion
Topic: [SOLVED] My code is broken
Replies: 3
Views: 739

Re: My code is broken

It's because of Character player; when you do that.. it'll call the Character() constructor.. the one with no parameters.. which you don't have. What you can do is... in the initializer list initialize the player with the appropriate constructor, like so: ShipManager(): player(0,0,0,0,0.f,0.f) {} Or...
by adikid89
Sun Mar 13, 2011 11:25 am
Forum: Programming Discussion
Topic: [Solved] SDL crashing at blit
Replies: 9
Views: 1585

Re: SDL crashing at blit

Any idea why it is uninitialized? EDIT: Fixed! The variables I were putting into my vector were created in a function, therefore only being temporary. So all I had to do is chance the parameters of the push_back() function to a dynamically allocated MedBullet. Thanks guys! VS seems like a better ID...
by adikid89
Sat Mar 12, 2011 3:55 pm
Forum: Programming Discussion
Topic: [SOLVED] QT
Replies: 11
Views: 1540

Re: QT

Yep. Documentation comes with qt designer, it also comes with a lot of very well document tutorial projects.
by adikid89
Sat Mar 12, 2011 2:52 pm
Forum: Programming Discussion
Topic: [Solved] SDL crashing at blit
Replies: 9
Views: 1585

Re: SDL crashing at blit

My guess.. those MedBullets are temp.. got destroyed and the pointer is thus useless..
by adikid89
Mon Mar 07, 2011 7:15 am
Forum: Programming Discussion
Topic: Yet another loop problem. D':
Replies: 14
Views: 1879

Re: Yet another loop problem. D':

visual basic looks disgusting... sorry.. I had to say it...
by adikid89
Sat Mar 05, 2011 7:10 am
Forum: Programming Discussion
Topic: make a qualified interpreter
Replies: 1
Views: 450

Re: make a qualified interpreter

I'm guessing you'd have to take a test of sorts... but did you really make an account on a (game)programming forum just to ask us that?
by adikid89
Sat Feb 26, 2011 1:16 pm
Forum: Programming Discussion
Topic: [Solved]Weird issue. Seriously need help.
Replies: 12
Views: 1213

Re: Weird issue. Seriously need help.

Why would forward declaring stuff be bad practice? And why would you possible forward declare something that you don't care about? Forward declaring can sometimes spare a useless #include and thus increase compile speed by a tad... Also I like using #pragma once .. as it looks a tad cleaner. Also.. ...
by adikid89
Mon Feb 21, 2011 10:43 am
Forum: Game Development
Topic: Our platform game!
Replies: 7
Views: 1902

Re: Our platform game!

civicdude95 wrote:Very nice demo. It's looking pretty good. Quick question, what language are you writing the editor in?
He said c++/sdl. You can also tell from the video :P
by adikid89
Mon Feb 21, 2011 10:00 am
Forum: Programming Discussion
Topic: Gui system
Replies: 2
Views: 3207

Re: Gui system

Necroing this thread because I updated the library a tad :lol: . I wrapped the gui system in a nice little static library. I also implemented widget composition(meaning widgets can contain other widgets) that I really wanted to do a long time ago. The most significant improvement is the fact that no...
by adikid89
Sat Feb 19, 2011 4:32 pm
Forum: Programming Discussion
Topic: [Qt]setWindowTitle() only displaying part of word
Replies: 23
Views: 5331

Re: [Qt]setWindowTitle() only displaying part of word

post a screenshot if you will. I'd like to see how it looks like, cause it doesn't quite make sense...