« first day (857 days earlier)      last day (4074 days later) » 

10:00 AM
holy mofo's on a stick
that's scary
 
@TonyTheLion I'm really liking the whatifs
 
Do Linux and Mac OSX have something similar to WndProc ?
 
@ThePhD dude
dude
 
3
Q: Window message procedures in Linux vs Windows

mizipzorIn Windows when you create a window, you must define a (c++) LRESULT CALLBACK message_proc(HWND Handle, UINT Message, WPARAM WParam, LPARAM LParam); to handle all the messages sent from the OS to the window, like keypresses and such. Im looking to do some reading on how the same system works ...

 
you're doing it wrong
 
10:04 AM
Holy shit
I just looked at some of the stuff for like KDE and stuff
Fuuuuuuuuuuuuuuuuck that
 
indeed
so now listen
 
It's all so nightmarish. ;~;
 
@ThePhD go and steal the code from SFML
just don't tell anyone!
(its input is actually decent)
> SFML is completely free for any use, commercial or not, open-source or not
I have to extract the window creation and input too
 
@ThePhD read that question. every answer has some quality insight and they collectively expand on the necessary backgrounds, probably more than we could
 
I don't feel comfortable just taking code, even if it is from a free library.
I've mastered input and Joypadding on Windows, albeit Windows is the lesser of the Window System evils.
I think I can do it on Linux with a bit of effort...
 
10:06 AM
Well then, you've wasted a lot of your time
good job
Now stop wasting more and just take the goddamn code
I wish @Cat was there
 
You can't maake meee.
 
Lol, okay then
go and write it, I'll see you in a few years
I've just forked SFML on my github, time to strip it out of useless shit
 
Nothing in there is useless tbh
There's really a lot of good shit in it
 
Packets, http, graphics, sound
 
10:08 AM
and a lot is useless
especially in graphics part
It's a good library, of course
I've used it a lot
it's just, as Laurent told me on forums, it wasn't meant for advanced graphics
 
Wow why is XWindows so horrific...
 
and when it started to mess up with my OpenGL state and break my rendering, I dropped it
 
I've never used SFML 1.6 hm
 
Xeo
Hm, was the "safe-bool obsolete" question linked somewhere lately?
 
But you will learn to anyways
Or you'd be forever unproductive
 
10:13 AM
@Rapptz umm? 2.0 is the way to go since... ever?
17 hours ago, by FredOverflow
Real programmers use whatever gets the job done instead of wasting time in chat rooms, bitching about what is the perfect programming language. Or even worse, invent their own language, which will solve all problems for everyone.
 
Yeah I know. It's what I use
 
ooof.
I thought you were using 1.5
 
Nope.
 
Alright, fine. D:
 
@Xeo Perhaps. I remember coming across the 'What C++ idioms are obsolete since C++11' question for some reason - perhaps it was linked from that Viva64 tweet feed. Again, that might linkto your answer then
 
I can't help but read: SFML = So Fuck My Life
Every single time
 
Shit, Fuck My Life
 
Uh, my last commit to OpenMOBA was... 2 months ago
I feel bad.
 
.... Must.... RESIST
CANNOT
 
@BartekBanachewicz And you should be bad
 
10:16 AM
LOOK AT IMPLEMENTATION
Must find out for myself
 
@ThePhD PREMATURE EMASCULATION
 
@sehe I should be bad? I don't get it?
@ThePhD My job here is done. I have clear conscience.
 
:c
 
user142019
Eww pimpl.
 
10:19 AM
I never understood that.
 
@Rapptz what?
 
The point of it
 
user142019
Pimpl is as ugly and terrible as a pimple.
 
That's exactly the shit one shouldn't write
And he did it for you
what's the fuss?
 
user142019
I prefer even #ifdef-#endif over pimpl.
 
10:20 AM
Nothing, you're making an issue out of.. well nothing.
 
well, it makes the client code identical on all platforms, but that's obvious
@Zoidberg I actually prefer proper build configs
 
user142019
Everything should be in code.
 
He uses CMake for building
 
user142019
No config shit.
 
user142019
10:21 AM
Keep it in one place.
 
make src/windows for windows specific shit
src/linux for linux and so on
and just choose the appropriate one
 
You could also just have a base class.
 
user142019
And #include conditionally.
 
And do it that way.
 
user142019
Ewwwwwww polymorphism.
 
user142019
10:22 AM
KISS.
 
@ThePhD dude. Read few lines above
 
