[SDL] Const correctness for SDL video

Bob Pendleton bob at pendleton.com
Wed Feb 14 11:26:12 PST 2007


On Wed, 2007-02-14 at 13:17 -0500, Simon Roby wrote:
> On 2/14/07, Patrick Mohr <kc7zzv at gmail.com> wrote:
> > Originally my goal was to change SDL's draw functions to allow the inputted
> > source to be const.  I quickly found out that project would take far more
> > knowledge than I had, but I did manage to make all of the source rectangles
> > const.  I'm done with 1.2, but 1.3 isn't finished.  Can anyone think of any
> > problems that would be caused by making the source rectangles const?
> > Assuming that it does compile.
> 
> Won't that break binary compatibility in SDL 1.2?

I don't think that is a problem. 

Just curious, why do you care enough about this to bother with doing all
this work? I teach C++ and I really don't see the point? Could you
educate me on this subject?

		Bob Pendleton

-- 
+--------------------------------------+
+ Bob Pendleton: writer and programmer +
+ email: Bob at Pendleton.com             +
+ web: www.GameProgrammer.com          +
+ www.Wise2Food.com                    +
+ nutrient info on 7,000+ common foods +
+--------------------------------------+




More information about the SDL mailing list