[SDL] SDL_Window suggestion

Bob Pendleton bob at pendleton.com
Sun May 3 18:14:40 PDT 2009


On Sun, May 3, 2009 at 7:18 PM, Rainer Deyke <rainerd at eldwood.com> wrote:
> Bob Pendleton wrote:
>> On Sat, May 2, 2009 at 9:29 PM, Rainer Deyke <rainerd at eldwood.com> wrote:
>>> Now, I could do all of that on top of SDL.  However, there are some
>>> significant advantage to letting SDL handle of this:
>>>  - I don't need to adjust all of my graphics operations to render to
>>> the center of the screen.
>>>  - SDL only needs to allocate a 640x480 backbuffer.
>>>  - SDL already contains most of the code required to make this work, so
>>> this would be a relatively small change on the SDL side.
>>
>> That's called a view port transformation. Again, a 40+ year old
>> technique. It gives you exactly what you want.
>
> I know how to do it.  I already have my own wrapper around SDL that
> provides me with a viewport.  I think SDL should handle this, and I gave
> my reasons, which you didn't address at all.

Yeah, I haven't addressed your reasons because honestly, none of the
ones you have listed make any sense to me. The only reasonable way to
accomplish what you want is to use a hardware accelerated API. SDL
provides that through OpenGL. That is the way SDL works. You want to
make major changes. Ok, do it. Nothing stopping you.

Bob Pendleton


>
>
> --
> Rainer Deyke - rainerd at eldwood.com
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>



-- 
+-----------------------------------------------------------
+ Bob Pendleton: writer and programmer
+ email: Bob at Pendleton.com
+ web: www.TheGrumpyProgrammer.com



More information about the SDL mailing list