Search found 3882 matches

by chili
January 16th, 2020, 7:55 am
Forum: Everything
Topic: weird issue with vertex shader
Replies: 5
Views: 53

Re: weird issue with vertex shader

Saves me the trouble of cloning :D

Eventually I'd like to have some kind of analysis in place that checks for missing bindables like this.
by chili
January 14th, 2020, 12:41 pm
Forum: Everything
Topic: What to do?
Replies: 27
Views: 368

Re: What to do?

I've been cockblocked by the inability to forward declare inner classes in the past. It's another indication that I need to curb my inner class fetish.
by chili
January 14th, 2020, 12:39 pm
Forum: Everything
Topic: weird issue with vertex shader
Replies: 5
Views: 53

Re: weird issue with vertex shader

It sounds to me like you're missing some crucial bindable with your box. When you draw with other entities those entities bind it and then it carries over to your box draw.

Sharing code over a pdf filled with screencaps is weird. Post a link to your repo on github.
by chili
December 27th, 2019, 4:26 pm
Forum: Everything
Topic: Merry Christmas!!!
Replies: 7
Views: 562

Re: Merry Christmas!!!

Merry xmas man, hope you had a good one with the fam.
by chili
December 16th, 2019, 3:10 am
Forum: Everything
Topic: What to do?
Replies: 27
Views: 368

Re: What to do?

Yo, but encapsulation rules tho ;)
by chili
December 7th, 2019, 11:17 am
Forum: Everything
Topic: Coding Challenge 5 - Meme Graveyard Keeper
Replies: 26
Views: 2908

Re: Coding Challenge 5 - Meme Graveyard Keeper

You should try std::partial_sum for the 1st xform there.
by chili
December 1st, 2019, 2:47 pm
Forum: Everything
Topic: Who Wants to Take a Crack at Some Metaprogramming Bullshit?
Replies: 8
Views: 249

Re: Who Wants to Take a Crack at Some Metaprogramming Bullshit?

Additionally, you can do constexpr auto Crapdaptor = [](auto&& function) { return [function](auto&& left_ptr, auto&& right_ptr) { return function(*left_ptr, *right_ptr); }; }; std::sort(v.begin(),v.end(),Crapdaptor(std::mem_fn(&Foo::operator>))); Pls don't :peppers: I think he's trying to avoid dec...
by chili
November 30th, 2019, 3:51 am
Forum: Everything
Topic: Who Wants to Take a Crack at Some Metaprogramming Bullshit?
Replies: 8
Views: 249

Re: Who Wants to Take a Crack at Some Metaprogramming Bullshit?

Yeah, that is the idea. Although I suppose you could use SFINAE to make the adaptor support both binary and unary. You can just do normal overloading to support operator() for shared_ptr, unique_ptr, T*. If the second template param is a data member ptr, forward reference to that member of the objec...
by chili
November 25th, 2019, 12:24 am
Forum: Everything
Topic: Who Wants to Take a Crack at Some Metaprogramming Bullshit?
Replies: 8
Views: 249

Who Wants to Take a Crack at Some Metaprogramming Bullshit?

So I've been tinkering with a simple idea of a metafunction that can take a normal binary function like std::less that works with references, and adapt it to work with pointers. A simple implementation here that works for std::unique_ptr (the most common use case for me personally), but the return v...
by chili
November 21st, 2019, 10:14 am
Forum: Everything
Topic: Early out if statements
Replies: 3
Views: 137

Re: Early out if statements

yeah early out is going to be good if collisions are rare, the branch predictor will ensure that pipe flushes are rare as well