I actually prefer my polymorphism for Windows.
 
user142019
Polymorphism in C++ is the most annoying thing ever.
 
Because then I can have a No-Window class and I can also have a CacheWindow class.
 
That's cool
 
10:23 AM
Anyway night.
 
just don't use polymorphism for platform selection
because that sucks.
polymorphism is for objects that change in RT
I doubt you change OS in runtime
 
Ell
use crtp! :D
 
I didn't use Polymorphism before, but I changed to it when I found the need to be able to do Window().Title("Arf") on my class before the window was created.
 
user142019
Polymorphism for platform selection is fine.
 
user142019
10:24 AM
As long as it's compile-time polymorphism.
 
user142019
Aka templates.
 
Ell
Hi :)
 
@Zoidberg ...
 
Hence, CacheWindow was born. Inadvertently, that also lead to Win32Window and MacOSXWindow and LinuxWindow.
 
@ThePhD and that sucks balls deep
It looks like Java
@Ell how's the build going? Did you get my message?
 
Ell
10:25 AM
Didn't get your message - well I'll check now
 
Meh. I'm sure I'll figured out a clever way to do it again that's even better than right now.
 
Ell
Ahh yes got your message :P
I haven't been able to work on it at all, I just got home from that party
 
wow
nice party then
I hope you had fun.
 
Ell
Haha was pretty decent
I did! And I didn't drink either :P
 
I watched indiana jones 2 yesterday, so I didn't code much
Anyway, I'm not going to code anything new in gameplay until I have UI running
 
Ell
10:27 AM
Ahh okay
 
I have my old library, and it will do, just needs some fixes
 
Ell
So I'll fetch & merge the changes in a second
once I can figure it out xD
 
LOL. look what I found
std::tr1::function<void(void)> m_Function;
 
Ell
hah
 
that stuff is old
 
Ell
10:36 AM
damnit just realised I renamed M_PI to M_PIZZA xD
 
Oh man, now I feel that my iPad is really heavy. I am using samsung atm
 
@Ell should have been M_TAU in the first place
 
It actually is usable, what I find surprsing
@thecoshman tau shit is overrated
 
@BartekBanachewicz it does make sense though, but I honestly don't care that much
 
Ell
@BartekBanachewicz are you dropping glut? and just going for winapi?
 
10:49 AM
@Ell I forked SFML today, and I am going to extract the input and window creation from it
Right now winapi works
freeglut didn't, just for the record
 
Ell
what was wrong with it? o.O
 
@Ell drop shit for shit?
@BartekBanachewicz just about :P
 
@Ell everything, to be honest
 
Ell
haha
 
@thecoshman I don't require much right now
 
10:51 AM
@BartekBanachewicz sounds like kyrostat offers just the right amount the :P
 
Ell
Should I wait for the sfml version for linux?
 
@thecoshman wat? kyrostat is dead, also.
@Ell umm.. Can't you build on windows? I took time to fix build there :)
I mean, building dependency takes time
 
Ell
haha okay :L
I have built all the linux dependencies
 
well, you can change it yourself, it isn't tha hard
 
user142019
LINUX <3
 
Ell
10:53 AM
and the engine and minicraft itsself
 
just need to replace winapi functions with either sfml or linux specific
 
@BartekBanachewicz it's not dead, just reduced to almost no devs. I am still working on it (not much) @melak47 is, as is @thePHD (or so they say at least)
@Zoidberg ¬_¬ care to build and run kyrostat code on linux?
 
user142019
Yes.
 
Ell
But I get a failed assertion when I run :/
I fear I have changed something important :P
 
probably because linux sucks, too
 
user142019
10:54 AM
It doesn't.
 
user142019
You suck.
 
I haven't really tested it there, so I can't give you the one answer
 
Ell
Yeah
If only I knew how to debug :P
 
@Ell that might help
Well, so now depends on what you want to do
 
@BartekBanachewicz hardly
 
10:55 AM
If you want to just run it, do it on windows
 
Ugh fuck
 
if you want to fiddle with it, you might tweak it a bit
@CatPlusPlus hangover?
 
Ell
@BartekBanachewicz I want to fiddle :P I want to get it to run on linux
 
Worse
 
user142019
Hi.
 
10:58 AM
@CatPlusPlus spill the beans
 
@Ell then you have to base on main_windows. Either create main_linux or main_sfml. Or try your luck with glut again
 

« first day (857 days earlier)      last day (4074 days later) »