SDL1/OGL To SDL2/DX Conversion-"glScissor" Alternative?

SDL1/OGL To SDL2/DX Conversion-“glScissor” Alternative?

Hi,

My development team and I are currently converting a word game from SDL1/OpenGL to SDL2/DirectX.
It will be a Microsoft Windows only game when finished.

We were using the OpenGL command “glScissor” to only draw parts of the game playing screen to improve performance.
Is there some similar command in SDL2/DirectX?

We are targeting Microsoft Windows XP, Vista, 7, 8, & 10 and dirty rectangle drawing optimization will be necessary for Win XP users.
Let us know, thanks!

Top Secret Development Screenshot:
http://16bitsoft.com/images/temp/LFR-LettersAreWorking-01.png------------------------
JeZxLee
JessePalser <AT> GMail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com

Google’s top result says to look at this method:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb174457(v=vs.85).aspx

Also, SDL2 has a clip rect setting:
https://wiki.libsdl.org/SDL_RenderSetClipRect

If you look it up in the SDL source, you’d find that D3D_UpdateClipRect()
has it laid out for you.

Jonny DOn Tue, Apr 21, 2015 at 12:42 AM, JeZ-l-Lee < JessePalserMailingLists at gmail.com> wrote:

SDL1/OGL To SDL2/DX Conversion-“glScissor” Alternative?

Hi,

My development team and I are currently converting a word game from
SDL1/OpenGL to SDL2/DirectX.
It will be a Microsoft Windows only game when finished.

We were using the OpenGL command “glScissor” to only draw parts of the
game playing screen to improve performance.
Is there some similar command in SDL2/DirectX?

We are targeting Microsoft Windows XP, Vista, 7, 8, & 10 and dirty
rectangle drawing optimization will be necessary for Win XP users.
Let us know, thanks!

Top Secret Development Screenshot:
http://16bitsoft.com/images/temp/LFR-LettersAreWorking-01.png


JeZxLee
JessePalser GMail com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Jonny D wrote:

… Also, SDL2 has a clip rect setting:
https://wiki.libsdl.org/SDL_RenderSetClipRect (https://wiki.libsdl.org/SDL_RenderSetClipRect)
Hi,

I think that should work, thanks for the info!------------------------
JeZxLee
JessePalser <AT> GMail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com