260 reputation
519
bio website
location Washington, DC
age 19
visits member for 3 years, 6 months
seen Apr 4 at 5:33

Dec
3
awarded  Notable Question
Nov
7
awarded  Popular Question
Jul
2
awarded  Curious
Sep
10
awarded  Popular Question
Jul
8
awarded  Nice Question
Jun
17
awarded  Caucus
Jun
17
awarded  Constituent
May
19
awarded  Popular Question
May
4
awarded  Popular Question
Mar
29
awarded  Popular Question
Nov
14
awarded  Notable Question
Nov
9
awarded  Good Question
Oct
7
comment Is 2 lines of push/pop code for each pre-draw-state too many?
@michael.bartnett I need a new design that accomplishes my goal, since my attempt, and nothing else, seems to work. See my comment on your answer
Oct
7
comment Is 2 lines of push/pop code for each pre-draw-state too many?
I originally had Push take a ref so that clients wouldn't have to know about the Ptr<> class. And the whole point of this is both to reduce repetitiveness, and to get the push/pop out of the client's virtual render function (where only rendering should be done). In order to maintain a stack or copy user data, I would still need a newbie-friendly way of telling the Drawable class where to get/set custom structs/classes that need preserving.
Oct
7
comment Is 2 lines of push/pop code for each pre-draw-state too many?
@AndrewRussell I added an example
Oct
7
revised Is 2 lines of push/pop code for each pre-draw-state too many?
added 1746 characters in body
Oct
7
comment Is 2 lines of push/pop code for each pre-draw-state too many?
@michael.bartnett It doesn't work because the extension implicitly gets a copy of the struct rather than its reference
Oct
6
asked Is 2 lines of push/pop code for each pre-draw-state too many?
Sep
24
comment Outline Shader Effect for Orthogonal Geometry in XNA
@RoyT. If the shape isn't 100% opaque, there will be a problem
Sep
24
asked Outline Shader Effect for Orthogonal Geometry in XNA