Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding texture scaling functionally to SDL2_perl #2

Open
kthakore opened this issue Aug 9, 2013 · 3 comments
Open

Adding texture scaling functionally to SDL2_perl #2

kthakore opened this issue Aug 9, 2013 · 3 comments

Comments

@kthakore
Copy link
Member

kthakore commented Aug 9, 2013

Basically make this work in perl:

http://hg.libsdl.org/SDL/file/90ff13467550/test/testscale.c

@ghost ghost assigned kthakore Aug 9, 2013
@kthakore
Copy link
Member Author

kthakore commented Aug 9, 2013

Request made in sdl-devel mailing list
On 2013-08-10, at 6:25 AM, MJ wrote:

hi sdl-devel
=20
i am planning/researching about adding a small amount of SDL2_Perl =
code into my existing SDL_Perl app, for a framerate increase
i have one long-standingly slow bit of code in my app, that i would =
like to replace with SDL2 code
=20
=20
so basically, i need to implement the 'test/testrendercopyex.c' demo =
[3], in SDL2_Perl,=20

aaah, the SDL2 'test/testscale.c' demo is a slightly better example

http://hg.libsdl.org/SDL/file/90ff13467550/test/testscale.c

kthakore pushed a commit that referenced this issue Aug 9, 2013
kthakore pushed a commit that referenced this issue Aug 10, 2013
kthakore pushed a commit that referenced this issue Aug 11, 2013
…ge later. Also haven't testhaven't tested this but it may be faster. WIP #2
@kthakore
Copy link
Member Author

crap

@kthakore kthakore reopened this Aug 11, 2013
@KohaAloha
Copy link
Member

i have made a list of all the SDL2 functions that are used in the original testscale.c example
http://hg.libsdl.org/SDL/file/90ff13467550/test/testscale.c

i'll attempt to add these missing C functions to Perl_SDL2, as i work thru this issue

and, heres the list....
SDL_LoadBMP()
SDL_GetError()
SDL_SetColorKey()
SDL_CreateTextureFromSurface()
SDL_FreeSurface()
SDL_RenderGetViewport()
SDL_RenderCopy()
SDL_RenderPresent()
SDL_stack_alloc()
SDL_QueryTexture()
SDL_PollEvent()
SDL_GetTicks()
SDL_stack_free()
SDLTest_CommonEvent()
SDLTest_CommonCreateState()
SDLTest_CommonArg()
SDLTest_CommonUsage()
SDLTest_CommonInit()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants