« first day (969 days earlier)      last day (3982 days later) » 

11:00 PM
@Pubby I know where you live.
 
user142019
How would I draw a one-pixel-wide rainbow-colored line segment in OpenGL? Fragment shader?
 
(Actually I don't, but hey! Fun fun fun!)
 
Ell
@rightfold a line with a texture I fuessu
*guess
 
@rightfold Texture would be simpler than shader but wouldn't be as flexible.
 
11:02 PM
@ScottW I will hunt you down baby <3
 
user142019
Didn't think of a texture.
 
user142019
I think I can use that.
 
user142019
Dankeschön.
 
Kein problem
 
what am I doing with my life
 
user142019
11:05 PM
Maybe I need only two colors.
 
user142019
I actually want multiple connected line segments that share the same gradient.
 
user142019
They have different angles.
 
11:06 PM
this is the worst tweet in the history of the written word https://twitter.com/saddesttiger/status/344131882092466176
 
@rightfold Just texture over all of them.
 
user142019
@ScottW With different U/V coords right?
 
@rightfold Yeah. So if you have four segments, give one 0.0 to 0.25, then 0.025 to 0.05, etc
 
@Griwes tweetception
 
user142019
Thanks for the helpzorz.
 
11:07 PM
@TonyTheLion The very end is the best.
 
Oh God
@Griwes It's like pointers all over again ;_;
 
It does, trust me.
 
user142019
I'll just start with solid colors.
 
char************
 
@Griwes does it even end?
 
11:08 PM
The end is worth it.
 
user142019
Can add textures later.
 
@Griwes meh
 
:D
 
Had to click that many links for that?
lulz
 
11:10 PM
@ScottW I started closing them at some point.
Ctrl+click, Ctrl+W FTW
 
user142019
I think I'll have a tough time with character animation.
 
user142019
Even though my characters are merely stick figures.
 
I can't log into twitter anymore because the captchas are too ahrd
 
fuck twatter
 
11:16 PM
@MooingDuck I think it's because you are really a bot =p
 
no. He's a duck
he quacks
 
OINK
 
@Griwes Right click tab > close tabs to the right
 
Cpt obvious.
The trick is, I had at most two tabs open at a time.
 
11:22 PM
my phone still has my twitter password though, so I can post/read with that, jsut not my pc's
 
user142019
How does OpenGL transfer varyings from vertex shaders to fragment shaders? Is that what linking a program does? (I.e. by name?)
 
Ell
I think uniforms have to be unique names
What do you mean transfer varyings?
You refer to them by name
You find their location and set them with a location
 
1
A: Execution Control In C

Jerry CoffinIt seems like the obvious structure would be something like this: while (current_time < end_time) { current_number = *next_number++; if (meets_conditions(current_number)) output(current_number); }

good guy @JerryCoffin
answers -3 voted question
needs more upboats
 
@TonyTheLion Why? Is there anything about it that isn't just doing the obvious? Don't get me wrong -- I don't object to votes, but this particular answer doesn't strike me as particularly deserving...
 
@JerryCoffin I was just trying to be nice. But hey, if you don't want votes, I can retract my statement.
also, it being a downvoted and crappy question, I would have never answered it
 
11:34 PM
@TonyTheLion Like I said, I don't mind -- and I certainly appreciate the thought.
 
cool
Bouncing Babies is a computer game developed in 1984 by Dave Baskin for MS-DOS. The player is in control of a two man team of fire fighters who rescue babies thrown from the windows of a building in flames into a bouncing stretcher and safely into an ambulance. References
the fuck?
 
@TonyTheLion Well, you have to start with the fact that ambulances don't actually have roofs, just an open top, and the inside is basically a padded cell with a padded conveyor belt as the floor, so all the babies are kept entirely safe.
 
oh gawd
 
I loled
Also, not sure how accurate these specs are...
 
Ken
How can you cast an integer/long to a pointer?
 
11:46 PM
Dont?
 
@Ken reinterpret_cast?
 
reinterpret_cast to uintptr_t, and don't do anything with it but cast it back
wait, that's the wrong direction
 
Ken
@Borgleader You're bad at this.
 
make sure the size is less than or equal to uintptr_t then reinterpret_cast might work
portably
but you can't legally use the pointer
 
@Borgleader Posted yesterday.
 
Ken
11:48 PM
Why not?
 
Pointers aren't meant to be cast to integers
 
@Rapptz Ooops forgot
 
you can't cast between integers and pointers except to round trip
 
@Ken Why would you want to do that anyway?
 
everything else is undefined
i don't know why you would round trip from integer to pointer and back though
mostly it's the opposite
 
Ken
11:49 PM
@Borgleader I'm getting a window handle from a Java GUI and I need to cast it from Java's long to a HWND (which is essentially a void*).
 
I see
also, lol Java
 
Ken
How does reinterpret_csat should be used in this scenario tho? I've look it up (I always forget what it does because I never use it) and it's saying: Allows any pointer to be converted into any other pointer type.
"lol Java" indeed.
 
it does more than that
also, if you're using windows HWND then you don't care about portability anyway
so just do whatever works
microsoft probably won't break your code
since 99% of people are doing worse things and writing internal business apps that microsoft cannot ever let break
 
Ken
So I can just go ahead and reinterpret_cast<void*>(0xFFFFFF) or something like that?
 
if it's an HWND, yes
it's meant to be an opaque type
 
11:53 PM
damn man that's ugly
 
the fact that it's a void * is implementation detail
don't use void* though, use HWND
 
Why don't you do void* mything = &mystuff?
I didn't read the log so I don't know what happened.
 
Ken
I don't need a reference to an integer. I have an integer which is a reference.
And I need C++ to treat it as such.
 
Are you saying it's a temporary? I don't follow
 
@ScottW s
 
Ken
11:56 PM
@Rapptz int myAddress = 0xFFFFFFF; // I have something similar and I want to cast it to a pointer
 
@Ken Then cast it.
 
Okay.. well for starters myAddress isn't an actual address..
 
Ell
Reinterpret cast
 
Ken
That's what I'm going to try atm.
 
Ell
But you shouldn't hard code memory locations
 
11:57 PM
But you can do void* myPtr = &myAddress ?
 
Ken
I didn't hard-code. how is that even possible?
 
Keep in mind the following caveats: You must make sure that, on your platform, your pointer is large enough to store an int.
 
Ken
It's just an example for the sake of clarity
 
You can hard code pointers. It's not useful except for hacking.
 
@Ken int* x = 0; is a common example of hardcoding a pointer
 
11:58 PM
uh.
I suppose.. I mean other than that usually meaning null.
 
@Jeffrey That's a special case, IIRC.
 
@EtiennedeMartel Yeah, that also commonly referred to as null pointer. With C++11, IIRC, you should use something like nullptr instead.
 

« first day (969 days earlier)      last day (3982 days later) »